I have build qt4.1.3 whit universal to enable intel & ppc processor
-universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
I compile my app but run only on my PPC mac processor and not intel from other user...
waht i must write to pro file ?
Printable View
I have build qt4.1.3 whit universal to enable intel & ppc processor
-universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
I compile my app but run only on my PPC mac processor and not intel from other user...
waht i must write to pro file ?
http://doc.trolltech.com/4.1/qmake-v...ce.html#config
Search for Mac OS X there.
I think you can pass both flags to get a universal binary.
I found only this page...
http://doc.trolltech.com/qtopia4.1/d...n-dependencies
and if i put
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
CONFIG+=x86 ppc
build faild and i find 100 line compilation error .
remove this line and go ok... i use static libs... on app and have all same .....
If i leave CONFIG += x86 running but only ppc... & window...
Code:
TEMPLATE = app TARGET += DEPENDPATH += . ui INCLUDEPATH += . ui win32:debug { CONFIG += console } unix:OBJECTS_DIR = build/.o/unix win32:OBJECTS_DIR = build/.o/win32 mac:OBJECTS_DIR = build/.o/mac UI_DIR = ui MOC_DIR = build/.moc RCC_DIR = build/.rcc LANGUAGE = C++ CONFIG += qt release CONFIG += warn_on win32:DESTDIR += bin TARGET = pics macx { CONFIG += ppc CONFIG += x86 } CONFIG += qt release # Input HEADERS += gui_image.h FORMS += ui/gui_image.ui SOURCES += gui_image.cpp main.cpp
Error from "CONFIG += x86" ...
Code:
_strncat referenced from QuickTime expected to be defined in /usr/lib/libSystem.B.dylib _vsprintf referenced from QuickTime expected to be defined in /usr/lib/libSystem.B.dylib collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccImPdX3.out (No such file or directory) make: *** [pics.app/Contents/MacOS/pics] Error 1