libftdi Archives

Subject: Re: [ANNOUNCE] libftdi 0.18 released

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 5 Jul 2010 22:24:06 +0800
On Sun, Jul 4, 2010 at 7:22 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:

> Somehow the dll is missing from the above MinGW build.
> So I cross compile it under Ubuntu 9.10. Just in case
> someone would want to use it without building from source,
> here is the MinGW 32bit binary package. It does not have
> the Boost and Python bindings. The dll, import library,
> header file, examples and html docs are included.
>
> http://code.google.com/p/picusb/downloads/list
> http://picusb.googlecode.com/files/libftdi-0.18_mingw32.zip
>

The above is tested with 32bit OpenOCD 0.4.0 and 0.5.0-devel
binary from Freddie Chopin and they seem to work.
http://www.freddiechopin.info/index.php/en/download/category/4-openocd
http://www.freddiechopin.info/index.php/en/download/category/10-openocd-dev

MinGW-w64 test build is also uploaded (untested).
http://picusb.googlecode.com/files/libftdi-0.18_mingw64.zip

Cross Compiler:
http://www.drangon.org/mingw/
http://www.drangon.org/mingw/mirror.php?num=2&fname=mingw-w64-x86_64-cross-i686-bin-20100605.tar.bz2
cross mingw-w64 toolchain under linux i686, build (gcc 4.5 branch)
from SVN 2010-06-05

DDK Headers from MinGW-w64 test branch, Rev 2769
svn co 
https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/experimental/ddk_test
mingw-w64-ddk_test

I also created two CMake files. I do not know much about CMake so that
I am not so sure if it is correct or not.

1) Toolchain-Crossbuild64.cmake
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)

# which compilers to use for C and C++
SET(CMAKE_C_COMPILER /home/mcuee/mingw-w64/bin/x86_64-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /home/mcuee/mingw-w64/bin/x86_64-w64-mingw32-g++)

# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH  /home/mcuee/mingw-w64/x86_64-w64-mingw32)

# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

2) Toolchain-Crossbuild64.cmake
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER gcc -m64)
set(CMAKE_CXX_COMPILER g++ -m64)
set(CMAKE_FIND_ROOT_PATH /usr/lib)

You may also need the libusb-win32 MinGW64 test build (untested
and unsupported) if you want to build by yourself.
http://picusb.googlecode.com/files/libusbwin32_mingw64_05July2010.zip

-- 
Xiaofan http://sourceforge.net/projects/libusb-win32/

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

Current Thread