PDA

View Full Version : Application build Mac PPC/Intel pro file?



patrik08
28th June 2006, 10:57
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 ?

axeljaeger
28th June 2006, 11:47
http://doc.trolltech.com/4.1/qmake-variable-reference.html#config

Search for Mac OS X there.

I think you can pass both flags to get a universal binary.

patrik08
28th June 2006, 11:48
I found only this page...
http://doc.trolltech.com/qtopia4.1/deployment-mac.html#mac-os-x-version-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 .....

patrik08
28th June 2006, 14:27
If i leave CONFIG += x86 running but only ppc... & window...



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" ...


_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