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:24:51 +0800
Based on the success with Cygwin and libftdi, I hope
I can build libftdi-1.0 under Cygwin as well.

mcuee@AcerPC ~/mcu/libftdi/libftdi1/libftdi-1.0/build
$ cmake -DPYTHON_BINDINGS=OFF -DFTDIPP=OFF ..
-- 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
-- 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.
0/build

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.

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'
CMakeFiles/ftdi.dir/ftdi.c.o: In function `ftdi_deinit':
/home/mcuee/mcu/libftdi/libftdi1/libftdi-1.0/src/ftdi.c:194: undefined
reference to `_libusb_exit'
CMakeFiles/ftdi.dir/ftdi.c.o: In function `ftdi_usb_find_all':
/home/mcuee/mcu/libftdi/libftdi1/libftdi-1.0/src/ftdi.c:246: undefined
reference to `_libusb_init'

mcuee@AcerPC ~/mcu/libftdi/libftdi1/libftdi-1.0/build
$ ls /usr/local/lib/libusb-1.0.*
/usr/local/lib/libusb-1.0.a      /usr/local/lib/libusb-1.0.la
/usr/local/lib/libusb-1.0.dll.a


-- 
Xiaofan http://mcuee.blogspot.com

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread