how to fix CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified

后端 未结 8 2370
情书的邮戳
情书的邮戳 2020-12-05 10:46

I want to install dlib using pip install dlib using cmd in windows 10 But it is showing following three errors: CMake Error in CMakeLists.txt: Generator

8条回答
  •  失恋的感觉
    2020-12-05 11:08

    First of all, delete CMakeCache.txt file. Later, just execute inside dlib-xx/build the command below:

    cmake -G "NMake Makefiles" ..
    

    If you have more problems with CMAKE_C_COMPILER and CMAKE_CXX_COMPILER, you will have to install MinGW and add to the enviroment variable the path /bin of MinGW.

    And if you don't have installed Visual Studio, you would to resolve future problems

提交回复
热议问题