View Full Version : QTMobility API - Installation Error

15th October 2010, 09:18

I am using the nokia qt sdk for developing apps in MAC10.6. I want to access the map api in my project. I download the zip(qt-mobility-opensource-src-1.1.0-beta2) file and tried to install but I am getting the errors like ...

make[4]: *** [../../../build/Debug/qtlandmarks_sqlite_debug/qlandmarkfilehandler_lmx.o] Error 1
make[3]: *** [debug-install] Error 2
make[2]: *** [sub-sqlite-install_subtargets-ordered] Error 2
make[1]: *** [sub-landmarks-install_subtargets] Error 2
make: *** [sub-plugins-install_subtargets-ordered] Error 2

What I did wrong in the installation. Please help me.. Thanks in advance

15th October 2010, 10:09
This is surely not the first error you get. Try finding the first compilation error and paste it here.

15th October 2010, 10:21
I have enclosed the my file.. Please find this..

aspires-imac:~ aspire$ cd QTLIB
aspires-imac:QTLIB aspire$ cd qt-mobility-opensource-src-1.1.0-beta2
aspires-imac:qt-mobility-opensource-src-1.1.0-beta2 aspire$ ./configure -prefix $QTMOBILEAPI
Usage: pathhelper <path>
Converts <path> to an absolute path and returns it to the caller
Configuring Qt Mobility

Checking available Qt ... 4.6.2
Checking QMF ... Not Found
Checking NetworkManager ... Not Found
Checking CoreWLAN (MacOS 10.6) ... OK
Checking Immersion ... Not Found
Checking Maemo ICD ... Not Found
Checking Maemo ICD WLAN ... Not Found
Checking Maemo5 contacts dependencies ... Not Found
Checking Maemo5 organizer dependencies ... Not Found
Checking Bluez ... Not Found
Checking Gstreamer Photography ... Not Found
Generating Mobility Headers...
Create header /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/include/QtMobility/QLatin1Constant
Create header /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/include/QtBearer/QNetworkConfigurationManager
Running qmake...
Reading /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/doc/src/snippets/sensors/sensors.pro
Reading /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/doc/src/snippets/qtfeedbackdocsample/qtfeedbackdocsample.pro

configure has finished. You may run make or gmake to build the project now.

aspires-imac:qt-mobility-opensource-src-1.1.0-beta2 aspire$ make install

cd src/ && make -f Makefile install
cd global/ && make -f Makefile install
cp -f /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/src/global/qmobilityglobal.h /include/QtMobility/
cp -f /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/src/location/maps/qgeoroutingmanagerengine.h /include/QtLocation/
cp -f /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-beta2/src/location/maps/qgeosearchmanager.h /include/QtLocation/
cp -f /Users/aspire/QTLIB/qt-mobility-opensource-src-1.1.0-
beta2/src/location/landmarks/qlandmarkcategoryfetchbyidrequest.h ‘QLandmarkFileHandlerLmx::QLandmarkFileHandl erLmx(const volatile bool*)’:
qlandmarkfilehandler_lmx_p.h:125: warning: ‘QLandmarkFileHandlerLmx::m_writer’ will be initialized after
qlandmarkfilehandler_lmx_p.h:124: warning: ‘QXmlStreamReader* QLandmarkFileHandlerLmx::m_reader’
qlandmarkfilehandler_lmx.cpp:69: warning: when initialized here
qlandmarkfilehandler_lmx.cpp: In member function ‘bool QLandmarkFileHandlerLmx::readCategory(QString&)’:
qlandmarkfilehandler_lmx.cpp:689: warning: unused variable ‘id’
qlandmarkfilehandler_lmx_p.h:68: error: forward declaration of ‘struct QXmlStreamWriter’
qlandmarkfilehandler_lmx.cpp:930: error: invalid use of incomplete type ‘struct QXmlStreamWriter’
qlandmarkfilehandler_lmx_p.h:68: error: forward declaration of ‘struct QXmlStreamWriter’
lipo: can't open input file: /var/folders/ZL/ZL8ME2NlEYO1FbWtNoLW7k+++TI/-Tmp-//ccnpQWUi.out (No such file or directory)
make[4]: *** [../../../build/Debug/qtlandmarks_sqlite_debug/qlandmarkfilehandler_lmx.o] Error 1
make[3]: *** [debug-install] Error 2
make[2]: *** [sub-sqlite-install_subtargets-ordered] Error 2
make[1]: *** [sub-landmarks-install_subtargets] Error 2
make: *** [sub-plugins-install_subtargets-ordered] Error 2
aspires-imac:qt-mobility-opensource-src-1.1.0-beta2 aspire$

Thanks in advance..

Note : I am not include all the result from the terminal.. The size is too big.

15th October 2010, 10:49
It might be the case that Qt Mobility 1.1 doesn't build against Qt 4.6 (although it's just a guess) or that you don't have the QtXml module available.

15th October 2010, 11:04

Thanks, How could I solve this? any suggestion please..

15th October 2010, 11:35
Get 4.7 and make sure you have the Xml module :) Or get a newer/older QtMobility, maybe it helps.