[Geographiclib-users] linker error using libGeographic 9.7.2 with QT
Geographic library
Brought to you by:
karney
From: hdixon<hd...@bi...> - 2012-12-06 00:10:00
|
Hi, I am trying to build a QT app using the latest libGeographic library. I have used libGeoGraphic successfully with QT previously, but this time I have a linker error which I cannot resolve. I am wanting to convert eastings / northings to lat/ long using the GeographicLib::GeoCoords class. My linker output, from qt creator, is: ************************************************************************* g++ -Wl,-rpath,/home/hugh/QtSDK-1.2.1/Desktop/Qt/4.8.1/gcc/lib -o crashStat2kml main.o xmlfile.o -L/home/hugh/QtSDK-1.2.1/Desktop/Qt/4.8.1/gcc/lib -L/usr/local/lib/libGeographic -lphonon -L/home/hugh/QtSDK-1.2.1/Desktop/Qt/4.8.1/gcc/lib -lpulse-mainloop-glib -lpulse -lglib-2.0 -lQtDBus -L/usr/X11R6/lib64 -lQtMultimedia -lQtScriptTools -lQtScript -lQtSvg -lQtGui -lQtXmlPatterns -lQtNetwork -lQtXml -lQtCore -lpthread main.o: In function `GeographicLib::GeoCoords::Reset(int, bool, double, double)': /usr/local/include/GeographicLib/GeoCoords.hpp:260: undefined reference to `GeographicLib::UTMUPS::Reverse(int, bool, double, double, double&, double&, double&, double&, bool)' make: Leaving directory `/home/hugh/code/vr/crashStat2kml-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug' /usr/local/include/GeographicLib/GeoCoords.hpp:265: undefined reference to `GeographicLib::GeoCoords::FixHemisphere()' collect2: error: ld returned 1 exit status make: *** [crashStat2kml] Error 1 10:10:51: The process "/usr/bin/make" exited with code 2. Error while building project crashStat2kml (target: Desktop) ************************************************************************* I have had trouble in the past with order of parameters in the call to the linker, and am thinking there is something in libGeographic and QT that conflicts or upsets. Does anyone have any experiance using libG with QT? andif so have they seen this problem and can you help please! With thanks, H |