PDA

View Full Version : project settings on MAC



librangel
6th March 2012, 22:49
I am doing c++ programming with qt library (not qt creator) on MAC.
My project works totally fine on other machines, but doesn't work on my current one.
My current OS is 10.6.8 and Xcode is 3.2.6.
Qt library I installed is 4.8.
I installed them at the default directory.
when I try to build my project, I choose "Debug | i386 " .
I got 3404 errors, which are similar to following ones.
I think it's due to the settings of my project, but don't know how I should solve it.
Does any one know how to fix those problems?
Thanks a lot!!

ld: warning: in /Library/Frameworks/QtXmlPatterns.framework/QtXmlPatterns, file was built for unsupported file format which is not the architecture being linked (i386)

ld: warning: in /Library/Frameworks/QtNetwork.framework/QtNetwork, file was built for unsupported file format which is not the architecture being linked (i386)

"QObject::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
NWLangItem::qt_metacall(QMetaObject::Call, int, void**)in moc_NWLangItem.o
NWQtRegAccess::qt_metacall(QMetaObject::Call, int, void**)in moc_NWQtRegAccess.o

"QAbstractItemModel::mimeData(QList<QModelIndex> const&) const", referenced from:
vtable for MLConnectionLogTableModelin moc_MLConnectionLogTableModel.o
vtable for DebugViewDataModelin moc_MLDebugViewDataModel.o
vtable for MLAddressBookDataModelin moc_MLAddressBookDataModel.o

Spitfire
8th March 2012, 13:39
Qt on mac is 64bit only. I'm guessing you're building 32bit app and linking against 64bit qt libraries.

librangel
8th March 2012, 20:05
Then, how can I get 32bit app with Qt on MAC?
Thanks.