I see that you can compile libftdi-1.0 under a linux with cross mingw
environment. Is it possible to compile for windows using mingw under windows
itself within msys shell? I tried this within command prompt under WinXP 32 bit
using command line "cmake -G "MinGW Makefiles"
-DCMAKE_TOOLCHAIN_FILE=..\Toolchain-Crossbuild32.cmake .."
The following was the output.
MAKE_TOOLCHAIN_FILE=..\Toolchain-Crossbuild32.cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
CMake Error: Could not COPY_FILE.
OutputFile: ''
copyFile: 'C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMak
eDetermineCompilerABI_C.bin'
Unable to find executable for try_compile: tried "C:/msys/latest/home/vsankara/l
ibftdi-1.0/buildwin/CMakeFiles/CMakeTmp/cmTryCompileExec" and "C:/msys/latest/ho
me/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec" and
"C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeTmp/Developm
ent/cmTryCompileExec".
-- Detecting C compiler ABI info - done
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermine
CompilerABI.cmake:40 (FILE):
file STRINGS file
"C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeDetermineCo
mpilerABI_C.bin"
cannot be read.
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71
(CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:2 (project)
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
CMake Error: Could not COPY_FILE.
OutputFile: ''
copyFile: 'C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMak
eDetermineCompilerABI_CXX.bin'
Unable to find executable for try_compile: tried "C:/msys/latest/home/vsankara/l
ibftdi-1.0/buildwin/CMakeFiles/CMakeTmp/cmTryCompileExec" and "C:/msys/latest/ho
me/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec" and
"C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeTmp/Developm
ent/cmTryCompileExec".
-- Detecting CXX compiler ABI info - done
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermine
CompilerABI.cmake:40 (FILE):
file STRINGS file
"C:/msys/latest/home/vsankara/libftdi-1.0/buildwin/CMakeFiles/CMakeDetermineCo
mpilerABI_CXX.bin"
cannot be read.
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:
64 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:2 (project)
-- Build type: Debug
-- Could NOT find LIBUSB (missing: LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
-- Could NOT find Boost
CMake Error at src/CMakeLists.txt:29 (install):
install Library TARGETS given no DESTINATION!
-- Boost not found, won't build libftdi++
-- Found PythonLibs: C:/Python25/libs/libpython25.a
-- Building python bindings via swig. Will be installed under C:/Python25/site-p
ackages
CMake Error: cmListFileCache: error can not open file C:/msys/latest/home/vsanka
ra/libftdi-1.0/examples
CMake Error at examples/CMakeLists.txt:5 (include):
include could not find load file:
C:/msys/latest/home/vsankara/libftdi-1.0/examples
-- Building example programs.
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe
-- Doxygen found.
-- Generating API documentation with Doxygen
CMake Error: The following variables are used in this project, but they are set
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake file
s:
LIBUSB_INCLUDE_DIR (ADVANCED)
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0/src
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0/ftdipp
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0/bindings
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0/examples
used as include directory in directory C:/msys/latest/home/vsankara/libftdi-1
.0/packages
LIBUSB_LIBRARIES (ADVANCED)
linked by target "ftdi" in directory C:/msys/latest/home/vsankara/libftdi-1.
0/src
-- Configuring incomplete, errors occurred!
Any advice would be helpful.
Thanks
nslu2vishu
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]