libftdi Archives

Subject: Re: To build libftdi-1.0 under Windows

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 16 Jun 2010 20:38:22 +0800
On Wed, Jun 16, 2010 at 8:24 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> But it seems to me the libusb-1.0 detecting is not
> that correct. Maybe it should use /usr/local/lib/libusb-1.0.dll.a or
> similar files.

So I change the libusb-1.0 detection with pkgconfig.

mcuee@AcerPC /usr/local/lib/pkgconfig
$ cat libusb-1.0.pc

Name: libusb-1.0
Description: C API for USB device access from Linux userspace
Version: 1.0.8
Libs: -L${libdir} -lusb-1.0
Cflags: -I${includedir}/libusb-1.0

But the result is the same.
Anyway, hopefully this is getting closer.

mcuee@AcerPC ~/mcu/libftdi/libftdi1/libftdi-1.0/build
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc.exe
-- Check for working C compiler: /usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Debug
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.8
-- Found LIBUSB: /usr/local/bin/cygusb-1.0.dll
-- Not building libftdi++
-- Found PythonLibs: /lib/python2.5/config/libpython2.5.dll.a
-- Not building python bindings
-- Building example programs.
-- Found Doxygen: /usr/bin/doxygen.exe
-- Doxygen found.
-- Generating API documentation with Doxygen
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mcuee/mcu/libftdi/libftdi1/libftdi-1.

$ make
Scanning dependencies of target ftdi
[  6%] Building C object src/CMakeFiles/ftdi.dir/ftdi.c.o
[ 13%] Building C object src/CMakeFiles/ftdi.dir/ftdi_stream.c.o
Linking C shared library cygftdi-1.17.0.dll
CMakeFiles/ftdi.dir/ftdi.c.o: In function `ftdi_usb_close_internal':
/home/mcuee/mcu/libftdi/libftdi1/libftdi-1.0/src/ftdi.c:64: undefined reference
to `_libusb_close'


libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread