QT5.4.1+VS2012+OSG3.2.3+osgearth2.7编译问题总结

问题1:在cmake中配置QT变量的时候出现如下问题:

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.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  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.

详细的解决方案:http://stackoverflow.com/questions/15639781/how-to-find-qt5-cmake-module-on-windows

set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\\")
成功编译完成QT版本的osg3.2.3

然后编译osgearth 2.7。

运行osgearth Qt.最终的现实结果如下图:

QT5.4.1+VS2012+OSG3.2.3+osgearth2.7编译问题总结_第1张图片

你可能感兴趣的:(OSG/osgEarth)