[ gpsdrive ] Linker errors on Ubuntu Hardy

Hamish hamish_b at yahoo.com
Tue Mar 31 20:57:34 AKDT 2009


Joerg wrote:
> After applying the ubuntu-hardy-32.patch and trying to
> compile GpsDrive for Ubuntu Hardy I get the following Error....
> 
> [100%] Building C object
> src/CMakeFiles/gpsdrive.dir/navigation_gui.o
> 
> Linking C executable gpsdrive
> CMakeFiles/gpsdrive.dir/gpsdrive.o: In function `main':
> gpsdrive.c:(.text+0x671d): undefined reference to
> `g_thread_init'
> collect2: ld returned 1 exit status
> 
> make[3]: *** [src/gpsdrive] Error 1
> make[3]: Leaving directory `/home/tweety/gpsdrive/build'
> make[2]: *** [src/CMakeFiles/gpsdrive.dir/all] Error 2
> make[2]: Leaving directory `/home/tweety/gpsdrive/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/tweety/gpsdrive/build'
> make: *** [build/build-stamp] Error 2
> debuild: fatal error at line 1229:
> couldn't exec fakeroot debian/rules: 
> EXIT CODE=2


try adding to src/gpsdrive.c:
#include <glib/gthread.h>
  or
#include <glib/gmain.h>     // (gmain.h includes gthread.h)


Hamish



      



More information about the GPSdrive mailing list