|
朋友说只要将CMakeLists.txt拖到Cmake的界面中,配置成自己需要的编译器(比如VS10),然后就可以编译成功了,但是我这样做了,却总是出错。本人菜鸟,望高手提携,不胜感激!
以下是编译框中信息
The C compiler identification is MSVC 16.0.40219.1
The CXX compiler identification is MSVC 16.0.40219.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:6 (SETUP_APPLICATION):
Unknown CMake command "SETUP_APPLICATION".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred!
其实不仅这一次编译不成功,除了最初编译OSG时成功了,除此之外不管编译什么都不成功,感觉Cmake太难用了,唉~~~,不会用啊 |
-
出错信息
|