I have some trouble compiling pcanbasic on linux (ubuntu 12.04).
The peak-linux-driver-7.11 compiled and installed like a charm. (Juste needed a apt-get install libpopt-dev)
Now as I wanted to use the Java API, I downloaded PCAN_Basic_Linux-2.0.2.tar.gz
So I tried to compile the libpcanbasic, and I am encountering the following error:
/PCAN_Basic_Linux-2.0.2/pcanbasic $ make
# ln -sf ../driver/pcan.h pcan.h
g++ src/libpcanbasic.cpp -fPIC -shared -O2 -Wall -Wl,-soname,libpcanbasic.so.0 -lc -I. -I../driver -DNO_RT -o libpcanbasic.so.0.1
src/libpcanbasic.cpp: In function ‘__u32 CAN_SetValue(__u8, __u8, void*, __u32)’:
src/libpcanbasic.cpp
make: *** [libpcanbasic.so.0.1] Error 1
I tried to copy the /usr/include/pcan.h file into the src directory, but error is still here.
Do you please have any hint or help on this problem ?