PDA

View Full Version : Mac--works w/latest snapshot, but not w/Qt 4.3


ber_44
8th August 2007, 16:11
Qt 4.3.0 fails to compile on OS X, and gives such messages:
image/qpixmap_mac.cpp:696: error: `PtrCGLChoosePixelFormat' was not declared in
this scope
image/qpixmap_mac.cpp:696: error: parse error before `*' token
image/qpixmap_mac.cpp:696: warning: ISO C++ forbids declaration of `CGLError'
with no type
image/qpixmap_mac.cpp:696: error: typedef `CGLError' is initialized (use
__typeof__ instead)
.......
I was wandering if I just have too old XCode (1.5), but the latest snapshot does compile. However, I need 4.3.0, since the snapshot has very bogus OpenGL rendering.
BTW, I use OS X 10.3, so even if that were the problem, I would not be able to update my XCode to 2.1.

marcel
8th August 2007, 16:19
What gcc version do you have?


Mac OS X:

Please use the latest gcc 3.3 from Apple or better. The gcc 3.3 that is provided with Xcode 1.5 is known to generate bad code, use the November 2004 GCC 3.3 updater available from Apple (http://connect.apple.com/).



How come you can't update? It's free :).

Regards

ber_44
8th August 2007, 17:26
I did update my gcc 3.3. And as I said, it works fine with the snapshot, but not with 4.3.