PDA

View Full Version : Qt4 on Snow Leopard with 32-bit (Core Duo) processor



titaniumdecoy
26th September 2009, 04:23
I am using one of the first Intel MacBook Pro models with a 32-bit (Core Duo, not Core 2 Duo) processor.

I successfully installed Qt through the graphical installer. However, when I try to compile a default template project (Qt4 Gui Application) I get pages of errors (the full log is attached to this post).


/Library/Frameworks/QtCore.framework/Headers/qglobal.h:297:34: error: AvailabilityMacros.h: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:48:20: error: string.h: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qstring.h:60:22: error: string: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qlist.h:50:20: error: iterator: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qlist.h:51:16: error: list: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qlist.h:54:15: error: new: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qvector.h:52:18: error: vector: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qvector.h:54:20: error: stdlib.h: No such file or directory
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'uint qstrlen(const char*)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:68: error: 'strlen' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'int qstrncmp(const char*, const char*, uint)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:91: error: 'strncmp' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h: In function 'bool operator==(const QByteArray&, const QByteArray&)':
/Library/Frameworks/QtCore.framework/Headers/qbytearray.h:502: error: 'memcmp' was not declared in this scope
/Library/Frameworks/QtCore.framework/Headers/qstring.h: At global scope:
/Library/Frameworks/QtCore.framework/Headers/qstring.h:65: error: expected initializer before '<' token
/Library/Frameworks/QtCore.framework/Headers/qstring.h:478: error: expected unqualified-id before '&' token
/Library/Frameworks/QtCore.framework/Headers/qstring.h:478: error: expected ',' or '...' before '&' token
/Library/Frameworks/QtCore.framework/Headers/qstring.h:479: error: 'string' in namespace 'std' does not name a type
/Library/Frameworks/QtCore.framework/Headers/qstring.h:485: error: expected ',' or '...' before '&' token
/Library/Frameworks/QtCore.framework/Headers/qstring.h:486: error: 'QStdWString' does not name a type
/Library/Frameworks/QtCore.framework/Headers/qstring.h:1026: error: 'string' in namespace 'std' does not name a type
/Library/Frameworks/QtCore.framework/Headers/qstring.h:1029: error: expected unqualified-id before '&' token
/Library/Frameworks/QtCore.framework/Headers/qstring.h:1029: error: expected ',' or '...' before '&' token

...

make: *** [main.o] Error 1
make: Leaving directory `/Users/jason/SourceControl'
Exited with code 2.
Error while building project SourceControl
When executing build step 'Make'

Do I need to set a flag to indicate that I am compiling for 32-bit/Intel/Cocoa only? Or is the problem something else entirely?

titaniumdecoy
27th September 2009, 01:00
I fixed the problem by upgrading to the latest version of Xcode. /Developer/SDKs/MacOSX10.6.sdk/ did not exist on my machine beforehand.