From: Go L. Go <go...@ya...> - 2011-12-09 12:12:08
|
Thanks Uwe. Now I have this output: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /opt/mingw32/bin/i386-mingw32-gcc -- Check for working C compiler: /opt/mingw32/bin/i386-mingw32-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /opt/mingw32/bin/i386-mingw32-g++ -- Check for working CXX compiler: /opt/mingw32/bin/i386-mingw32-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Could NOT find LIBFTDI (missing: LIBFTDI_LIBRARIES LIBFTDI_INCLUDE_DIR) -- Could NOT find LIBFTD2XX (missing: LIBFTD2XX_LIBRARIES LIBFTD2XX_INCLUDE_DIR) -- Found Subversion: /usr/bin/svn (found version "1.6.17") 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 files: LIBFTDI_INCLUDE_DIR used as include directory in directory /root/xc3prog/xc3sprog.win used as include directory in directory /root/xc3prog/xc3sprog.win/javr used as include directory in directory /root/xc3prog/xc3sprog.win/packages LIBFTDI_LIBRARIES linked by target "detectchain" in directory /root/xc3prog/xc3sprog.win linked by target "readdna" in directory /root/xc3prog/xc3sprog.win linked by target "xc3sprog" in directory /root/xc3prog/xc3sprog.win linked by target "javr" in directory /root/xc3prog/xc3sprog.win/javr -- Configuring incomplete, errors occurred! I downloaded libftdi from: http://code.google.com/p/picusb/downloads/detail?name=libftdi1_devkit_MinGW32_31August2011.zip&can=2&q= and unzipped to: /root/lib/libftdi1-win-dev/libftdi1_devkit_MinGW32_31August2011 then modified Findlibftdi,cmake: find_path(LIBFTDI_INCLUDE_DIR NAMES ftdi.h HINTS ${LIBFTDI_PKG_INCLUDE_DIRS} PATHS /root/lib/libftdi1-win-dev/libftdi1_devkit_MinGW32_31August2011/include ) if(USE_STATIC_FTDI) set(_save ${CMAKE_FIND_LIBRARY_SUFFIXES}) set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX}) endif(USE_STATIC_FTDI) find_library(LIBFTDI_LIBRARIES NAMES ftdi HINTS ${LIBFTDI_PKG_LIBRARY_DIRS} PATHS /root/lib/libftdi1-win-dev/libftdi1_devkit_MinGW32_31August2011/lib it does not fix my problem, so I had to run: cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw32.cmake -DLIBFTDI_LIBRARIES=/root/lib/libftdi1-win-dev/libftdi1_devkit_MinGW32_31August2011/lib/libftdi.a -DLIBFTDI_INCLUDE_DIR=/root/lib/libftdi1-win-dev/libftdi1_devkit_MinGW32_31August2011/include .. not, Libftdi error is gone but libftd2xxx error is still there. Now this is the error: Scanning dependencies of target avrfuseparse [ 1%] Building CXX object CMakeFiles/avrfuseparse.dir/avrfuseparse.cpp.obj [ 3%] Building CXX object CMakeFiles/avrfuseparse.dir/avrfusefile.cpp.obj Linking CXX executable avrfuseparse.exe [ 3%] Built target avrfuseparse Scanning dependencies of target bitparse [ 5%] Building CXX object CMakeFiles/bitparse.dir/bitrev.cpp.obj [ 7%] Building CXX object CMakeFiles/bitparse.dir/bitfile.cpp.obj [ 9%] Building CXX object CMakeFiles/bitparse.dir/bitparse.cpp.obj Linking CXX executable bitparse.exe [ 9%] Built target bitparse [ 11%] Generating cables.h [ 13%] Generating devices.h Scanning dependencies of target xc3sproglib [ 15%] Building CXX object CMakeFiles/xc3sproglib.dir/ioparport.cpp.obj /root/xc3prog/xc3sprog.win/ioparport.cpp: In member function `virtual int IOParport::Init(cable_t*, const char*, unsigned int)': /root/xc3prog/xc3sprog.win/ioparport.cpp:310: warning: unused variable 'res' [ 17%] Building CXX object CMakeFiles/xc3sproglib.dir/ioftdi.cpp.obj In file included from /root/xc3prog/xc3sprog.win/ioftdi.cpp:27: /root/xc3prog/xc3sprog.win/ioftdi.h:27:17: usb.h: No such file or directory make[2]: *** [CMakeFiles/xc3sproglib.dir/ioftdi.cpp.obj] Error 1 make[1]: *** [CMakeFiles/xc3sproglib.dir/all] Error 2 make: *** [all] Error 2 Any suggestions? I am afraid that cmake couldn't locate my lifftdi and libft2xx is the root cause of the problem. thanks! ________________________________ From: Uwe Bonnes <bo...@el...> To: Go Leafs Go <go...@ya...> Cc: "xc3...@li..." <xc3...@li...> Sent: Friday, December 9, 2011 3:55 AM Subject: Re: [Xc3sprog-users] Compile xc3sprog Windows version on opensuse linux >>>>> "Go" == Go Leafs Go <go...@ya...> writes: Go> Hi Just wondering if anyone has any suggestions on how to build Go> windows executables xc3sprog on opensuse? Go> I installed mingw32, cross compiler, downloaded precompiled libftdi Go> I can successfully build linux exeuctables. However I am having Go> problems building windows executables. Go> any suggestions? In theory: Readme.Cmake In practice: mkdir win32 cd win32/ cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw32.cmake .. /spare/bon/xc3sprog/co/xc3sprog/trunk/ioftdi.cpp: In member function `unsigned int IOFtdi::readusb(unsigned char*, long unsigned int)': /spare/bon/xc3sprog/co/xc3sprog/trunk/ioftdi.cpp:573: error: invalid conversion from `unsigned int*' to `DWORD*' /spare/bon/xc3sprog/co/xc3sprog/trunk/ioftdi.cpp:573: error: initializing argument 4 of `FT_STATUS FT_Read(void*, void*, DWORD, DWORD*)' mak Try again after SVN update. And be sure to have the import libraries available. Bye -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- |