Code Monkey home page Code Monkey logo

obdgpslogger's Introduction

OBDII/GPS Logging Tool


What?

Your car has lots of interesting things it can tell you from the
on-board computer while it's running. obdgpslogger is a small tool
to grab data from an OBDII device and log it to an sqlite database.
If you enable it [on by default, and a large part of this project's
point], then your gps position is also logged to the same database.


What are the other requirements?

Install gpsd first if you want gps support.
The GUI component requires FLTK and fluid.


How do I build this?

mkdir build
cd build
cmake .. # or ccmake .. to edit options
make
make install


And how do I run it?

obdgui # GUI for launching and getting live feedback from other tools
obdgpslogger [-s serialport] [-d sqlite database] # Actual logger
obd2kml [-d sqlite database] [-o output file] # Convert to Google Earth

More specific information is availble in --help or man pages


Chunky Kibbles
[email protected]

obdgpslogger's People

Contributors

oesmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

obdgpslogger's Issues

Build issues in Fedora

I've been trying to build this fork's obdsim in Fedora, but got some errors in tcpsimport.cc:

  1. Missing include: unistd.h
  2. strnstr not available in glibc provided by Fedora.

As a fast workaround, the second issue I solved by copying the freebsd implementation of the function into the project.

For the default make target, there is a gps_open missing argument error. It seems a new parameter has been added in the version of the lib that I've got here.

Fail to compile at Ubuntu 18.04 LTS

Hi @oesmith !

I am developing some student works and saw this obdsim awesome idea and, in fact, i have downloaded fom incculus web site the deb package. Ok! But in my case the bluetooth was not working and not connecting to torque light android app.

So i have read to compile from sources. I have installed all remains libs on linux and it stills get some familiar googles issues.

So here i am to solve with you some doubts that were annoying me, please :)

In last try, i have cloned this repossitory and i have made:

mkdir build
cd build
cmake .. # or ccmake .. to edit options
make
make install

But when make occurs, it appears some problem with gps_open arguments.

Here is the

cmake

command:

ubuntu@ubuntu-Inspiron-5447:~/.local/share/Trash/files/obdgpslogger-0.16/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_POLICY):
The OLD behavior for policy CMP0005 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:7 (CMAKE_POLICY):
The OLD behavior for policy CMP0003 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found FLTK: /usr/local/lib/libfltk.a
-- Looking for gps_stream
-- Looking for gps_stream - found
-- Found gps_stream method in GPSD - assuming version 3 API
-- Found GPSD: /usr/lib/x86_64-linux-gnu/libgps.so,/usr/lib/x86_64-linux-gnu/libgps.so
-- Looking for ptsname_r
-- Looking for ptsname_r - found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for signal
-- Looking for signal - found
-- Found FFTW3: /usr/lib/x86_64-linux-gnu/./libfftw3.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Looking for dlopen
-- Looking for dlopen - found
-- Found dlopen. Building dlopen sim generator
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file netdb.h
-- Looking for include file netdb.h - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - not found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Found getaddrinfo. Building socket sim generator
-- Looking for posix_openpt
-- Looking for posix_openpt - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for BTPROTO_RFCOMM
-- Looking for BTPROTO_RFCOMM - not found
-- Found LIBFTDI: /usr/lib/x86_64-linux-gnu/./libftdi.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/build

It seems everything ok!

Now running

make

:

