一、下载
1、OSG稳定版源代码OpenSceneGraph 3.4.0 release downloads:
http://www.openscenegraph.org/index.php/download-section/stable-releases/206-openscenegraph-3-4-0-released
2、第三方库
官方:http://www.openscenegraph.org/index.php/download-section/dependencies
VS2010:http://members.iinet.net.au/~bchrist/3rdParty_VC10_x86_x64.zip
VS2015 x64:https://pan.baidu.com/s/18cr9nAIEi9FXZ55O3FkusQ 提取码:fcbk
注:第三方库版本必须与Visual Studio版本相对应,本文所用只适用于Visual Studio2015 x64,平台工具集版本为v140的情况下。
3、osg3.4.0数据包
4、下载cmake
https://cmake.org/选择Binary distributions目录下的文件下载,我下载的是cmake3.19.0
二、编译前准备工作
在D:\下新建一个OSG文件夹,在其下再新建4个文件夹
D:\OSG\OpenSceneGrap