libftdi Archives

Subject: Re: To build libftdi-1.0 under Windows

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 16 Jun 2010 19:33:12 +0800
On Wed, Jun 16, 2010 at 7:21 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> On Tue, Jun 15, 2010 at 7:55 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:

> Maybe there are hopes to get this right.
>
> mcuee@AcerPC ~/mcu/libftdi/libftdi1/libftdi-1.0/build
> $ cmake ..
> -- 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
> CMake Error at src/CMakeLists.txt:29 (install):
>  install Library TARGETS given no DESTINATION!
>
>
> -- Boost version: 1.33.1
> -- Found the following Boost libraries:
> -- Building libftdi++
> CMake Error at ftdipp/CMakeLists.txt:44 (install):
>  install Library TARGETS given no DESTINATION!
>

Remove LIBRARY from the two above-mentioned two
places seems to let Cmake generate the Makefile.
The question is why Cygwin is detected as UNIX.

But then make fails.

mcuee@AcerPC ~/mcu/libftdi/libftdi1/libftdi-1.0/build
$ cmake ..
-- Build type: Debug
-- Building libftdi++
-- Building python bindings via swig. Will be installed under /lib/python2.5/sit
e-packages
-- Building example programs.
-- Building libftdi++ examples.
-- 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

$ make
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'
...




-- 
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