[Qt-interest] Qt 4.5.2 on Mac "unknown cmd field" problem
Thomi Richards
thomir at gmail.com
Mon Aug 3 16:53:49 CEST 2009
Hi,
I've just installed the mac development tools and the latest Qt
package for the mac on a MacOSX 10.4 machine. When trying to build a
simple "hello world" application, the compilation stage seems to work
correctly, but the link stage fails with the following error:
g++ -headerpad_max_install_names -o
testProject.app/Contents/MacOS/testProject main.o mainwindow.o
moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks
-framework QtGui -framework Carbon -framework AppKit -framework QtCore
-lz -lm -framework ApplicationServices
/usr/bin/ld: /Library/Frameworks/QtGui.framework/QtGui load command 5
unknown cmd field
/usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command
4 unknown cmd field
collect2: ld returned 1 exit status
make: *** [testProject.app/Contents/MacOS/testProject] Error 1
make: Leaving directory `/Users/andrewbray/testProject'
Exited with code 2.
Error while building project testProject
When executing build step 'Make'
I notice that people have had this issue on this list before
(http://lists.trolltech.com/qt-interest/2008-05/thread00178-0.html)
but I can't see any solution. I've not done any development work on a
Mac before, so it's possible that I have not configured the
development environment correctly (all I did was download and install
XCode and the Qt packages). Can anyone suggest to me what my next step
should be?
I have verified that the Qt libraries are installed in /Library/Frameworks
As far as I can see, everything looks fine.
Any ideas?
Cheers,
More information about the Qt-interest-old
mailing list