Skip to content

libusb precompiled for arm-linux-eabihf linaro & arm toolchain

Notifications You must be signed in to change notification settings

guino/libusb-arm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

libusb-arm cross compile for linaro toolchain

These are the steps required to compile libusb with/for arm-linux-eabihf linaro & arm toolchain

I like to install the arm-toolchain under /usr/local/arm-toolchain like this:

# cd /usr/local
# tar xf /tmp/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
# ln -s gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf arm-toolchain

Now untar the libusb sources and cross-compile/install them:

cd /usr/local/
tar xf /tmp/libusb-1.0.x.tar.bz2
unzip /tmp/libusb-compat-0.1-master.zip
cd libusb-1.0.x
./configure --host=arm-linux-gnueabihf --prefix=/usr/local/arm-toolchain/arm-linux-gnueabihf CC=/usr/local/arm-toolchain/bin/arm-linux-gnueabihf-gcc --enable-udev=false
make install
cd ../libusb-compat-0.1.x
./configure --host=arm-linux-gnueabihf --prefix=/usr/local/arm-toolchain/arm-linux-gnueabihf CC=/usr/local/arm-toolchain/bin/arm-linux-gnueabihf-gcc
make install
cd ../arm-toolchain/arm-linux-gnueabihf/include/
ln -s libusb-1.0/libusb.h .

The release branch 1.0.9/0.1.4 was compiled with the above method while the 1.0.21/0.1.5 branch was compiled with buildroot which is a much longer process of configuration/compiling but does produce libusb with libudev support (which may not be required for your project).

The --enable-udev=false parameter may be removed if you have libudev.so (arm) in your toolchain (not the case with linaro toolchains)

About

libusb precompiled for arm-linux-eabihf linaro & arm toolchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published