[obdgpslogger] About Compiling OBDSim

Xiping love.ambienttalk at gmail.com
Fri Jan 13 21:15:06 EST 2012


Hi,

    I have tried to follow the command to build obdsim only. However, while
doing make obdsim, the following error occurs:

[  5%] Built target ckobdsim_cycle
[ 10%] Built target cksqlite
[ 30%] Built target ckobdinfo
[ 35%] Built target ckobdsim_socket
[ 40%] Built target ckobdconfigfile
[ 45%] Built target ckobdsim_logger
[ 50%] Built target ckobdsim_dlopen
[ 65%] Built target ckobdsim_gui_fltk
[ 70%] Built target ckobdsim_error
[ 75%] Built target ckobdsim_random
[ 80%] Building CXX object src/sim/CMakeFiles/obdsim.dir/obdsim.cc.o
In file included from
/home/xiping/obdgpslogger-0.16/src/sim/bluetoothsimport.h:32:0,
                 from /home/xiping/obdgpslogger-0.16/src/sim/obdsim.cc:51:
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t
bt_get_le64(void*)’:
/usr/include/bluetooth/bluetooth.h:131:9: error: invalid conversion from
‘void*’ to ‘bt_get_le64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t
bt_get_be64(void*)’:
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from
‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t
bt_get_le32(void*)’:
/usr/include/bluetooth/bluetooth.h:141:9: error: invalid conversion from
‘void*’ to ‘bt_get_le32(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t
bt_get_be32(void*)’:
/usr/include/bluetooth/bluetooth.h:146:9: error: invalid conversion from
‘void*’ to ‘bt_get_be32(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t
bt_get_le16(void*)’:
/usr/include/bluetooth/bluetooth.h:151:9: error: invalid conversion from
‘void*’ to ‘bt_get_le16(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t
bt_get_be16(void*)’:
/usr/include/bluetooth/bluetooth.h:156:9: error: invalid conversion from
‘void*’ to ‘bt_get_be16(void*)::<anonymous struct>*’ [-fpermissive]
make[3]: *** [src/sim/CMakeFiles/obdsim.dir/obdsim.cc.o] Error 1
make[2]: *** [src/sim/CMakeFiles/obdsim.dir/all] Error 2
make[1]: *** [src/sim/CMakeFiles/obdsim.dir/rule] Error 2
make: *** [obdsim] Error 2

What's the reason of that reason and is there any way to fix that.
Thanks for helping. My operating system is archLinux 32bit version.



    Best Regards

              Xiping.


On Sat, Jan 14, 2012 at 9:32 AM, Gary Briggs <chunky at icculus.org> wrote:

> On Fri, Jan 13, 2012 at 02:07:12AM +0800, Xiping wrote:
> > Hi,
> >
> >
> >     I am trying to install OBDSim, which is a part of the OBDGPSLogger.
> > During the installation process, the following error occurs:
> >
> > /home/xiping/obdgpslogger-0.16/src/logger/gpscomm.c: In function
> ?opengps?:
> > /home/xiping/obdgpslogger-0.16/src/logger/gpscomm.c:29:9: error: too few
> > arguments to function ?gps_open?
> > /usr/include/gps.h:1717:12: note: declared here
> > make[2]: *** [src/logger/CMakeFiles/obdgpslogger.dir/gpscomm.c.o] Error 1
> > make[1]: *** [src/logger/CMakeFiles/obdgpslogger.dir/all] Error 2
> > make: *** [all] Error 2
> >
> >
> >    I can see that the reason is the gpsd lib in my system is not
> > compatiable with the obdgpslogger source code anymore. However, is there
> > any way to fix the source code in order to make the OBDSim to work? By
> the
> > way, in order to make OBDSim to work, is there any additonal device
> needed?
> > Thanks.
>
> Ugh. Yeah, I need to fix that. They changed the gpsd api *again* before
> *actually* releasing 3.0, grrr.
>
> In the meantime, if you only want obdsim, just type "make obdsim"
> instead of "make" and you'll just get the obdsim binary, it won't try to
> build obdgpslogger too.
>
> Gary (-;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/obdgpslogger/attachments/20120114/76727895/attachment.htm>


More information about the obdgpslogger mailing list