Hi,
i’m using this image:
Apalis-iMX6_Reference-Multimedia-Image-upstream-Tezi_6.6.0+build.12
on Apalis Ixora IMX6 2 Gbyte
I have configure socketcan daemon:
[Unit]
Description=Setup SocketCAN interface can0 with a baudrate of 500000
After=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/sbin/ip link set can0 type can bitrate 500000
ExecStart=/sbin/ip link set can0 up
ExecStop=/sbin/ip link set can0 down
[Install]
WantedBy=multi-user.target
then i compile qt can application in imx6 and copy on scb.
When i start application ./can
qt.canbus.plugins.socketcan: Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)
qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)
It seems that libsocketcan is missing so i try download GitHub - linux-can/libsocketcan.
./autogen.sh
autoreconf
./autogen.sh: line 20: autoreconf: command not found
autoreconf is missing so:
wget https://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
tar -xvf autoconf-latest.tar.gz
cd autoconf-2.72/
./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a race-free mkdir -p… /bin/mkdir -p
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets $(MAKE)… no
checking whether make supports nested variables… no
checking build system type… armv7l-unknown-linux-gnueabihf
checking host system type… armv7l-unknown-linux-gnueabihf
configure: autobuild project… GNU Autoconf
configure: autobuild revision… 2.72
configure: autobuild hostname… apalis-imx6-11305048
configure: autobuild timestamp… 20240409T185827Z
checking for a shell whose -n mode is known to work… /bin/sh
checking for characters that cannot appear in file names… none
checking whether directories can have trailing spaces… yes
checking for expr… /usr/bin/expr
checking for GNU M4 that supports accurate traces… configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.8 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
i try make
-sh: make: command not found.
Please somebody can helpme to have canbus works?
Thank you in advantages.
Patrick