Compile on Linux/Fedora

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
obsidian
Posts: 5
Joined: Sat Nov 27, 2010 4:47 am

Compile on Linux/Fedora

Post by obsidian »

I am not having any luck using make on either the lib or app directories for linux.

The Makefile references ../src and ../boot which are not in the download.

I get libsub.c:39:21: fatal error: libusb.h: No such file or directory.

Similar problems in the apps dir.

Any thoughts?

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: Compile on Linux/Fedora

Post by xol »

You have to install libusb first.
http://libusb.wiki.sourceforge.net/

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: Compile on Linux/Fedora

Post by serg »

For Fedora go to Add/Remove software and install the "Development files for libusb"
libusb1-devel-1.0.6.1.fc12. By default it installed under /usr, so go to sub20 lib directory
Modify the Makefile by changing the include path from /usr/local/include/libusb-1.0 -> /usr/include/libusb-1.0

Code: Select all

make
cd ../app
make

Post Reply