[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Mac build



Hi Phil,

On 19.03.2006, at 01:42, Phil Martin wrote:

Hi Dominik,

As far as I know you are the first person to attempt an Intel Mac build of Xara LX.

ok, lets hope I succeed soon :)

I think your libtoolize problem is related to the version of automake you are running. It should be 1.9 or greater. (See http:// www.xaraxtreme.org/developers/documentation/ xara_lx_mac_build_instructions.html)

Ok, the version installed on a current mac is 1.6.3 - i updated to 1.9.6 via darwinports. With this installed the issue with the include paths is also gone.

Try installing wxWidgets rather than just leaving it where you built it. See INSTALL-MAC.txt in the wxWidgets folder. Once you've done that you won't need the --with-wx-config command but make sure you still specify --enable-debug.

I did a make install of the wxWidgets, but that still lends configure to use the
checking wxWidgets version... 2.5.3
configure: error: wxWidgets 2.6.1 or newer is required

instead of the newly installed 2.6.3 - so i still need the with-wx- config command


See Brian's earlier post about wxStackWalker: Just surround the use of wxStackWalker with #ifndef __WXMAC__ to get the compile going.

That worked - if there isn't a patch fo that yes, here is my SVN diff to be applied:

Attachment: stackwalker.patch
Description: Binary data



and to my next roadblock:

In file included from .././wxOil/pngfiltr.h:104,
                 from filters.cpp:146:
.././wxOil/outptpng.h:109:17: error: png.h: No such file or directory
In file included from filters.cpp:147:
imjpeg.h:118:22: error: jpeglib.h: No such file or directory
imjpeg.h:198: error: 'jpeg_decompress_struct' in namespace 'JPEG' does not name a type
make[1]: *** [filters.o] Error 1
make: *** [all-recursive] Error 1

which just was a problem because i installed jpeglib with darwinports in /opt/local - so a simple --include=/opt/local/include added to the configure command line mended the problem

its compiling at the moment and having some trouble with which libpng it should take g++ Kernel/*.o wxOil/*.o tools/*.o wxXtra/*.o -lpng --debug -L./libs/ darwin -L/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/build- unicode-debug/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework System -lwx_macud-2.6 -L/opt/ local/lib -lCDraw -o XaraLX /usr/bin/ld: table of contents for archive: ./libs/darwin/libCDraw.a is out of date; rerun ranlib(1) (can't load from it) /usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used symbol _png_error used from dynamic library /Users/dwagner/Data/ Coding/3rdParty/wxWidgets-2.6.3/build-unicode-debug/lib/ libwx_macud-2.6.dylib(single module) not from earlier dynamic library /opt/local/lib/libpng.3.dylib(pngerror.pic.o)
... going on for ages ...


cheers,
  dom


Phil

On 18 Mar 2006, at 21:38, Dominik Wagner wrote:

Hi All,

is the mac build meant to compile fine on the new intel macs?

because while i get wxwidget to build, i have quite a few problems with the XaraLX compilation.

First roadblock:

autoreconf -f -i -s
complains about not finding libtoolize - after some research it turned out that this is glibtoolize on a mac (but this should have affected brian also i think? ) - so creating an link for libtoolize to glibtoolize made it work.

next roadblock:
./configure --with-wx-config=/Users/dwagner/Data/Coding/3rdParty/ wxWidgets-2.6.3/build-unicode-debug/wx-config --enable-debug

does complain about
./configure: line 21717: syntax error near unexpected token `GTK,'
./configure: line 21717: ` PKG_CHECK_MODULES(GTK, gtk +-2.0)'

since I read in the previous post that GTK isn't used on Mac OS X I simply removed the test and the following if - so i replaced
	# See if we are running on GTK
WX_GTK=`if [[ $WX_CPPFLAGS == *__WXGTK__* ]]; then echo yes ; else echo no ; fi`
	if test "$WX_GTK" = "yes" ; then
		PKG_CHECK_MODULES(GTK, gtk+-2.0)
	fi

with

	WX_GTK = "no"

After doing this - configure runs fine

Ok next to make. This is the strangest one:
Making all in PreComp
if g++ -I../PreComp -I.././Kernel -I.././wxOil -I.././wxOil/ Res -I.././tools -I.././GDraw -I.././PreComp -I.././wxXtra - DUSE_NATIVE_XLONG -DBUILDSHADOWS -DOLD_MATRIX_TRANSFORMATIONS - DVECTOR_STROKING -DEXCLUDE_FROM_XARALX -DNEW_SHADOW_RENDER - DNO_XARACMS -DNEW_FEATURES -DSHOWPORTNOTE -x c++-header -MT camtypes.h.gch -MD -MP -MF ".deps/camtypes.h.Tpo" -c -o camtypes.h.gch camtypes.h; \ then mv -f ".deps/camtypes.h.Tpo" ".deps/camtypes.h.Po"; else rm - f ".deps/camtypes.h.Tpo"; exit 1; fi
In file included from camtypes.h:111:
.././wxOil/stdwx.h:98:19: error: wx/wx.h: No such file or directory
.././wxOil/stdwx.h:99:23: error: wx/bitmap.h: No such file or directory .././wxOil/stdwx.h:100:24: error: wx/docview.h: No such file or directory .././wxOil/stdwx.h:101:23: error: wx/docmdi.h: No such file or directory .././wxOil/stdwx.h:102:24: error: wx/cmdproc.h: No such file or directory .././wxOil/stdwx.h:103:22: error: wx/image.h: No such file or directory
[goes on for ages]

although the include pathes are set correctly in the makefile, they aren't used when compiling.
To fix this i exported the CPPFLAGS before calling make:
export CPPFLAGS="-I/Users/dwagner/Data/Coding/3rdParty/ wxWidgets-2.6.3/build-unicode-debug/lib/wx/include/mac-unicode- debug-2.6 -I/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/ include -I/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/ contrib/include -D__WXDEBUG__ -D__WXMAC__ -D_FILE_OFFSET_BITS=64 - D_LARGE_FILES -DNO_GCC_PRAGMA"

after that the build starts a little but then breaks down again:

Making all in PreComp
if g++ -I/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/ build-unicode-debug/lib/wx/include/mac-unicode-debug-2.6 -I/Users/ dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/include -I/Users/ dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/contrib/include - D__WXDEBUG__ -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES - DNO_GCC_PRAGMA -I/Users/dwagner/Data/Coding/3rdParty/ wxWidgets-2.6.3/build-unicode-debug/lib/wx/include/mac-unicode- debug-2.6 -I/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/ include -I/Users/dwagner/Data/Coding/3rdParty/wxWidgets-2.6.3/ contrib/include -D__WXDEBUG__ -D__WXMAC__ -D_FILE_OFFSET_BITS=64 - D_LARGE_FILES -DNO_GCC_PRAGMA -I../PreComp -I.././Kernel -I.././ wxOil -I.././wxOil/Res -I.././tools -I.././GDraw -I.././PreComp - I.././wxXtra -DUSE_NATIVE_XLONG -DBUILDSHADOWS - DOLD_MATRIX_TRANSFORMATIONS -DVECTOR_STROKING - DEXCLUDE_FROM_XARALX -DNEW_SHADOW_RENDER -DNO_XARACMS - DNEW_FEATURES -DSHOWPORTNOTE -x c++-header -MT camtypes.h.gch -MD - MP -MF ".deps/camtypes.h.Tpo" -c -o camtypes.h.gch camtypes.h; \ then mv -f ".deps/camtypes.h.Tpo" ".deps/camtypes.h.Po"; else rm - f ".deps/camtypes.h.Tpo"; exit 1; fi
.././wxOil/errors.h:596: error: expected class-name before '{' token
.././wxOil/errors.h:598: error: expected ',' or '...' before '&' token .././wxOil/errors.h:598: error: ISO C++ forbids declaration of 'wxStackFrame' with no type
make[1]: *** [camtypes.h.gch] Error 1
make: *** [all-recursive] Error 1

And that's where I stopped.

Cheers, glad for any help,

  dom

--
Dominik Wagner          Mail: dom@xxxxxxxxxxxxxxxx
TheCodingMonkeys        http://www.codingmonkeys.de/
Blog - DasGenie: !Scrap http://scrap.dasgenie.com/



--
Dominik Wagner          Mail: dom@xxxxxxxxxxxxxxxx
TheCodingMonkeys        http://www.codingmonkeys.de/
Blog - DasGenie: !Scrap http://scrap.dasgenie.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature