标签:where for new 没有 from rom rect folder art
建立目标树
OpenSceneGraph-VERSION (VERSION替换为版本号)
OpenSceneGraph-VERSION\3rdParty (把依赖库放在此目录)
http://www.openscenegraph.org/index.php/download-section/dependencies
OpenSceneGraph-VERSION\OpenSceneGraph(源代码放在此目录)
ALL_BUILD项目.
Build the ALL_BUILD
project for both debug and release. INSTALL项目.
Build the INSTALL
project for both debug and release. In your binary directory there will now be a folder named 3rdParty
with a sub-folder named after your target platform. Inside this folder there should be all your headers and libraries.
在CMake GUI中选择OpenSceneGraph 源文件目录, 设置CMake配置输出目录.
ACTUAL_3RDPARTY_DIR 3rdParty编译库集目录
CMAKE_INSTALL_PREFIX OpenSceneGraph 编译成果安装目录
BUILD_OSG_EXAMPLES 是否编译示例
Once the sources and dependencies are in place you need to generate the Visual Studio solution and project files. This is done with CMake. Download it at http://www.cmake.org/HTML/Download.html.
Start the CMake GUI once it‘s installed, and select root OpenSceneGraph directory in the "Where is the source code" field. The same directory needs to be put into the "Where to build the binaries" field. If you like to do out-of-source builds, you can add \build to the end. Then click Configure.
You can then customize your build. The red lines in the CMake window indicate new variables that you may want to fill out or change, but most are optional. Some variables will be filled in automatically (such as ACTUAL_3RDPARTY_DIR, if you followed the directory structure above). I typically enable BUILD_OSG_EXAMPLES and set CMAKE_INSTALL_PREFIX to the OpenSceneGraph directory so that the binaries are installed in OpenSceneGraph\bin. You can also set it to somewhere else if you want to keep your source tree clean.
打开OpenSceneGraph解决方案进行编译
ALL_BUILD项目.
Build the ALL_BUILD
project for both debug and release. INSTALL项目.
Build the INSTALL
project for both debug and release. 标签:where for new 没有 from rom rect folder art
原文地址:http://www.cnblogs.com/yaoyu126/p/6156196.html