Announcement

Collapse
No announcement yet.

Problem compiling under Ubuntu 9.04

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem compiling under Ubuntu 9.04

    I followed the thread on here for doing this exact thing but it's not working for me. This is on an Asus eeePC 900A with Easy Peasy distro upgraded to Ubuntu 9.04:

    [email protected]:~/Desktop/obdgpslogger/build$ cmake ..
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
    -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
    -- Looking for gethostbyname
    -- Looking for gethostbyname - found
    -- Looking for connect
    -- Looking for connect - found
    -- Looking for remove
    -- Looking for remove - found
    -- Looking for shmat
    -- Looking for shmat - found
    -- Looking for IceConnectionNumber in ICE
    -- Looking for IceConnectionNumber in ICE - found
    -- Found X11: /usr/lib/libX11.so
    -- Found FLTK: fltk_images;fltk;fltk_gl;fltk_forms;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libm.so
    -- Found GPSD: /usr/lib/libgps.so,/usr/lib/libgps.so
    -- Found DBUS: /lib/libdbus-1.so,/lib/libdbus-1.so
    -- Looking for include files HAVE_SIGNAL_H
    -- Looking for include files HAVE_SIGNAL_H - found
    -- Looking for sigaction
    -- Looking for sigaction - found
    -- Looking for signal
    -- Looking for signal - found
    -- Looking for ptsname_r
    -- Looking for ptsname_r - found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/dents/Desktop/obdgpslogger/build
    [email protected]:~/Desktop/obdgpslogger/build$ make
    Scanning dependencies of target ckobdinfo
    [ 2%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdrevconvertfunctions.o
    [ 4%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdservicecommands.o
    [ 7%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdconvertfunctions.o
    Linking C static library libckobdinfo.a
    [ 7%] Built target ckobdinfo
    Scanning dependencies of target ckobdconfigfile
    [ 9%] Building C object src/conf/CMakeFiles/ckobdconfigfile.dir/obdconfigfile.o
    Linking C static library libckobdconfigfile.a
    [ 9%] Built target ckobdconfigfile
    Scanning dependencies of target cksqlite
    [ 11%] Building C object libs/sqlite3/CMakeFiles/cksqlite.dir/sqlite3.o
    Linking C static library libcksqlite.a
    [ 11%] Built target cksqlite
    Scanning dependencies of target obdgpslogger
    [ 14%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/main.o
    /home/dents/Desktop/obdgpslogger/src/logger/main.c: In function ‘main’:
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:203: warning: assignment discards qualifiers from pointer target type
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:424: error: storage size of ‘msg_ret’ isn’t known
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:425: error: ‘OBD_DBUS_NOMESSAGE’ undeclared (first use in this function)
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:425: error: (Each undeclared identifier is reported only once
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:425: error: for each function it appears in.)
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:427: error: ‘OBD_DBUS_STARTTRIP’ undeclared (first use in this function)
    /home/dents/Desktop/obdgpslogger/src/logger/main.c:434: error: ‘OBD_DBUS_ENDTRIP’ undeclared (first use in this function)
    make[2]: *** [src/logger/CMakeFiles/obdgpslogger.dir/main.o] Error 1
    make[1]: *** [src/logger/CMakeFiles/obdgpslogger.dir/all] Error 2
    make: *** [all] Error 2

    Which dumb thing did I do?

  • #2
    Ooops, my bad. I added some code the other day to do some useful dbus things, but forgot to wrap it with an #ifdef HAVE_DBUS guard.

    That's resolved in svn, now.

    Do an svn update and you'll be set. Or enable dbus support. Or do both!

    Thanks,
    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

    Comment


    • #3
      And there was much rejoicing! Thanks it works now.

      Comment


      • #4
        I wish all problems were this easy to fix :-D

        Gary (-;
        OBDGPSLogger, for logging OBDII and/or GPS data
        OBDSim, an OBDII/ELM327 software simulator
        mp3car forums: obdgpslogger, obdsim

        Comment

        Working...
        X