Ogre 1.7.2 [cthugha] Compilation Method

Source: Internet
Author: User
Tags tikiwiki

Compiling and running environment: Windows 7 and vs2010.

Preparations before Compilation:

1. To compile ogre, at least the source code of ogre is required. Can go to the official website to download the latest source package, I use 1.7.2 here, download the file called ogre_src_v1-7-2.exe. Run the downloadedProgramDecompress the source code to a directory for backup.

2. download and install the DirectX SDK. the officially recommended version is DirectX SDK-February 2010. Different Versions of dxsdk may cause ogre compilation failure.

3. Install the boost library. This is not required, but it is recommended to install it to improve performance and enable background loading and other functions.

The recommended boost library version is 1.44.0. For Windows, you can download boostpro boost installers to install it. During installation, ensure that "multithreaded" and "multithreaded debug" are selected. When selecting a library, select boost date time and boost thread.

4. Download the dependency package. You can download the dependency package of Ogre from Visual Studio dependencies. Decompress the downloaded dependency package to the directory where the Ogre source code is located, and keep the default folder name "dependencies. The location of the decompressed dependency package is as follows.

5. Enter the SRC folder under the directory of the dependent package that has just been pressurized, open ogredependencies. vs2010.sln, debug and release each compile once.

6. Download and install cmake. The official website is http://www.cmake.org /.

Now, all the preparations before compilation are completed. The Ogre compilation process is now available.

1. start cmake, fill in the Ogre source code path in "where is the source code", and fill in the path generated by the compilation environment in "where to build the binaries, this path can point to a non-existent Directory, which is automatically created by cmake. The entire ogre compilation will be carried out in this path in the future.

2. Click the Configure button in the lower-left corner of the cmake interface. For the first configuration, select the compiler. We select vs2010 32bit.

3. After the configuration is complete for the first time, you can see that the configuration options are all red. Then, click the Configure button again. After the configuration is complete, the options change to Gray. (This step uses the default ogre configuration to configure the compilation environment)

4. After the configuration is complete, click Generate on the right of the Configure button to generate the project.

5. After the execution is complete, cmake will generate the project to the "where to build the binaries" path configured earlier.

6. Open the "where to build the binaries" path and you will find that cmake has generated the entire ogre project for us. Open ogre. sln and compile it.

References:

Building ogre: How to build ogre and/or your own projects using ogre

Http://www.ogre3d.org/tikiwiki/Building+Ogre&structure=Development

Cmake Quick Start Guide

Http://www.ogre3d.org/tikiwiki/CMake+Quick+Start+Guide

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.