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

Re: [XaraXtreme-dev] Mac build



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/

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