说明
1. 本文主要用于配置OSG3.4.0在Qt5.6上使用MSVC2015进行编译
l 前期工作:安装好Qt5.6及MSVC2015,具体操作请参考:
http://blog.sina.com.cn/s/blog_89a45b020102whg2.html
l 本文在上一篇博客的基础上进行环境搭建,也是在虚拟机中完成的。系统和环境变量都比较干净,因此环境搭建过程有较好的参考性。
2. 主要内容:
l 编译osg3.4.0源代码为Qt5.6可以使用的库文件
l 配置osg3.4.0在Qt中的环境,以一个工程作为示例
文件准备
1. OpenSceneGraph 3.4.0源代码:
http://www.openscenegraph.org/index.php/download-section/stable-releases/206-openscenegraph-3-4-0-released
2. Cmake-gui,下载安装包
https://cmake.org/download/
![Win10+Qt5.6+MSVC2015+OSG3.4.0环境配置 Win10+Qt5.6+MSVC2015+OSG3.4.0环境配置](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
编译库文件:
1. 安装CMake-gui,Install Options我选择了“Add CMake to the system PATH for all users”,其它默认安装
![Win10+Qt5.6+MSVC2015+OSG3.4.0环境配置 Win10+Qt5.6+MSVC2015+OSG3.4.0环境配置](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
2. 以管理员身份打开“VS2015 X64 Native Tools Command”,进入一个命令行中