On Sat, Jun 9, 2018 at 11:52 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > 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. >
Cleanup everything and redo did not help. ephwy@ephwy-HP MINGW32 /c/work/libftdi/libftdi/build32 $ rm -rf * ephwy@ephwy-HP MINGW32 /c/work/libftdi/libftdi/build32 $ cmake .. -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" -DFTDIPP=ON -DBUILD_TESTS=ON -DDOCUMENTATION=ON -DPYTHON_BINDINGS=ON -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: C:/msys64/mingw32/bin/gcc.exe -- Check for working C compiler: C:/msys64/mingw32/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/msys64/mingw32/bin/g++.exe -- Check for working CXX compiler: C:/msys64/mingw32/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Build type: RelWithDebInfo -- Found PkgConfig: C:/msys64/usr/bin/pkg-config.exe (found version "0.29.2") -- Checking for module 'libusb-1.0' -- No package 'libusb-1.0' found -- Found LIBUSB: C:/msys64/mingw32/lib/libusb-1.0.dll.a -- Boost version: 1.67.0 -- Found Doxygen: C:/msys64/usr/bin/doxygen.exe (found version "1.8.13") found components: doxygen missing components: dot -- 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) -- Found Confuse: C:/msys64/mingw32/lib/libconfuse.dll.a -- Looking for dgettext -- Looking for dgettext - not found -- Found Libintl: C:/msys64/mingw32/include -- 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 Scanning dependencies of target docs [ 2%] Generating doc/html/index.html QDir::readDirEntries: Cannot read the directory: /c/work/libftdi/libftdi/build32/C:/work/libftdi/libftdi/examples QDir::readDirEntries: Cannot read the directory: /c/work/libftdi/libftdi/build32/C:/work/libftdi/libftdi/src QDir::readDirEntries: Cannot read the directory: /c/work/libftdi/libftdi/build32/C:/work/libftdi/libftdi/ftdipp [ 2%] Built target docs Scanning dependencies of target ftdi1-static [ 4%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi.c.obj [ 6%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi_stream.c.obj C:/work/libftdi/libftdi/src/ftdi_stream.c: In function 'ftdi_readstream': C:/work/libftdi/libftdi/src/ftdi_stream.c:237:5: warning: implicit declaration of function 'gettimeofday'; did you mean 'mingw_gettimeofday'? [-Wimplicit-function-declaration] gettimeofday(&state.progress.first.time, NULL); ^~~~~~~~~~~~ mingw_gettimeofday [ 8%] Linking C static library libftdi1.a [ 8%] Built target ftdi1-static Scanning dependencies of target ftdi1 [ 11%] Building C object src/CMakeFiles/ftdi1.dir/ftdi.c.obj [ 13%] Building C object src/CMakeFiles/ftdi1.dir/ftdi_stream.c.obj C:/work/libftdi/libftdi/src/ftdi_stream.c: In function 'ftdi_readstream': C:/work/libftdi/libftdi/src/ftdi_stream.c:237:5: warning: implicit declaration of function 'gettimeofday'; did you mean 'mingw_gettimeofday'? [-Wimplicit-function-declaration] gettimeofday(&state.progress.first.time, NULL); ^~~~~~~~~~~~ mingw_gettimeofday [ 15%] Linking C shared library libftdi1.dll [ 15%] Built target ftdi1 Scanning dependencies of target ftdipp1-static [ 17%] Building CXX object ftdipp/CMakeFiles/ftdipp1-static.dir/ftdi.cpp.obj [ 20%] Linking CXX static library libftdipp1.a [ 20%] Built target ftdipp1-static Scanning dependencies of target ftdipp1 [ 22%] Building CXX object ftdipp/CMakeFiles/ftdipp1.dir/ftdi.cpp.obj [ 24%] Linking CXX shared library libftdipp1.dll [ 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