On Sat, Jun 9, 2018 at 11:45 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > Last time it seems to be pretty easy to build libftdi binaries > from the source archive under MSYS2, now it seems to be > slightly more difficult. Not so sure if it is related to my system or not. > > Ref: > http://libftdi.141977.n3.nabble.com/Building-libftdi-under-Windows-with-MSYS2-td4026004.html > > MSYS2 binary packages seem to be fine but it does not build the > examples and documentations. > https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-libftdi/PKGBUILD > > 1. It does not seems to build the C++ binding, tests and documentation > by default even though I have installed Boost and Doxygen. > > 2. So I have to manually enable the above. Then it works fine.
Still the Python binding build does not seem to work. BTW, the build is with libftdi git. ephwy@ephwy-HP MINGW32 /c/work/libftdi/libftdi/build32 $ cmake .. -DPYTHON_BINDINGS=ON -- Build type: RelWithDebInfo -- Boost version: 1.67.0 -- Detected git snapshot version: v1.4-12-g91dbb65 -- Found SWIG: C:/msys64/mingw32/bin/swig.exe (found version "3.0.12") -- Found PythonLibs: C:/msys64/mingw32/lib/libpython3.6m.dll.a (found version "3.6.5") -- Found PythonInterp: C:/msys64/mingw32/bin/python3.6.exe (found version "3.6.5") CMake Deprecation Warning at C:/msys64/mingw32/share/cmake-3.11/Modules/UseSWIG.cmake:272 (message): SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead. Call Stack (most recent call first): python/CMakeLists.txt:22 (swig_add_module) -- Building ftdi_eeprom -- Boost version: 1.67.0 -- Found the following Boost libraries: -- unit_test_framework -- Summary of build options: Build static libs: ON Build C++ bindings: ON Build Python bindings: ON Build ftdi_eeprom: ON Build examples: ON Build tests: ON Build API documentation: ON -- Configuring done -- Generating done -- Build files have been written to: C:/work/libftdi/libftdi/build32 ephwy@ephwy-HP MINGW32 /c/work/libftdi/libftdi/build32 $ make [ 2%] Built target docs [ 8%] Built target ftdi1-static [ 15%] Built target ftdi1 [ 20%] Built target ftdipp1-static [ 24%] Built target ftdipp1 Scanning dependencies of target gen_ftdi1_ftdi1PYTHON_wrap [ 26%] Swig source C:\work\libftdi\libftdi\python\ftdi1.i(7) : Error: Unable to find 'ftdi1_doc.i' make[2]: *** [python/CMakeFiles/gen_ftdi1_ftdi1PYTHON_wrap.dir/build.make:64: python/ftdi1PYTHON_wrap.stamp] Error 1 make[2]: *** Deleting file 'python/ftdi1PYTHON_wrap.stamp' make[1]: *** [CMakeFiles/Makefile2:418: python/CMakeFiles/gen_ftdi1_ftdi1PYTHON_wrap.dir/all] Error 2 make: *** [Makefile:152: all] Error 2 -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com