[obdgpslogger] build errrors on Raspbian

ken gebser at mousecar.com
Fri Apr 18 05:36:56 EDT 2014


Raspbian is the Debian version for the Raspberry Pi.

Running cmake first yielded a few warnings:

....
[ 61%] Building C object src/csv/CMakeFiles/obd2csv.dir/obdgpscsv.c.o
/home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c: In function ‘main’:
/home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:256:26: warning: 
assignment from incompatible pointer type [enabled by default]
/home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:288:3: warning: 
passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
/home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:308:4: warning: 
passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
/home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:328:3: warning: 
passing argument 1 of ‘gzclose’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1494:24: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
Linking C executable /home/pi/bin/obdgpslogger-master/bin/obd2csv
...

but then then some errors:

....
[ 92%] Building CXX object src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In destructor 
‘virtual TCPSimPort::~TCPSimPort()’:
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:62:16: error: 
‘close’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:65:18: error: 
‘close’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In member 
function ‘virtual char* TCPSimPort::readLine()’:
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:114:82: error: 
‘read’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:117:18: error: 
‘close’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:123:18: error: 
‘close’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:134:54: error: 
‘strnstr’ was not declared in this scope
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In member 
function ‘virtual void TCPSimPort::writeData(const char*, int)’:
/home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:159:36: error: 
‘write’ was not declared in this scope
make[2]: *** [src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o] Error 1
make[1]: *** [src/sim/CMakeFiles/obdsim.dir/all] Error 2
make: *** [all] Error 2
....

I'm no C++ programmer at all, but these errors seem as thought they 
could derive from a minor syntactical error... or?

This seems like a great project, not just for the functionality it 
offers, but for the well thought out structure of them, that they are 
built as several distinct executables.  I've been looking for months for 
code (something in C) just to log several chosen PIDs to a log file in 
plain text on an RPi.  I was planning then to add other functionality 
later, but this project already has most of what I'd planned!!  Very 
cool.  I really hope I can get this code to run properly, at least the 
part which logs selected PIDs.

Thanks for any help toward that end.


More information about the obdgpslogger mailing list