Hi,<br><br> I have tried to follow the command to build obdsim only. However, while doing make obdsim, the following error occurs:<br><br>[ 5%] Built target ckobdsim_cycle<br>[ 10%] Built target cksqlite<br>[ 30%] Built target ckobdinfo<br>
[ 35%] Built target ckobdsim_socket<br>[ 40%] Built target ckobdconfigfile<br>[ 45%] Built target ckobdsim_logger<br>[ 50%] Built target ckobdsim_dlopen<br>[ 65%] Built target ckobdsim_gui_fltk<br>[ 70%] Built target ckobdsim_error<br>
[ 75%] Built target ckobdsim_random<br>[ 80%] Building CXX object src/sim/CMakeFiles/obdsim.dir/obdsim.cc.o<br>In file included from /home/xiping/obdgpslogger-0.16/src/sim/bluetoothsimport.h:32:0,<br> from /home/xiping/obdgpslogger-0.16/src/sim/obdsim.cc:51:<br>
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_le64(void*)’:<br>/usr/include/bluetooth/bluetooth.h:131:9: error: invalid conversion from ‘void*’ to ‘bt_get_le64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_be64(void*)’:<br>/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>
/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_le32(void*)’:<br>
/usr/include/bluetooth/bluetooth.h:141:9: error: invalid conversion from ‘void*’ to ‘bt_get_le32(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_be32(void*)’:<br>
/usr/include/bluetooth/bluetooth.h:146:9: error: invalid conversion from ‘void*’ to ‘bt_get_be32(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_le16(void*)’:<br>
/usr/include/bluetooth/bluetooth.h:151:9: error: invalid conversion from ‘void*’ to ‘bt_get_le16(void*)::<anonymous struct>*’ [-fpermissive]<br>/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_be16(void*)’:<br>
/usr/include/bluetooth/bluetooth.h:156:9: error: invalid conversion from ‘void*’ to ‘bt_get_be16(void*)::<anonymous struct>*’ [-fpermissive]<br>make[3]: *** [src/sim/CMakeFiles/obdsim.dir/obdsim.cc.o] Error 1<br>make[2]: *** [src/sim/CMakeFiles/obdsim.dir/all] Error 2<br>
make[1]: *** [src/sim/CMakeFiles/obdsim.dir/rule] Error 2<br>make: *** [obdsim] Error 2<br><br>What's the reason of that reason and is there any way to fix that.<br>Thanks for helping. My operating system is archLinux 32bit version.<br>
<br><br><br> Best Regards<br><br> Xiping.<br><br><br><div class="gmail_quote">On Sat, Jan 14, 2012 at 9:32 AM, Gary Briggs <span dir="ltr"><<a href="mailto:chunky@icculus.org">chunky@icculus.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 13, 2012 at 02:07:12AM +0800, Xiping wrote:<br>
> Hi,<br>
><br>
><br>
> I am trying to install OBDSim, which is a part of the OBDGPSLogger.<br>
> During the installation process, the following error occurs:<br>
><br>
</div>> /home/xiping/obdgpslogger-0.16/src/logger/gpscomm.c: In function ?opengps?:<br>
<div class="im">> /home/xiping/obdgpslogger-0.16/src/logger/gpscomm.c:29:9: error: too few<br>
</div>> arguments to function ?gps_open?<br>
<div class="im">> /usr/include/gps.h:1717:12: note: declared here<br>
> make[2]: *** [src/logger/CMakeFiles/obdgpslogger.dir/gpscomm.c.o] Error 1<br>
> make[1]: *** [src/logger/CMakeFiles/obdgpslogger.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
><br>
> I can see that the reason is the gpsd lib in my system is not<br>
> compatiable with the obdgpslogger source code anymore. However, is there<br>
> any way to fix the source code in order to make the OBDSim to work? By the<br>
> way, in order to make OBDSim to work, is there any additonal device needed?<br>
> Thanks.<br>
<br>
</div>Ugh. Yeah, I need to fix that. They changed the gpsd api *again* before<br>
*actually* releasing 3.0, grrr.<br>
<br>
In the meantime, if you only want obdsim, just type "make obdsim"<br>
instead of "make" and you'll just get the obdsim binary, it won't try to<br>
build obdgpslogger too.<br>
<span class="HOEnZb"><font color="#888888"><br>
Gary (-;<br>
</font></span></blockquote></div><br>