----- Forwarded Message ---- From: Jim Smith <[email protected]> To: Tico Ballagas <[email protected]> Sent: Tue, August 3, 2010 4:45:35 AM Subject: Re: [Qt-mobility-feedback] Troubles building against qt 4.7
Hi, When building against Qt 4.7 did you use the qmake from Qt 4.7 or did just point to the libs yourself in the .pro file and used the qmake in your path? Your make output looks like you're using the Maemo5 ARMEL SDK Qt libs. You should use the Qt 4.7 qmake under the /usr/local/TrollTech/Qt-4.7.0/bin to create the Makefile for your project. This will cause the 4.7 libs to be linked into your executable. Also, you might want to check the mobility.prf that Qt 4.7 uses and make sure you're linking against the new mobility libs and not the old libs from the SDK install. If the headers are not matching with libs you'll get those errors about missing class members. Make sure you don't mix the old and new header files. After you do the above your code should build fine. I hope this helps you. Jim Smith [email protected] ----- Original Message ---- From: Tico Ballagas <[email protected]> To: [email protected] Sent: Tue, August 3, 2010 2:55:43 AM Subject: [Qt-mobility-feedback] Troubles building against qt 4.7 I get the following compiler errors when trying to build against Qt 4.7: compiling qmessagecontentcontainer.cpp /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtCore/qdatastream.h: In function 'QDataStream& operator>>(QDataStream&, QList<T>&) [with T = QString]': /usr/include/QtCore/qstringlist.h:247: instantiated from here /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtCore/qdatastream.h:246: error: 'class QList<QString>' has no member named 'reserve' make[3]: *** [../../build/Debug/QtMessaging/qmessagecontentcontainer.o] Error 1 make[3]: Leaving directory `/home/ballagas/qt-mobility-1.0.2/src/messaging' make[2]: *** [sub-messaging-make_default] Error 2 make[2]: Leaving directory `/home/ballagas/qt-mobility-1.0.2/src' make[1]: *** [sub-src-make_default-ordered] Error 2 make[1]: Leaving directory `/home/ballagas/qt-mobility-1.0.2' make: *** [debian/stamp-makefile-build] Error 2 Has anyone been successful at building against qt 4.7? Also how would you build experimental debian packages that install to the /opt/qt4-maemo/ directories on the device? Best -Tico _______________________________________________ Qt-mobility-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback _______________________________________________ Qt-mobility-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback
