问题1:在cmake中配置QT变量的时候出现以下问题:windows
CMake Warning at CMakeLists.txt:5 (FIND_PACKAGE):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.ide
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:this
Qt5WidgetsConfig.cmake
qt5widgets-config.cmakespa
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.code
set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\\")成功编译完成QT版本的osg3.2.3
而后编译osgearth 2.7。blog
运行osgearth Qt.最终的现实结果以下图:ci