I have configured ogre today. Let's share my experience in this configuration process.
First go to the official website
1.7.2 SDK for Visual C ++. net 2008 (32-bit) version. (because I want to configure it quickly, I chose the SDK installation package.) download and install it.
After selecting the directory, click extract to install it. Note that the directory should not be Chinese,
Click the SLN file opening solution, select samplebrowser in the resource browser, right-click and select debug, start the new instance, and start program compilation. It takes about 5-10 minutes.
This problem usually occurs after compilation.
Click samplebrowser again to select attributes,
Then, delete the command line from the pre-linked event in the production event. Here, we will remind you to create the project on a disk in NTFS format. Otherwise, it may occur.
Msvcp90d. dll is not found. Download a DLL file and put it in system32. You can solve this problem and try to create it on an NTFS disk later.
In this way, the example program is configured, And you can view the examples after entering. At the same time, it should be noted that the location of my document should be put in a path without Chinese characters (so how to change the path? Right-click my document, select properties, and set the path again in the target folder. the following error occurs.
Next I will introduce how to configure a new empty project.
First, open vs2008, select create a project, and select Win32 project. Select a directory and a name. Create an empty project. Then download an ogre
Wiki tutorial framework, which is a simple empty framework.
Put the folder of this empty frame under the empty project we just created, and then add the file to the project.
The following is the most important step: Set environment parameters.
Right-click the project name and select properties. The property configuration page appears.
Configure according to the following method:
SelectAll configurations
General | output directory: bin \ $ (configurationname) General | intermediate Directory: OBJ \ $ (configurationname) General | Character Set: Multi-Byte Character Set debugging | command: bin \ $ (configurationname) \ configure (projectnamecmd.exe debugging | working directory: bin \ $ (configurationname) debugging | environment: Path = $ (ogre_home) \ bin \ $ (configurationname) c/C ++ | General | additional include directory: Include; $ (ogre_home) \ include \ OIS; $ (ogre_home) \ include \ ogre; $ (ogre_home) \ boost_000044 linker | General | additional library Directory: $ (ogre_home) \ Lib \ $ (configurationname); $ (ogre_home) \ boost_000044 \ Lib
Then selectDebug
Linker | input | additional dependency: ogremain_d.lib ois_d.lib linker | debug | generate debugging information: Yes (/debug)
Then selectRelease
Linker | input | additional dependency: ogremain. Lib Ois. Lib linker | debug | generate debugging information: No
After each modification, you must click the application.
Click Generate, Configuration Manager,
Compile the SDK in debug and release configurations.
In the last step, open the SDK you configured for the first time and open the bin folder. There are two folders: Debug and release. In the two folders, set resources_d.cfg and plugins_d.cfg (in debug), resources. cfg and resources. CFG (in release) is copied to bin/debug and bin/release under the project we created, and the media folder in SDK is copied to the project directory we created. Now we have configured everything. Click "run" and an empty orge framework is displayed. There is nothing in the framework and nothing is left blank.