PEAK-Linux Driver on Raspberry Pi

This forum covers PCAN-Linux and Linux development issues concerning our products
roitherm
Posts: 2
Joined: Wed 1. Feb 2017, 15:59

Re: PEAK-Linux Driver on Raspberry Pi

Post by roitherm » Fri 3. Feb 2017, 11:33

Hi, I tried doing all the steps again and included NET=NETDEV_SUPPORT, nothing has changed.
Sorry I'm not very versed with htese systems - do I need do uninstall the old driver first somehow?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PEAK-Linux Driver on Raspberry Pi

Post by M.Maidhof » Mon 6. Feb 2017, 17:42

Hi,

please reload the driver again

sudo rmmod pcan
sudo modprobe pcan

then please send output of cat /proc/pcan again

regards

Michael

szadra
Posts: 1
Joined: Mon 13. Feb 2017, 08:33

Re: PEAK-Linux Driver on Raspberry Pi

Post by szadra » Mon 13. Feb 2017, 08:49

Hi,

I work together with roitherm, the problem is that the newest (8.3) driver fails to compile for us when Netdev support is enabled - however, previous driver versions compile with netdev support without a problem.

Our build platform is a Raspberry Pi with 4.4.34-v7+ Kernel with matching kernel headers.

Output of 8.3 build:

Code: Select all

pi@raspberrypi:~/pcanusb/peak-linux-driver-8.3 $ sudo make NET=NETDEV_SUPPORT PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO
[...]
***
*** Host machine kernel version=4.4.34-v7+
*** Driver kernel version=4.4.34
*** Path to kernel sources=/lib/modules/4.4.34-v7+/build
*** use KBUILD=yes
*** cc version=4.9.2
***
make -C /lib/modules/4.4.34-v7+/build  SUBDIRS=/home/pi/pcanusb/peak-linux-driver-8.3/driver        EXTRA_CFLAGS="-I/home/pi/pcanusb/peak-linux-driver-8.3/driver        -DNO_DEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNETDEV_SUPPORT -DNO_RT  -Wno-date-time" V=0 modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.34-v7+'
 [...]
  CC [M]  /home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.o
In file included from include/linux/workqueue.h:8:0,
                 from include/linux/srcu.h:34,
                 from include/linux/notifier.h:15,
                 from include/linux/memory_hotplug.h:6,
                 from include/linux/mmzone.h:735,
                 from include/linux/gfp.h:5,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_common.h:57,
                 from /home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.c:39:
/home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.c: In function ‘pcan_netdev_register’:
/home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.c:874:23: error: ‘struct can_priv’ has no member named ‘restart_timer’
  init_timer(&priv->can.restart_timer);
                       ^
include/linux/timer.h:120:18: note: in definition of macro ‘__init_timer’
  init_timer_key((_timer), (_flags), NULL, NULL)
                  ^
/home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.c:874:2: note: in expansion of macro ‘init_timer’
  init_timer(&priv->can.restart_timer);
  ^
