Im trying to compile a ogre 3d example project on Qt5.0 as a plain c++ project, but Im getting a lot of errors of "No such file or directory", I already add all the paths to the pro file. Also I set the Environment Variable, OGRE_HOME as in this tutorial http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Installing+the+Ogre+SDK .
Can someone help with all steps to make functional Ogre3d SDK on QT5 please Im a beginner.
Im using OgreSDK_vc10_v1-8-1, Mingw 4.7 and QT5.
I followed this steps of a tutorial.
- Create a new empty project.
- Create a new file for the code and name it main.cpp.
Add the main function:
int main (void) { return 0; }
Include ExampleApplication.h at the top of the following source file:
#include "Ogre\ExampleApplication.h":
Add PathToYourOgreSDK\include\ to the include path of your project.
- Add PathToYourOgreSDK\boost_1_42 to the include path of your project.
- Add PathToYourOgreSDK\boost_1_42\lib to your library path.
Add a new class to the main.cpp.
class Example1 : public ExampleApplication { public: void createScene() { } };
Add the following code at the top of your main function:
Example1 app; app.go();
Add PathToYourOgreSDK\lib\debug to your library path.
- Add OgreMain_d.lib to your linked libraries.
- Add OIS_d.lib to your linked libraries.
- Compile the project.
- Set your application working directory to PathToYourOgreSDK\bin\debug.
- Start the application. You should see the Ogre 3D Setup dialog.