I need a helloworld project for using a libusb-1.0 on OpenWRT SDK. I want to compile the example of libusb library files to access usb device on my OpenWRT router. I have written an application to use libusb and to send commands to an external device. I managed to compile it on Ubuntu 16.04 with linked libusb-1.0.a file in the executable. Now I need to compile the source code for an .ipk file for OpenWRT for KVM_guest and ar9331 devices. I create makefile for that in the /package directory of my project directory but when I add the flags to the makefile for compiling I receive the following error during the compilation process ( undefined reference to `libusb_init'). So my compiler does not link the library correctly.