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
CANfestival with peak driver gives undefined symbol
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: CANfestival with peak driver gives undefined symbol
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
Maybe you could conatct some of the CANFestival developers, or post in the Mailing List:
http://sourceforge.net/mail/?group_id=29577
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: CANfestival with peak driver gives undefined symbol
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.

Thanks for the link, I will check with them and see if there is a fix.
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: CANfestival with peak driver gives undefined symbol
OK, if you like you could post your solution later on in this Thread...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
-
- Posts: 4
- Joined: Fri 3. Aug 2012, 14:34
Re: CANfestival with peak driver gives undefined symbol
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.
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.