#52 gpsdrive-2.11 fails to compile with gpsd-2.95

gpsdrive-2.11
closed-fixed
nobody
source code (4)
5
2010-10-13
2010-10-09
Juergen Rose
No

Compiling gpsdrive fails with:
...
[ 47%] Building C object src/CMakeFiles/gpsdrive.dir/gps_handler.o
cd /var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11_build/src && /usr/bin/x86_64-pc-linux-gnu-gcc -DPOSTGIS -DMAPNIK -DDBUS -DLIBGPS_OLD -DDEBUG -DNDEBUG -march=nocona -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11_build/src -I/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src -I/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11_build -I/usr/include/gtk-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/boost-1_39 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -fPIC -o CMakeFiles/gpsdrive.dir/gps_handler.o -c /var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c: In function ‘gps_hook_cb’:
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:330: error: ‘struct gps_data_t’ has no member named ‘satellites’
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:348: error: ‘struct gps_data_t’ has no member named ‘satellites’
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:357: error: ‘struct gps_data_t’ has no member named ‘hdop’
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:358: error: ‘struct gps_fix_t’ has no member named ‘eph’
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:372: error: ‘struct gps_data_t’ has no member named ‘satellites’
/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11/src/gps_handler.c:374: error: ‘struct gps_data_t’ has no member named ‘satellites’
make[2]: *** [src/CMakeFiles/gpsdrive.dir/gps_handler.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/gpsdrive-2.11/work/gpsdrive-2.11_build'
make[1]: *** [src/CMakeFiles/gpsdrive.dir/all] Error 2

Discussion

  • Hamish B
    Hamish B
    2010-10-09

    mkae sure that you have edited DefineOptions.cmake and set this line to the appropriate ON/OFF for you:

    option(LIBGPS_OLD "Build with old libgps version (<2.90)" OFF)

    Hamish

     
  • Juergen Rose
    Juergen Rose
    2010-10-13

    Hi Hamish,

    thanks for the hint. I can now compile gpsdrive-2.11.

    Regards Juergen

     
  • Hamish B
    Hamish B
    2010-10-13

    > thanks for the hint. I can now compile gpsdrive-2.11.

    glad for it, closing bug.

    happy mapping,
    Hamish

     
  • Hamish B
    Hamish B
    2010-10-13

    • status: open --> closed-fixed