compiler can't find header

Problems building or running the engine, queries about how to use features etc.
Post Reply
jhny
Gnoblar
Posts: 2
Joined: Sun Jan 28, 2018 9:18 pm

compiler can't find header

Post by jhny » Sun Jan 28, 2018 9:22 pm

Hello everyone,

I tried to follow this few easy steps to write an Ogre Application,
As with any other library, we need to configure our IDE before we can use it with Ogre 3D.
1. Create a new empty project.
2. Create a new file for the code and name it main.cpp.
3. Add the main function: int main (void) { return 0; }
4. Include ExampleApplication.h at the top of the following source file: #include "Ogre\ExampleApplication.h":
5. Add PathToYourOgreSDK\include\ to the include path of your project.
6. Add PathToYourOgreSDK\boost_1_42 to the include path of your project.
7. Add PathToYourOgreSDK\boost_1_42\lib to your library path.
8. Add a new class to the main.cpp. class Example1 : public ExampleApplication { public: void createScene() { } };
9. Add the following code at the top of your main function: Example1 app; app.go();
10. Add PathToYourOgreSDK\lib\debug to your library path.
11. Add OgreMain_d.lib to your linked libraries.
12. Add OIS_d.lib to your linked libraries.
13. Compile the project.
14. Set your application working directory to PathToYourOgreSDK\bin\debug.
15. Start the application. You should see the Ogre 3D Setup dialog.
My code looks like this:

Code: Select all


#include "Ogre\ExampleApplication.h"
/*
#include "OgreException.h"

class Example1 : public ExampleApplication
{
public:
void createScene()
{
}
};
*/

class Example1 : public ExampleApplication 
	{ 
		public: void createScene() 
				{ 
				} 
	}; 


int main (void)
	{	
		Example1 app; 
		app.go(); 

		return 0;
	}; 

	
I get this Errormessage everytime

Code: Select all

1>------ Build started: Project: testing, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\ogresdk\include\ogre\ogreoverlay.h(32): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "OgreOverlayPrerequisites.h": No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm working with Visual Express2010 and the OGRESDK v. 1.9.0.

Thx a lot!
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 567
Joined: Sun Mar 30, 2014 2:51 pm
x 81
Contact:

Re: compiler can't find header

Post by paroj » Mon Jan 29, 2018 1:25 am

Ogre 1.9 is not supported any more. Fore 1.10 see:
https://ogrecave.github.io/ogre/api/1.10/setup.html
0 x

Post Reply