OpenWrt Forum Archive

Topic: compile libftdi for MR3020

The content of this topic has been archived on 25 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello.

I'm trying to compile package libftdi for MR3020
I'm using these links
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://wiki.openwrt.org/doc/howto/build
http://wiki.openwrt.org/doc/howtobuild/single.package

so, after make menuconfig I have checked 
Kernel modules  --->  USB Support  ---> 
<M>   kmod-usb-serial-ftdi............................ Support for FTDI devices
and have done:
make tools/install
make toolchain/install

and then
make package/feeds/packages/libftdi/compile V=s

but I've got error:
checking for libusb-config... no
configure: error: *** libusb-config not found. You need a working libusb installation.
make[2]: *** [/home/banka/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/libftdi-0.19/.configured_] Error 1
make[2]: Leaving directory `/home/banka/openwrt/trunk/feeds/packages/libs/libftdi'
make[1]: *** [package/feeds/packages/libftdi/compile] Error 2
make[1]: Leaving directory `/home/banka/openwrt/trunk'
make: *** [package/feeds/packages/libftdi/compile] Error 2

don't understand how to fix it.. there is no package libusb-config to compile..
I've only found it in:
# find ./ -name libusb-config
./staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/bin/libusb-config
./build_dir/target-mips_r2_uClibc-0.9.33.2/libusb-compat-0.1.4/ipkg-install/usr/bin/libusb-config
./build_dir/target-mips_r2_uClibc-0.9.33.2/libusb-compat-0.1.4/libusb-config

 
Please advise..

Hi,

I'm also getting same error.. Have you got any idea? if so please share it.

checking how to hardcode library paths into programs... immediate
checking for arm-openwrt-linux-libusb-config... no
checking for libusb-config... no
configure: error: *** libusb-config not found. You need a working libusb installation.
make[3]: *** [/home/pns4/Photonstar/u-boot/beaglebone/openwrt/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/libftdi-0.19/.configured_] Error 1
make[3]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt/feeds/packages/libs/libftdi'
make[2]: *** [package/feeds/packages/libftdi/compile] Error 2
make[2]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt'
make[1]: *** [/home/pns4/Photonstar/u-boot/beaglebone/openwrt/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt'
make: *** [world] Error 2

Regards,
Manickaraj

Thanks. I'll try with newer version.

Regards,

Manickaraj

Yes I can see that file.. What should I do with this file? Please help me to clear this.

Even I tried to change new version in /package/feeds/packages/libftdi/Makefile   but there is no package with version in the feeds and getting following error

Download failed.
--2013-06-11 10:05:01--  http://downloads.openwrt.org/sources/libftdi-1.0.tar.gz
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-11 10:05:01 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
make[3]: *** [/home/pns4/Photonstar/u-boot/beaglebone/openwrt/dl/libftdi-1.0.tar.gz] Error 2
make[3]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt/feeds/packages/libs/libftdi'
make[2]: *** [package/feeds/packages/libftdi/compile] Error 2
make[2]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt'
make[1]: *** [/home/pns4/Photonstar/u-boot/beaglebone/openwrt/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/pns4/Photonstar/u-boot/beaglebone/openwrt'
make: *** [world] Error 2

Download failed.
--2013-06-11 10:05:01--  http://downloads.openwrt.org/sources/libftdi-1.0.tar.gz
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-11 10:05:01 ERROR 404: Not Found.

that's exactly what I said - there is still no such file in repository

Sorry I just tried with that, is there any other way to include it? I'm trying to compile this for OMAP3 beaglebone black board..

But libftdi -0.19 version compiled in backfire for MIPS processor with usb to serial support

我已经解决此问题,不是说checking for libusb-config... no 吗,就是说他需要libusb-config这个东西,你没有嘛,我find|grep了一下,发现在libusb-compat目录下有此文件,如果你没有,可以执行./script/feeds install libusb-compat就有了。。。继续:把libusb-config加进环境变量就行了!!!

欢迎光临http://life.9crk.com

I'v solved this issue
add the path of libusb-config to the $PATH
done ....

wellcome to my site:

http://life.9crk.com/msg.php

wanna know more? learn some chinese!

(Last edited by 9crk on 24 Sep 2013, 10:47)

just did:

sudo apt-get install libusb-dev

and libftdi compiled succesfully

The discussion might have continued from here.