Page 1 of 1

CANfestival with peak driver gives undefined symbol

Posted: Sat 28. Apr 2012, 05:56
by obe1line
Has anyone built CANfestival with the peak_linux driver and can run the examples successfully?
My config is a PCAN-USB on Ubuntu 11.10 and 12.04 with the v7.5 PEAK driver and latest CANFestival3.

If I configure with --can=peak_linux and make, the build is fine but running:
./CANOpenShell load#libcanfestival_can_peak_linux.so,1,1M,1,1,1
I get:
./CANOpenShell: symbol lookup error: /usr/local/lib/libcanfestival_can_peak_linux.so: undefined symbol: LINUX_CAN_Open

I can use the libpcan.so directly from my application so I don't think the problem lies in the 7.5 drivers, I just wondered if anyone had come across this problem?

Regards,
Chris

Re: CANfestival with peak driver gives undefined symbol

Posted: Mon 30. Apr 2012, 10:13
by PEAK-Support
Hi, we are sorry, but we have not tested the CANFestival with the latest Version of our drivers.
Maybe you could conatct some of the CANFestival developers, or post in the Mailing List:
http://sourceforge.net/mail/?group_id=29577

Re: CANfestival with peak driver gives undefined symbol

Posted: Mon 30. Apr 2012, 14:15
by obe1line
The good news is the new drivers work okay :) - I built one of their examples by adding an explicit call to LINUX_CanOpen to force library loading of libpcan.

Thanks for the link, I will check with them and see if there is a fix.

Re: CANfestival with peak driver gives undefined symbol

Posted: Mon 30. Apr 2012, 15:13
by PEAK-Support
OK, if you like you could post your solution later on in this Thread...

Re: CANfestival with peak driver gives undefined symbol

Posted: Fri 3. Aug 2012, 14:38
by vagnusde67
I added in the main function of the application a call to the shared library to force the loading of the libpcan shared library:

h = LINUX_CAN_Open("/dev/pcan0", O_RDWR | O_NONBLOCK);

For some reason the code of Canfestival use LoadCanDriver(LibraryPath) == NULL) which doesn't load the shared library libpcan.