We have a customer using Allwinner T5 CPU, running linux 32-bit OS.
In the design, Allwinner T5 CPU needs to communicate with XVF3000 via USB, and CPU needs to send out control command repeatedly to get the DOA angle information from XVF3000 array microphone.
However, we failed to build a vfctrl_usb executable using the arm-linux-gcc toolchain.
We use the Makefile.Pi as template, and changes the libusb directory to linux32 as follows, but got stucked compiling.
vfctrl_usb:
mkdir -p bin
cd src ; gcc -std=c99 -D_GNU_SOURCE -Wall -g -D HOST_APP -o ../bin/vfctrl_usb \
-I ../libusb/Linux32 \
$(LIB_DEVICE_CONTROL)/lib_device_control/host/device_access_usb.c \
-lusb-1.0 \
-D USE_USB=1 \
$(COMMON)
Please share some comments if you have encountered some similar problem.
The message is as follows,
beclear/lib_xbeclear/host/control# make -f Makefile.Linux32 vfctrl_usb
mkdir -p bin
cd src ; arm-linux-gcc -std=c99 -D_GNU_SOURCE -Wall -g -D HOST_APP -o ../bin/vfctrl_usb \
-I ../libusb/Linux32 \
../../../../../lib_device_control/lib_device_control/host/device_access_usb.c \
-lusb-1.0 \
-D USE_USB=1 \
-DBECLEAR_HOST=1 -I ../../../../../lib_device_control/lib_device_control/api -I ../../../../../lib_device_control/lib_device_control/src -I ../../../../../lib_device_control/lib_device_control/host -I ../../../../../sw_vocalfusion/module_vocalfusion/include -I ../../../../lib_xbeclear/inc/xmos -I ../../../../lib_xbeclear/api -I /opt/local/include ../../../../../lib_device_control/lib_device_control/host/util.c host.c -lm -lpthread -lreadline
/usr/local/arm/arm-linux-gcc-4.4.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lusb-1.0
collect2: ld returned 1 exit status
Makefile.Linux64:36: recipe for target 'vfctrl_usb' failed
make: *** [vfctrl_usb] Error 1