ubuntu@ubuntu-Inspiron-5447:/.local/share/Trash/files/obdgpslogger-0.16/build$ make
Scanning dependencies of target cksqlite
[ 1%] Building C object libs/sqlite3/CMakeFiles/cksqlite.dir/sqlite3.c.o
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3GetVarint’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:19136:15: warning: result of ‘31 << 28’ requires 34 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
a &= (0x1f<<28)|(0x7f<<14)|(0x7f);
^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:19153:15: warning: result of ‘31 << 28’ requires 34 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
b &= (0x1f<<28)|(0x7f<<14)|(0x7f);
^~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3ValueText’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:337:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define SQLITE_PTR_TO_INT(X) ((int)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:46988:50: note: in expansion of macro ‘SQLITE_PTR_TO_INT’
if( (enc & SQLITE_UTF16_ALIGNED)!=0 && 1==(1&SQLITE_PTR_TO_INT(pVal->z)) ){
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3VdbeAddOp4Int’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:47354:32: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
sqlite3VdbeChangeP4(p, addr, SQLITE_INT_TO_PTR(p4), P4_INT32);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3VdbeChangeP4’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:337:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define SQLITE_PTR_TO_INT(X) ((int)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:47868:17: note: in expansion of macro ‘SQLITE_PTR_TO_INT’
pOp->p4.i = SQLITE_PTR_TO_INT(zP4);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3VdbeRecordUnpack’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:337:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define SQLITE_PTR_TO_INT(X) ((int)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:49873:16: note: in expansion of macro ‘SQLITE_PTR_TO_INT’
nOff = (8 - (SQLITE_PTR_TO_INT(pSpace) & 7)) & 7;
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3_blob_open’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:58238:39: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
sqlite3VdbeChangeP4(v, 3+flags, SQLITE_INT_TO_PTR(pTab->nCol+1),P4_INT32);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3RefillIndex’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:68540:28: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
void * const pRegKey = SQLITE_INT_TO_PTR(regIdxKey);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘trimFunc’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:337:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define SQLITE_PTR_TO_INT(X) ((int)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:72028:13: note: in expansion of macro ‘SQLITE_PTR_TO_INT’
flags = SQLITE_PTR_TO_INT(sqlite3_user_data(context));
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3OpenTable’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:73758:30: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
sqlite3VdbeChangeP4(v, -1, SQLITE_INT_TO_PTR(pTab->nCol), P4_INT32);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3GenerateConstraintChecks’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:75064:34: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
regR, SQLITE_INT_TO_PTR(regIdx),
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3_get_table’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:83421:21: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
res.azResult[0] = SQLITE_INT_TO_PTR(res.nData);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3_free_table’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:337:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define SQLITE_PTR_TO_INT(X) ((int)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:83465:9: note: in expansion of macro ‘SQLITE_PTR_TO_INT’
n = SQLITE_PTR_TO_INT(azResult[0]);
^~~~~~~~~~~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c: In function ‘sqlite3WhereBegin’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:336:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

define SQLITE_INT_TO_PTR(X) ((void*)(X))

                               ^

/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/libs/sqlite3/sqlite3.c:90406:29: note: in expansion of macro ‘SQLITE_INT_TO_PTR’
SQLITE_INT_TO_PTR(n), P4_INT32);
^~~~~~~~~~~~~~~~~
[ 2%] Linking C static library libcksqlite.a
[ 2%] Built target cksqlite
Scanning dependencies of target ckobdcomm
[ 3%] Building C object src/obdcomm/CMakeFiles/ckobdcomm.dir/obdserial.c.o
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/obdcomm/obdserial.c: In function ‘blindcmd’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/obdcomm/obdserial.c:135:40: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
snprintf(outstr, sizeof(outstr), "%s%s\0", cmd, OBDCMD_NEWLINE);
^~
[ 4%] Building C object src/obdcomm/CMakeFiles/ckobdcomm.dir/supportedcommands.c.o
[ 5%] Linking C static library libckobdcomm.a
[ 5%] Built target ckobdcomm
Scanning dependencies of target ckobdconfigfile
[ 6%] Building C object src/conf/CMakeFiles/ckobdconfigfile.dir/obdconfigfile.c.o
[ 8%] Linking C static library libckobdconfigfile.a
[ 8%] Built target ckobdconfigfile
Scanning dependencies of target ckobdinfo
[ 9%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/dtccodes.c.o
[ 10%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdconvertfunctions.c.o
[ 11%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdrevconvertfunctions.c.o
[ 12%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdservicecommands.c.o
[ 13%] Linking C static library libckobdinfo.a
[ 13%] Built target ckobdinfo
Scanning dependencies of target obdgpslogger
[ 15%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/database.c.o
[ 16%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/ecudb.c.o
[ 17%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/gpscomm.c.o
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/logger/gpscomm.c: In function ‘opengps’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/logger/gpscomm.c:43:35: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/EDITED/ struct gps_data_t *g = gps_open(server,port,gpsdata);
^~~~~~~~
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/logger/gpscomm.c: In function ‘getgpsposition’:
/home/ubuntu/.local/share/Trash/files/obdgpslogger-0.16/src/logger/gpscomm.c:77:4: warning: implicit declaration of function ‘gps_poll’; did you mean ‘gps_data’? [-Wimplicit-function-declaration]
gps_poll(g);
^~~~~~~~
gps_data
[ 18%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/gpsdb.c.o
[ 19%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/main.c.o
[ 20%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/obddb.c.o
[ 22%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/obddbus.c.o
[ 23%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/tripdb.c.o
[ 24%] Linking C executable ../../../bin/obdgpslogger
CMakeFiles/obdgpslogger.dir/gpscomm.c.o: Na função "getgpsposition":
gpscomm.c:(.text+0x1b8): referência não definida para "gps_poll"
collect2: error: ld returned 1 exit status
src/logger/CMakeFiles/obdgpslogger.dir/build.make:281: recipe for target '../bin/obdgpslogger' failed
make[2]: *** [../bin/obdgpslogger] Error 1
CMakeFiles/Makefile2:198: recipe for target 'src/logger/CMakeFiles/obdgpslogger.dir/all' failed
make[1]: *** [src/logger/CMakeFiles/obdgpslogger.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Or just running

make obdsim

, plese take look:

ubuntu@ubuntu-Inspiron-5447:~/obdgpslogger/build$ make obdsim
[ 6%] Built target ckobdsim_socket
[ 12%] Built target cksqlite
[ 29%] Built target ckobdinfo
[ 35%] Built target ckobdconfigfile
[ 41%] Built target ckobdsim_logger
[ 54%] Built target ckobdsim_gui_fltk
[ 61%] Built target ckobdsim_error
[ 67%] Built target ckobdsim_dlopen
[ 74%] Built target ckobdsim_random
[ 80%] Built target ckobdsim_cycle
[ 83%] Building CXX object src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc: In destructor ‘virtual TCPSimPort::~TCPSimPort()’:
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:62:3: error: ‘close’ was not declared in this scope
close(comm_fd);
^~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:62:3: note: suggested alternative: ‘pclose’
close(comm_fd);
^~~~~
pclose
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:65:3: error: ‘close’ was not declared in this scope
close(listen_fd);
^~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:65:3: note: suggested alternative: ‘pclose’
close(listen_fd);
^~~~~
pclose
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc: In member function ‘virtual char* TCPSimPort::readLine()’:
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:114:20: error: ‘read’ was not declared in this scope
size_t n_read = read(comm_fd, readbuf+readbuf_pos, sizeof(readbuf)-readbuf_pos);
^~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:114:20: note: suggested alternative: ‘fread’
size_t n_read = read(comm_fd, readbuf+readbuf_pos, sizeof(readbuf)-readbuf_pos);
^~~~
fread
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:117:5: error: ‘close’ was not declared in this scope
close(comm_fd);
^~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:117:5: note: suggested alternative: ‘pclose’
close(comm_fd);
^~~~~
pclose
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:123:5: error: ‘close’ was not declared in this scope
close(comm_fd);
^~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:123:5: note: suggested alternative: ‘pclose’
close(comm_fd);
^~~~~
pclose
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:134:20: error: ‘strnstr’ was not declared in this scope
char* line_end = strnstr(readbuf, "\r", readbuf_pos);
^~~~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:134:20: note: suggested alternative: ‘strstr’
char* line_end = strnstr(readbuf, "\r", readbuf_pos);
^~~~~~~
strstr
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc: In member function ‘virtual void TCPSimPort::writeData(const char*, int)’:
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:159:3: error: ‘write’ was not declared in this scope
write(comm_fd, line, strlen(line));
^~~~~
/home/ubuntu/obdgpslogger/src/sim/tcpsimport.cc:159:3: note: suggested alternative: ‘fwrite’
write(comm_fd, line, strlen(line));
^~~~~
fwrite
src/sim/CMakeFiles/obdsim.dir/build.make:158: recipe for target 'src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o' failed
make[3]: *** [src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o] Error 1
CMakeFiles/Makefile2:1006: recipe for target 'src/sim/CMakeFiles/obdsim.dir/all' failed
make[2]: *** [src/sim/CMakeFiles/obdsim.dir/all] Error 2
CMakeFiles/Makefile2:1018: recipe for target 'src/sim/CMakeFiles/obdsim.dir/rule' failed
make[1]: *** [src/sim/CMakeFiles/obdsim.dir/rule] Error 2
Makefile:433: recipe for target 'obdsim' failed
make: *** [obdsim] Error 2

I really would like to solve this to proceed to connect with my phone, Asus Zenphone3

May you wold help me please? 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.