[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] configure does not detect libftdi correctly in mingw
From: |
Turbo J |
Subject: |
[avrdude-dev] configure does not detect libftdi correctly in mingw |
Date: |
Fri, 26 Aug 2011 22:58:04 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.0; rv:6.0) Gecko/20110812 Thunderbird/6.0 |
Hi,
using bare ./configure in MingW32/Msys results in:
[...]
checking for usb_get_string_simple in -lusb... yes
checking for libusb_init in -lusb-1.0... no
checking for libusb_init in -lusb... no
checking for ftdi_init in -lftdi... no
Looking in config.log shows the reason:
[...]
configure:5085: checking for ftdi_init in -lftdi
configure:5110: gcc -o conftest.exe -g -O2 conftest.c -lftdi >&5
[ ... bunch of Linker errors follows ...]
The correct linker commands would have been
"-lftdi -lusb", it looks like there is no checks for
$ libftdi-config --libs
-L/mingw/lib -lftdi -lusb
Workaround:
$ export LIBS=-lusb ; ./configure
This enables libftdi usage for me.
-- Turbo J
- [avrdude-dev] configure does not detect libftdi correctly in mingw,
Turbo J <=