Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Issue with cygwin

  1. #1
    Newbie
    Join Date
    Aug 2009
    Posts
    15

    Issue with cygwin

    I ditched Ubuntu on my eeePC and put XP back on because Bluetooth was having horrible problems. Trying to compile under cygwin and get this:

    Administrator@datalogger /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/build
    $ make
    [ 11%] Built target ckobdinfo
    [ 15%] Built target cksqlite
    [ 19%] Built target ckobdconfigfile
    [ 23%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/main.o
    /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c: In function `main':
    /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:446: error: storage size of 'starttime' isn't known
    /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:447: error: storage size of 'endtime' isn't known
    /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:448: error: storage size of 'selecttime' isn't known
    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
    Did I forget to install a package or something?

  2. #2
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    I think you need to add
    Code:
    #include <sys/time.h>
    To main.h. Probably around line 55 or so [near all the other system #includes]

    Lemme know if that fixes it. I haven't actually tested on cygwin in a while, so other teething problems may appear. Please let me know

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

  3. #3
    Newbie
    Join Date
    Aug 2009
    Posts
    15
    Yep that fixed it. Next gcc proceeded to complain about cfsetspeed not being defined on line 280 of logger\obdserial.c . I replaced that call with one to cfsetispeed and another one to cfsetospeed, both before tcsetattr, which compiled. Then I got an error about addrinfo not being defined somewhere in the simulator source, which I proceeded to just remove from src\ for now. Gonna go try it on the car and see if cfsetispeed/cfsetospeed is a good substitute for cfsetspeed ...

  4. #4
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    addrinfo only appears in the socket sim generator; you can disable OBD_SIMGEN_SOCKET to make it not compile that module. In future I'll make it check for that before attempting to compile it.

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

  5. #5
    Newbie
    Join Date
    Aug 2009
    Posts
    15
    Hooray I got data! Looks like cfsetispeed/cfsetospeed at least didn't break anything.

    Looks like my car only supports a small subset of commands known to obdgpslogger:
    1997 Chevrolet Lumina LS - temp, rpm, vss, maf, throttlepos

    Now, to find more commands! I'll make a post if/when that happens Thanks for the help.

  6. #6
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Woo! I commited changes to svn so this will work in future.

    That list of commands looks suspiciously similar to the set that I log by default, rather than the list of commands supported by your car.

    Run obdgpslogger with the "-p" option to get a list of all the commands your car supports. You can then configure which columns you actually want to log with the log_columns parameter in the config file [man 5 dot-obdgpslogger], or with the --log-columns command-line parameter.

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

  7. #7
    Newbie
    Join Date
    Aug 2009
    Posts
    15
    Oh snap, that's awesome!

  8. #8
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    I do my best :-D

    Really, lemme know how it goes. I absolutely get my warm fuzzies from seeing people using my stuff, so post screenshots or something!

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

  9. #9
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Fix in svn now: If the getaddrinfo symbol can't be found, don't build the socket generator.

    This fixes the problem where there's a compilation error in the bowels of obdsim on cygwin.

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

  10. #10
    Newbie
    Join Date
    Aug 2009
    Posts
    15
    Sweet, thanks for all your hard work.

    Here's a screen shot with the -p option for my 97 Lumina:


    And my 98 Corvette:


    This is on a Eee PC 901 with a 50$ generic eBay bluetooth OBD-II scanner.

Page 1 of 2 12 LastLast

Similar Threads

  1. DigitalFX 4.0
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 5576
    Last Post: 03-27-2014, 05:48 PM
  2. **Please help!! disk drive/windows issue
    By Phoenix750 in forum General Hardware Discussion
    Replies: 26
    Last Post: 05-12-2009, 12:38 PM
  3. HP Laptop LCD Exstension issue
    By kendallb in forum LCD/Display
    Replies: 3
    Last Post: 03-22-2009, 07:16 PM
  4. My RR/DFX 4.0 100% CPU usage issue
    By Minoritydan in forum RR Bug Tracker
    Replies: 27
    Last Post: 12-23-2008, 01:40 PM
  5. No audio after resume from hibernate issue - almost fixed - Help me finish?
    By Trin in forum Software & Software Development
    Replies: 0
    Last Post: 07-26-2008, 08:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •