wx-config --cxxflags is not universal_binary (wx2.9)
Riccardo Cohen
rcohen at articque.com
Wed Oct 17 17:10:00 PDT 2007
Hi
I built wx with
> ../configure --disable-shared --enable-debug --enable-no_rtti
--disable-compat26 --disable-compat28 --enable-mdi --with-opengl
--enable-monolithic --enable-universal_binary --disable-unicode
Samples build and run correctly, but I found that wx-config --cxxflags
does not set -arch flags :
> wx-config --cxxflags
-I/Users/rcohen/softdev/wxWidgets/builddebug/lib/wx/include/mac-ansi-debug-static-2.9
-I/Users/rcohen/softdev/wxWidgets/include
-I/Users/rcohen/softdev/wxWidgets/contrib/include -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -fno-rtti
But the link does :
> wx-config --libs
-L/Users/rcohen/softdev/wxWidgets/builddebug/lib -arch ppc -arch i386
-framework QuickTime -framework IOKit -framework Carbon -framework Cocoa
-framework System
/Users/rcohen/softdev/wxWidgets/builddebug/lib/libwx_macd-2.9.a
-framework WebKit -lwxexpatd-2.9 -lwxtiffd-2.9 -lwxjpegd-2.9
-lwxpngd-2.9 -lz -lpthread -liconv
I have then a problem at link time:
*** /usr/bin/ld: for architecture ppc
*** /usr/bin/ld: warning GCCRelease/tryapp.o cputype (7, architecture
i386) does not match cputype (18) for specified -arch flag: ppc (file
not loaded)
*** /usr/bin/ld: warning GCCRelease/try.o cputype (7, architecture i386)
does not match cputype (18) for specified -arch flag: ppc (file not loaded)
*** /usr/bin/ld: Undefined symbols:
*** _main
*** collect2: ld returned 1 exit status
Is this normal ? and what should i do ?
PS: I've used DialogBlocks 4 to design,build and run my project
Thanks for any information
--
Très cordialement,
Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
More information about the wx-users
mailing list