slightech / MYNT-EYE-ORB-SLAM2-Sample

Forked from ORB-SLAM2: https://github.com/raulmur/ORB_SLAM2
Other
173 stars 87 forks source link

Can not build project with Cmake 3.15.0 #7

Open leoteo1 opened 5 years ago

leoteo1 commented 5 years ago

I've got the error: "has no C++11 support. Please use a different C++ compiler" when building project by CMake 3.15.0 with Visual Studio 2015/ X64. Can anyone know how to solve this? The Cmake report is:

Selecting Windows SDK version to target Windows 10.0.17763. The C compiler identification is MSVC 19.0.24215.1 The CXX compiler identification is MSVC 19.0.24215.1 Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.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:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Build type: Release _Performing Test COMPILER_SUPPORTS_CXX11 Performing Test COMPILER_SUPPORTS_CXX11 - Failed Performing Test COMPILER_SUPPORTS_CXX0X Performing Test COMPILER_SUPPORTSCXX0X - Failed CMake Error at CMakeLists.txt:26 (message): The compiler C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe has no C++11 support. Please use a different C++ compiler.****

Configuring incomplete, errors occurred! See also "E:/setup/MYNT-EYE-ORB-SLAM2-Sample-master/build/CMakeFiles/CMakeOutput.log". See also "E:/setup/MYNT-EYE-ORB-SLAM2-Sample-master/build/CMakeFiles/CMakeError.log".

Sherlock-hh commented 3 years ago

hello,did you solved this problem?I will very appreciate if you can share your solution,thank you very much