Details
Description
libQtLocation does not build on Maemo 5
configure: ./configure -debug -examples -maemo5
Error:
make[2]: Entering directory `/home/gagi/qt-mobility/src/location'
g++ -c -pipe -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_SHARED -DQ_WS_MAEMO_5 -DQT_BUILD_LOCATION_LIB -DQT_MAKEDLL -DQT_CORE_LIB -I/home/gagi/qt-maemo-arm/mkspecs/linux-g++-maemo5 -I. -I/home/gagi/qt-maemo-arm/include/QtCore -I/home/gagi/qt-maemo-arm/include -I/home/gagi/qt-maemo-arm/include/QtDBus -I../3rdparty/icd-network-wlan -I../global -I. -I../../build/Debug/QtLocation/moc -o ../../build/Debug/QtLocation/liblocationwrapper.o liblocationwrapper.cpp
g++ -c -pipe -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_SHARED -DQ_WS_MAEMO_5 -DQT_BUILD_LOCATION_LIB -DQT_MAKEDLL -DQT_CORE_LIB -I/home/gagi/qt-maemo-arm/mkspecs/linux-g++-maemo5 -I. -I/home/gagi/qt-maemo-arm/include/QtCore -I/home/gagi/qt-maemo-arm/include -I/home/gagi/qt-maemo-arm/include/QtDBus -I../3rdparty/icd-network-wlan -I../global -I. -I../../build/Debug/QtLocation/moc -o ../../build/Debug/QtLocation/qgeopositioninfosource_maemo5.o qgeopositioninfosource_maemo5.cpp
g++ -c -pipe -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_SHARED -DQ_WS_MAEMO_5 -DQT_BUILD_LOCATION_LIB -DQT_MAKEDLL -DQT_CORE_LIB -I/home/gagi/qt-maemo-arm/mkspecs/linux-g++-maemo5 -I. -I/home/gagi/qt-maemo-arm/include/QtCore -I/home/gagi/qt-maemo-arm/include -I/home/gagi/qt-maemo-arm/include/QtDBus -I../3rdparty/icd-network-wlan -I../global -I. -I../../build/Debug/QtLocation/moc -o ../../build/Debug/QtLocation/qgeosatelliteinfosource_maemo5.o qgeosatelliteinfosource_maemo5.cpp
g++ -c -pipe -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_SHARED -DQ_WS_MAEMO_5 -DQT_BUILD_LOCATION_LIB -DQT_MAKEDLL -DQT_CORE_LIB -I/home/gagi/qt-maemo-arm/mkspecs/linux-g++-maemo5 -I. -I/home/gagi/qt-maemo-arm/include/QtCore -I/home/gagi/qt-maemo-arm/include -I/home/gagi/qt-maemo-arm/include/QtDBus -I../3rdparty/icd-network-wlan -I../global -I. -I../../build/Debug/QtLocation/moc -o ../../build/Debug/QtLocation/qgeoareamonitor_maemo.o qgeoareamonitor_maemo.cpp
In file included from qgeoareamonitor_maemo_p.h:49,
from qgeoareamonitor_maemo.cpp:42:
/usr/include/location/location-distance-utils.h:22: error: expected constructor, destructor, or type conversion before 'double'
In file included from qgeoareamonitor_maemo.cpp:42:
qgeoareamonitor_maemo_p.h:50: error: expected constructor, destructor, or type conversion before '}' token
qgeoareamonitor_maemo.cpp: In member function 'void QtMobility::QGeoAreaMonitorMaemo::positionUpdated(const QtMobility::QGeoPositionInfo&)':
qgeoareamonitor_maemo.cpp:85: error: 'location_distance_between' was not declared in this scope
make[2]: *** [../../build/Debug/QtLocation/qgeoareamonitor_maemo.o] Error 1
make[2]: Leaving directory `/home/gagi/qt-mobility/src/location'
make[1]: *** [sub-location-make_default] Error 2
make[1]: Leaving directory `/home/gagi/qt-mobility/src'
make: *** [sub-src-make_default-ordered] Error 2
Resolution:
You can't use gtk headers, without using the glibc header. adding "#include <glib.h>" resolves the problem