fatal error C1083: Cannot open include file: 'OgreOverlaySys

Problems building or running the engine, queries about how to use features etc.
Post Reply
Warezovvv
Gnoblar
Posts: 4
Joined: Wed Jul 30, 2014 7:02 pm

fatal error C1083: Cannot open include file: 'OgreOverlaySys

Post by Warezovvv »

Hello OGRE community, I'am new to OGRE!
First of all I downloaded sdk 1.9 for VS 2012.
Passed this http://www.ogre3d.org/tikiwiki/tiki-ind ... ual+Studio.
When I'am starting build, i have that error

Code: Select all

1>------ Build started: Project: Escape, Configuration: Debug Win32 ------
1>  TutorialApplication.cpp
1>c:\gamedev\ogresdk_vc11_v1-9-0\include\ogre\sdktrays.h(32): fatal error C1083: Cannot open include file: 'OgreOverlaySystem.h': No such file or directory
1>  Generating Code...
1>  Compiling...
1>  BaseApplication.cpp
1>c:\gamedev\ogresdk_vc11_v1-9-0\include\ogre\sdktrays.h(32): fatal error C1083: Cannot open include file: 'OgreOverlaySystem.h': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Help, I need somebody,
Help, not just anybody! :)
Warezovvv
Gnoblar
Posts: 4
Joined: Wed Jul 30, 2014 7:02 pm

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by Warezovvv »

Code: Select all

1>------ Rebuild All started: Project: Escape, Configuration: Debug Win32 ------
1>  TutorialApplication.cpp
1>c:\gamedev\tutorialframework\tutorialapplication.cpp(56): error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>  BaseApplication.cpp
1>  Generating Code...
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Added to include $(OGRE_HOME)/include/OGRE/overlay
Warezovvv
Gnoblar
Posts: 4
Joined: Wed Jul 30, 2014 7:02 pm

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by Warezovvv »

Code: Select all

   {
        // Create application object
        TutorialApplication app;

        try {
            app.go();
			
        } catch( Ogre::Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
           // MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); Error MAZAFACKA
#else
Where error, there erorr. :( Commented line allowed to build project. Success. Please! Fix the bug!
User avatar
LJS
Greenskin
Posts: 138
Joined: Wed Jan 09, 2013 8:58 pm
x 6

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by LJS »

Hope you don't mind me asking this; what made you think that is a bug?

R,
(am very clumbsy, especially with words on a static screen.)
Ogre 3D 1.9.0 static
Bullet 2.8 static
Warezovvv
Gnoblar
Posts: 4
Joined: Wed Jul 30, 2014 7:02 pm

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by Warezovvv »

Code: Select all

 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
I don't know what to think
User avatar
LJS
Greenskin
Posts: 138
Joined: Wed Jan 09, 2013 8:58 pm
x 6

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by LJS »

You should read the tutorial, it is not a bug - it is a feature :)

All your errors are handled there. When you have solved this, you will get another which is handled in the same tutorial too.
(am very clumbsy, especially with words on a static screen.)
Ogre 3D 1.9.0 static
Bullet 2.8 static
User avatar
LJS
Greenskin
Posts: 138
Joined: Wed Jan 09, 2013 8:58 pm
x 6

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by LJS »

P.S. good luck with your quest ;)

Setting up an Application
Basic Tutorial 1
(am very clumbsy, especially with words on a static screen.)
Ogre 3D 1.9.0 static
Bullet 2.8 static
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by c6burns »

This is not a bug, or a feature ... it's a misunderstanding of the windows API in relation to unicode. You are using unicode which means MessageBox is using MessageBoxW and expecting wide chars. If you have no idea what I'm saying, google is your friend :)
User avatar
LJS
Greenskin
Posts: 138
Joined: Wed Jan 09, 2013 8:58 pm
x 6

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by LJS »

Didn't ment a feature of Ogre, nor VS nor c++. Don't know exactly where to categorize this.
(am very clumbsy, especially with words on a static screen.)
Ogre 3D 1.9.0 static
Bullet 2.8 static
User avatar
LJS
Greenskin
Posts: 138
Joined: Wed Jan 09, 2013 8:58 pm
x 6

Re: fatal error C1083: Cannot open include file: 'OgreOverla

Post by LJS »

Warezovvv, did you get it running?
(am very clumbsy, especially with words on a static screen.)
Ogre 3D 1.9.0 static
Bullet 2.8 static
Post Reply