Re: [Geographiclib-users] linker error using libGeographic 9.7.2 with QT **resolved
Geographic library
Brought to you by:
karney
From: hugh <hd...@bi...> - 2012-12-08 23:52:13
|
On Thu, 6 Dec 2012 11:09:47 +1100 hdixon<hd...@bi...> wrote: > 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 > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add > services Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Geographiclib-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geographiclib-users Problem found in my configuration, had nothing to do with libGeographics! Sorry! H |