After successfully built the dlib 19.17.0 on windows 10 and did some testings, I am trying to build dlib 19.17.0 for python.
But just before the compilation ends, it gives this error:
C:\hack\dlib\dlib-19.17.0\tools\python\src\cca.cpp:33:101: required from here
C:/hack/dlib/dlib-19.17.0/dlib/matrix/matrix_la.h:768:47: sorry, unimplemented: non-trivial designated initializers not supported
parallel_for_blocked(0, A.size(), [&](long begin, long end)
^
mingw32-make.exe[2]: [CMakeFiles/dlib_python.dir/src/cca.cpp.obj] Error 1
mingw32-make.exe[1]: [CMakeFiles/dlib_python.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\dlib_python.dir\build.make:174: recipe for target 'CMakeFiles/dlib_python.dir/src/cca.cpp.obj' failed
After googling, it seems that the error is related to g++, which I am not sure. Has anyone successfully built dlib for python on windows 10 using g++ ? OR is there a work around ?
FYI, these are the tools/software I used to build dlib:
cmake-gui, codeblocks, tdm gcc 5.1, openblas 0.2.15.
Thanks.
Last edit: zhou 2019-08-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
After successfully built the dlib 19.17.0 on windows 10 and did some testings, I am trying to build dlib 19.17.0 for python.
But just before the compilation ends, it gives this error:
C:\hack\dlib\dlib-19.17.0\tools\python\src\cca.cpp:33:101: required from here
C:/hack/dlib/dlib-19.17.0/dlib/matrix/matrix_la.h:768:47: sorry, unimplemented: non-trivial designated initializers not supported
parallel_for_blocked(0, A.size(), [&](long begin, long end)
^
mingw32-make.exe[2]: [CMakeFiles/dlib_python.dir/src/cca.cpp.obj] Error 1
mingw32-make.exe[1]: [CMakeFiles/dlib_python.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\dlib_python.dir\build.make:174: recipe for target 'CMakeFiles/dlib_python.dir/src/cca.cpp.obj' failed
After googling, it seems that the error is related to g++, which I am not sure. Has anyone successfully built dlib for python on windows 10 using g++ ? OR is there a work around ?
FYI, these are the tools/software I used to build dlib:
cmake-gui, codeblocks, tdm gcc 5.1, openblas 0.2.15.
Thanks.
Last edit: zhou 2019-08-21
You should use visual studio.
Hi Davis,
Yes. I think I should. But my internet connection is slow and VS/C++ is too large for me.
Thanks.
I finally got it compiled. I just replaced the old tdm gcc 5.1 with mingw-w64's gcc 8.1.0. I have tried a couple of python examples. So far so good.