Menu

compilation for python on windows 10

Help
zhou
2019-08-20
2019-08-22
  • zhou

    zhou - 2019-08-20

    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
    • Davis

      Davis - 2019-08-20

      You should use visual studio.

       
  • zhou

    zhou - 2019-08-21

    Hi Davis,

    Yes. I think I should. But my internet connection is slow and VS/C++ is too large for me.
    Thanks.

     
  • zhou

    zhou - 2019-08-22

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.