scripts/Makefile.build:258: recipe for target '/home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.o' failed
make[3]: *** [/home/pi/pcanusb/peak-linux-driver-8.3/driver/src/pcan_netdev.o] Error 1
Makefile:1401: recipe for target '_module_/home/pi/pcanusb/peak-linux-driver-8.3/driver' failed
make[2]: *** [_module_/home/pi/pcanusb/peak-linux-driver-8.3/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.34-v7+'
Makefile:383: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/pcanusb/peak-linux-driver-8.3/driver'
make[1]: Entering directory '/home/pi/pcanusb/peak-linux-driver-8.3/lib'
cc -o libpcan.so.0.6 -DNO_RT -I. -I../driver -fPIC -shared -Wall   src/libpcan.c  -Wl,-soname,libpcan.so.0
ln -sf libpcan.so.0.6 libpcan.so
cc -o libpcanfd.so.0.1 -DNO_RT -I. -I../driver -fPIC -shared -Wall   -DPCANFD_OLD_STYLE_API src/libpcanfd.c  -Wl,-soname,libpcanfd.so.0
ln -sf libpcanfd.so.0.1 libpcanfd.so
make[1]: Leaving directory '/home/pi/pcanusb/peak-linux-driver-8.3/lib'
make[1]: Entering directory '/home/pi/pcanusb/peak-linux-driver-8.3/test'
cc -DNO_RT -g -I. -I../lib -I../driver   src/receivetest.c src/common.c -lpcanfd  -L../lib  -o receivetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/transmitest.cpp src/common.c src/parser.cpp -lpcanfd -lstdc++  -L../lib  -o transmitest
cc -DNO_RT -g -I. -I../lib -I../driver   src/bitratetest.c src/common.c -lpcanfd  -L../lib  -o bitratetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/filtertest.cpp src/common.c -lpcanfd -lstdc++  -L../lib  -o filtertest
cc -DNO_RT -g -I. -I../lib -I../driver   src/pcan-settings.c -lpopt  -L../lib  -g -o pcan-settings
cc -DNO_RT -g -I. -I../lib -I../driver   src/pcanfdtst.c -lpcanfd  -L../lib  -o pcanfdtst
make[1]: Leaving directory '/home/pi/pcanusb/peak-linux-driver-8.3/test'
pi@raspberrypi:~/pcanusb/peak-linux-driver-8.3 $
So right now we're using 8.2, which compiles fine.

Kind regards,
Simon

User avatar
S.Grosjean
Software Development
Software Development
Posts: 358
Joined: Wed 4. Jul 2012, 17:02

Re: PEAK-Linux Driver on Raspberry Pi

Post by S.Grosjean » Mon 13. Feb 2017, 12:00

Hello,

This is a known issue: 8.3 handles the socket-CAN "restart" mechanism while previous versions didn't.

Unfortunately, some (like Canonical) have decided to backport a change from mainline Kernel 4.8+ into (some of) their 4.4-x kernels.

If you don't mind about using this "restart" mechanism, you can run 8.2 as well.

We're working on this issue to be able to build 8.3 in all of the configurations.

Keep intouch.

Stéphane
— Stéphane

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PEAK-Linux Driver on Raspberry Pi

Post by M.Maidhof » Thu 16. Feb 2017, 10:21

Hi,

the new peak-linux-driver-8.3.1 which fixes that issue is available on our Linux driver website:

http://www.peak-system.com/fileadmin/me ... /index.htm

regards

Michael

coryjfowler
Posts: 2
Joined: Thu 23. Feb 2017, 22:27

Re: PEAK-Linux Driver on Raspberry Pi

Post by coryjfowler » Thu 23. Feb 2017, 22:30

Make fails...

Code: Select all

root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# make NET=NETDEV_SUPPORT
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Nothing to be done for 'depend'.
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/driver'
***
*** Host machine kernel version=4.4.38+
*** Driver kernel version=4.4.38
*** Path to kernel sources=/lib/modules/4.4.38+/build
*** use KBUILD=yes
*** cc version=4.9.2
***
make -C /lib/modules/4.4.38+/build  SUBDIRS=/root/pcan/peak-linux-driver-8.3.1/driver        EXTRA_CFLAGS=" -I/root/pcan/peak-linux-driver-8.3.1/driver        -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -Wno-date-time" V=0 modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.38+'
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_main.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_fops.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_fifo.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_filter.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_parse.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_sja1000.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_common.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_timing.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcanfd_core.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcanfd_ucan.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.o
/root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.c: In function ‘pcan_pci_enable_msi’:
/root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.c:313:2: error: implicit declaration of function ‘pci_enable_msi_range’ [-Werror=implicit-function-declaration]
  pa->msi_count = pcan_pci_enable_msi_range(pa->dev, 1, can_count);
  ^
/root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.c:324:4: error: implicit declaration of function ‘pci_disable_msi’ [-Werror=implicit-function-declaration]
    pci_disable_msi(pa->dev);
    ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.o' failed
make[3]: *** [/root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pci.o] Error 1
Makefile:1402: recipe for target '_module_/root/pcan/peak-linux-driver-8.3.1/driver' failed
make[2]: *** [_module_/root/pcan/peak-linux-driver-8.3.1/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.38+'
Makefile:395: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/lib'
cc -o libpcan.so.0.6 -DNO_RT -I. -I../driver -fPIC -shared -Wall   src/libpcan.c  -Wl,-soname,libpcan.so.0
ln -sf libpcan.so.0.6 libpcan.so
cc -o libpcanfd.so.0.1 -DNO_RT -I. -I../driver -fPIC -shared -Wall   -DPCANFD_OLD_STYLE_API src/libpcanfd.c  -Wl,-soname,libpcanfd.so.0
ln -sf libpcanfd.so.0.1 libpcanfd.so
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/lib'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/test'
cc -DNO_RT -g -I. -I../lib -I../driver   src/receivetest.c src/common.c -lpcanfd  -L../lib  -o receivetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/transmitest.cpp src/common.c src/parser.cpp -lpcanfd -lstdc++  -L../lib  -o transmitest
cc -DNO_RT -g -I. -I../lib -I../driver   src/bitratetest.c src/common.c -lpcanfd  -L../lib  -o bitratetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/filtertest.cpp src/common.c -lpcanfd -lstdc++  -L../lib  -o filtertest
cc -DNO_RT -g -I. -I../lib -I../driver   src/pcan-settings.c -lpopt  -L../lib  -g -o pcan-settings
cc -DNO_RT -g -I. -I../lib -I../driver   src/pcanfdtst.c -lpcanfd  -L../lib  -o pcanfdtst
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/test'

User avatar
S.Grosjean
Software Development
Software Development
Posts: 358
Joined: Wed 4. Jul 2012, 17:02

Re: PEAK-Linux Driver on Raspberry Pi

Post by S.Grosjean » Fri 24. Feb 2017, 10:35

Hi,

Please redo your make command as you did previously, that is without any PCI support:

Code: Select all

$ make NET=NETDEV_SUPPORT PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO
Regards,

Stéphane
— Stéphane

coryjfowler
Posts: 2
Joined: Thu 23. Feb 2017, 22:27

Re: PEAK-Linux Driver on Raspberry Pi

Post by coryjfowler » Fri 24. Feb 2017, 13:06

Success! Thanks

Code: Select all

root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# make NET=NETDEV_SUPPORT PCI=NO PAR=NO ISA=NO DNG=NO
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Nothing to be done for 'depend'.
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/driver'
***
*** Host machine kernel version=4.4.38+
*** Driver kernel version=4.4.38
*** Path to kernel sources=/lib/modules/4.4.38+/build
*** use KBUILD=yes
*** cc version=4.9.2
***
make -C /lib/modules/4.4.38+/build  SUBDIRS=/root/pcan/peak-linux-driver-8.3.1/driver        EXTRA_CFLAGS=" -I/root/pcan/peak-linux-driver-8.3.1/driver        -                               DNO_DEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DPCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -Wno-date-time" V=0 modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.38+'
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_main.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_fops.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_fifo.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_filter.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_parse.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_sja1000.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_common.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_timing.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcanfd_core.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcanfd_ucan.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pccard_core.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_pccard.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_usb_core.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_usb.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_usbpro.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcanfd_usb.o
  CC [M]  /root/pcan/peak-linux-driver-8.3.1/driver/src/pcan_netdev.o
  LD [M]  /root/pcan/peak-linux-driver-8.3.1/driver/pcan.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/pcan/peak-linux-driver-8.3.1/driver/pcan.mod.o
  LD [M]  /root/pcan/peak-linux-driver-8.3.1/driver/pcan.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.4.38+'
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/lib'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/test'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/test'
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# make install
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/driver'
Info: /lib/modules/4.4.38+/misc exists.
Info: Copied 45-pcan.rules to /etc/udev/rules.d.
Info: mainline drivers removed and blacklisted in
      /etc/modprobe.d/blacklist-peak.conf
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/lib'
mkdir -p /usr/lib
cp libpcan.so.0.6 /usr/lib
ln -sf libpcan.so.0.6 /usr/lib/libpcan.so.0
ln -sf libpcan.so.0 /usr/lib/libpcan.so
mkdir -p /usr/include
cp libpcan.h /usr/include
chmod 644 /usr/include/libpcan.h
cp libpcanfd.so.0.1 /usr/lib
ln -sf libpcanfd.so.0.1 /usr/lib/libpcanfd.so.0
ln -sf libpcanfd.so.0 /usr/lib/libpcanfd.so
cp libpcanfd.h /usr/include
chmod 644 /usr/include/libpcanfd.h
/sbin/ldconfig
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/lib'
make[1]: Entering directory '/root/pcan/peak-linux-driver-8.3.1/test'
cp receivetest transmitest bitratetest filtertest pcan-settings pcanfdtst /usr/local/bin
make[1]: Leaving directory '/root/pcan/peak-linux-driver-8.3.1/test'
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# modprobe pcan
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# modprobe can
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# ip link set can0 type can bitrate 250000
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# ip link set can0 up
root@raspberrypi:~/pcan/peak-linux-driver-8.3.1# candump can0
  can0  0DF805CF   [8]  65 53 00 8C 00 5D F3 FF
  can0  0DF805CF   [8]  66 FF 00 FF FF FF FF FF
  can0  19FA04CF   [8]  60 7B F1 FD 0A 05 22 06
  can0  19FA04CF   [8]  61 DC 35 14 0B 00 00 00
  can0  19FA04CF   [8]  62 00 F2 0A E8 0A 7C BB
  can0  19FA04CF   [8]  63 8D 0E 00 00 00 00 F2
[ ... ]

dan.gert
Posts: 2
Joined: Wed 1. Mar 2017, 14:23

Re: PEAK-Linux Driver on Raspberry Pi

Post by dan.gert » Wed 1. Mar 2017, 14:42

Hello,

I also have issues installing the 8.3.1 driver. I use the 4.4.48-v7+ kernel. I installed the kernel headers and the run the installation. The driver can't find the popt.h header. :?:

Code: Select all

pi@raspberrypi:~/peak-linux-driver-8.3.1 $ sudo make NET=NETDEV_SUPPORT DNG=NO PCI=NO PCIEC=NO PCC=NO ISA=NO
make[1]: Entering directory '/home/pi/peak-linux-driver-8.3.1/driver'
make[1]: Nothing to be done for 'depend'.
make[1]: Leaving directory '/home/pi/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/home/pi/peak-linux-driver-8.3.1/driver'
***
*** Host machine kernel version=4.4.48-v7+
*** Driver kernel version=4.4.48
*** Path to kernel sources=/lib/modules/4.4.48-v7+/build
*** use KBUILD=yes
*** cc version=4.9.2
***
make -C /lib/modules/4.4.48-v7+/build  SUBDIRS=/home/pi/peak-linux-driver-8.3.1/driver        EXTRA_CFLAGS=" -I/home/pi/peak-linux-driver-8.3.1/driver        -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO -DNO -DNO -DNO -DNO -DNETDEV_SUPPORT -DNO_RT  -Wno-date-time" V=0 modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.48-v7+'
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_main.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_fops.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_fifo.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_filter.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_parse.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_sja1000.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_common.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_timing.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcanfd_core.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcanfd_ucan.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_usb_core.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_usb.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_usbpro.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcanfd_usb.o
  CC [M]  /home/pi/peak-linux-driver-8.3.1/driver/src/pcan_netdev.o
  LD [M]  /home/pi/peak-linux-driver-8.3.1/driver/pcan.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/pi/peak-linux-driver-8.3.1/driver/pcan.mod.o
  LD [M]  /home/pi/peak-linux-driver-8.3.1/driver/pcan.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.4.48-v7+'
make[1]: Leaving directory '/home/pi/peak-linux-driver-8.3.1/driver'
make[1]: Entering directory '/home/pi/peak-linux-driver-8.3.1/lib'
cc -o libpcan.so.0.6 -DNO_RT -I. -I../driver -fPIC -shared -Wall   src/libpcan.c  -Wl,-soname,libpcan.so.0
ln -sf libpcan.so.0.6 libpcan.so
cc -o libpcanfd.so.0.1 -DNO_RT -I. -I../driver -fPIC -shared -Wall   -DPCANFD_OLD_STYLE_API src/libpcanfd.c  -Wl,-soname,libpcanfd.so.0
ln -sf libpcanfd.so.0.1 libpcanfd.so
make[1]: Leaving directory '/home/pi/peak-linux-driver-8.3.1/lib'
make[1]: Entering directory '/home/pi/peak-linux-driver-8.3.1/test'
cc -DNO_RT -g -I. -I../lib -I../driver   src/receivetest.c src/common.c -lpcanfd  -L../lib  -o receivetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/transmitest.cpp src/common.c src/parser.cpp -lpcanfd -lstdc++  -L../lib  -o transmitest
cc -DNO_RT -g -I. -I../lib -I../driver   src/bitratetest.c src/common.c -lpcanfd  -L../lib  -o bitratetest
cc -DNO_RT -g -I. -I../lib -I../driver   src/filtertest.cpp src/common.c -lpcanfd -lstdc++  -L../lib  -o filtertest
cc -DNO_RT -g -I. -I../lib -I../driver   src/pcan-settings.c -lpopt  -L../lib  -g -o pcan-settings
src/pcan-settings.c:53:18: fatal error: popt.h: No such file or directory
 #include <popt.h>
                  ^
compilation terminated.
Makefile:149: recipe for target 'pcan-settings' failed
make[1]: *** [pcan-settings] Error 1
make[1]: Leaving directory '/home/pi/peak-linux-driver-8.3.1/test'
thanks for helping
Daniel

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PEAK-Linux Driver on Raspberry Pi

Post by M.Maidhof » Wed 1. Mar 2017, 15:21

Hi,

please read manual of the driver, or have a look into this thread on page 7. You need to install libpopt-dev to build the test applications of our driver.

regards

Michael

Post Reply