I try to cross compile the Peak USB for a BananaPro board (http://www.lemaker.org/product-bananapro-index.html).
I've downloaded a toolchain, changed the settings in the peak Makefile (export ARCH=arm, export CROSS_COMPILE=/opt/cross/bin/arm-linux-gnueabi-, KERNEL_LOCATION = "/root/lemaker-bsp/build/sun7i_defconfig-linux/").
The driver is compiling fine, but I*m failing at the lib and the test directory:
Code: Select all
make[1]: Entering directory '/root/peak-linux-driver-7.15.2/lib'
/opt/cross/bin/arm-linux-gnueabi-gcc src/libpcan.c -DNO_RT -I. -I../driver -fPIC -shared -O2 -Wall -Wl,-soname,libpcan.so.0 -lc -o libpcan.so.0.6
src/libpcan.c:38:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
Makefile:91: recipe for target 'libpcan.so.0.6' failed
make[1]: *** [libpcan.so.0.6] Error 1
make[1]: Leaving directory '/root/peak-linux-driver-7.15.2/lib'
make[1]: Entering directory '/root/peak-linux-driver-7.15.2/test'
/opt/cross/bin/arm-linux-gnueabi-gcc -DNO_RT -g -I. -I../lib -I../driver src/receivetest.c src/common.c -lpcan -L../lib -L/lib64 -L/usr/lib64 -L/usr/local/lib64 -o receivetest
src/receivetest.c:40:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
src/common.c:34:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
Makefile:120: recipe for target 'receivetest' failed
make[1]: *** [receivetest] Error 1
make[1]: Leaving directory '/root/peak-linux-driver-7.15.2/test'
stdio.h and stdlib.h are both at /usr/include so I don't have a idea why it is failing here.
Any hints?
Regards
Daniel