Setting up OGRE
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Setting up OGRE
Guys is it just me or is setting up OGRE a nuisance for "everyone"? I mean I've been using OGRE "properly" since early 2009. And I "always" have a "ton" of trouble with setting it up. Like for example, I've been "trying" to set it up with Code::Blocks for around the past 10 hours, I missed my lunch, and my Afternoon snacks, and I'm going to miss my dinner as well. xD I've set it up "several" times. But it gives me trouble "everytime" I have to set it up! Is it just me or does this happen to others here as well? xD
-
jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: Setting up OGRE
It's totally painless. 
Once you figure it out, of course.
Did you read the guide on our wiki for setting up Code::Blocks?
Or, maybe you've missed the app wizard for Code::Blocks (in my signature) ?
Or, perhaps you'd like to just use CMake to generate a Code::Blocks project for you?
Check out the Building Your Projects With CMake wiki page.
I am really lazy, so I just create a wizard or merely use CMake to generate my project files.
Then it only boils down to having installed the right thing and set up environment variables properly.
After that, creating Ogre projects is a matter of 1 minutes work.
Once you figure it out, of course.
Did you read the guide on our wiki for setting up Code::Blocks?
Or, maybe you've missed the app wizard for Code::Blocks (in my signature) ?
Or, perhaps you'd like to just use CMake to generate a Code::Blocks project for you?
Check out the Building Your Projects With CMake wiki page.
I am really lazy, so I just create a wizard or merely use CMake to generate my project files.
Then it only boils down to having installed the right thing and set up environment variables properly.
After that, creating Ogre projects is a matter of 1 minutes work.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: Setting up OGRE
I forgot to mention that the most common error people tends to have is overlooking the simple fact that when running your project from within an IDE (or any program for that matter) you need to set the working directory and the command to point to your executable directory.
Otherwise the working directory will be the same as your main project directory, which is going to be wrong.
Otherwise the working directory will be the same as your main project directory, which is going to be wrong.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Oh Jacky X| This is the second time you've replied to my call for help. Even though that's not what this was. And yea I tried out all the app wizards.. as far as I know, all of them have been created by you. It shows on the upper left corner of the google code webpage. And I've tried everything man. I mean literally, this time it's just too much! O_O Some luck I have today. I mean I've been doing nothing all day except for trying to set it up on my laptop. The path "OGRE_HOME" is setup correctly. I've tried both code::blocks "and" Visual Studio 2010 by now and still no success. I'm sure I'm making some silly mistake somewhere though.
-
CABAListic
- OGRE Retired Team Member

- Posts: 2903
- Joined: Thu Jan 18, 2007 2:48 pm
- x 58
Re: Setting up OGRE
Then maybe you should tell us what exactly is the problem. Because that's not really clear from your posts.
P.S. Do you just "randomly" use quotes around certain words, or is there a "purpose" behind it?
P.S. Do you just "randomly" use quotes around certain words, or is there a "purpose" behind it?
-
betajaen
- OGRE Moderator

- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
Re: Setting up OGRE
Personally, I can't see why you can't just download the SDK and use it through Visual Studio.
Using anything else for a new user is a world of hurt, IHMO.
Using anything else for a new user is a world of hurt, IHMO.
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Dude I'm not a new user and I "have" tried to use the SDK through Visual Studio. Yea betajaen I "know" it's very simple, I've done it before! I had set it up in my parent's home and that took me around less than five minutes. I still have the post from back then in the forums, when I asked for help, and Jacky replied.betajaen wrote:Personally, I can't see why you can't just download the SDK and use it through Visual Studio.
Using anything else for a new user is a world of hurt, IHMO.
I know. It's not clear from my posts, but that's because I wasn't here to ask people for help (Since as far as I know, that's not what this forum is for). And also it seems that someone has changed the "Visual Studio" Setting up an application page on the wiki. So I guess I'll try it out again. Maybe Jacky did it. But for some reason the botom of the page still shows 26th december 2010... Strange. And as it is I just rebooted my computer so let's see if the app wizard works this time.CABAListic wrote:Then maybe you should tell us what exactly is the problem. Because that's not really clear from your posts.
P.S. Do you just "randomly" use quotes around certain words, or is there a "purpose" behind it?
And I put something in quotes to emphasize on it. Or to name something as it is or to quote someone. But lately I've realized I've been using it too frequently, it's just become a habit I guess. *Sign* I'll get back to "Setting up my Application" lol xD
You guys made me feel better thanks for that!
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Now that I checked it again. no wiki was edited... I saw the VC2008 page and thought it was the "new and improved" VC2010 lol xD Sleeplessness and lack of food is getting to me seriously xD But at least I have water! xD
-
betajaen
- OGRE Moderator

- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
Re: Setting up OGRE
Please don't call him Jacky; It's Jacmoe which AFAIK is a shortening of his real-life name.Shaun wrote:Dude I'm not a new user and I "have" tried to use the SDK through Visual Studio. Yea betajaen I "know" it's very simple, I've done it before! I had set it up in my parent's home and that took me around less than five minutes. I still have the post from back then in the forums, when I asked for help, and Jacky replied.betajaen wrote:Personally, I can't see why you can't just download the SDK and use it through Visual Studio.
Using anything else for a new user is a world of hurt, IHMO.
But I don't understand why your having so much trouble, considering you've done it at least one time before. All it requires to work in your application, is to link to the Ogre include and Boost include directory, link to the Ogre/lib/debug (or release), and use OgreMain.lib/OgreMain_d.lib. It's three steps to do.
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
I've set the OGRE_HOME path to "C:\OGRE_SDK\OgreSDK_vc10_v1-7-2". This is the Appwizard for MSVSC++ EE These are the build errors :-
1>------ Build started: Project: OgreApp2, Configuration: Debug Win32 ------
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: The build stopped unexpectedly because of an internal failure.
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
1>------ Build started: Project: OgreApp2, Configuration: Debug Win32 ------
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: The build stopped unexpectedly because of an internal failure.
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
1>c:\Users\they call me warlord\documents\visual studio 2010\Projects\OgreApp2\OgreApp2\OgreApp2.vcxproj : error MSB4014: at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
I've done this about about two dozen times before. I love it when things "just work"! I'm not sleeping before doing this tonight. I'm following the page step by step... word to word. But for some reason it doesn't seem to work O_O I'm using Windows 7 Ultimate editionbetajaen wrote:Please don't call him Jacky; It's Jacmoe which AFAIK is a shortening of his real-life name.Shaun wrote:Dude I'm not a new user and I "have" tried to use the SDK through Visual Studio. Yea betajaen I "know" it's very simple, I've done it before! I had set it up in my parent's home and that took me around less than five minutes. I still have the post from back then in the forums, when I asked for help, and Jacky replied.betajaen wrote:Personally, I can't see why you can't just download the SDK and use it through Visual Studio.
Using anything else for a new user is a world of hurt, IHMO.
But I don't understand why your having so much trouble, considering you've done it at least one time before. All it requires to work in your application, is to link to the Ogre include and Boost include directory, link to the Ogre/lib/debug (or release), and use OgreMain.lib/OgreMain_d.lib. It's three steps to do.
And yeah roger, I won't call him "jacky" anymore.
-
jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: Setting up OGRE
Judging from seeing the build errors you're getting, I'd say that you are indeed royally screwed. 
Please, could you confirm that anything at all is working by creating a regular win32 app using the built-in MS VS win32 wizard?
(No, not the .net standard app, the win32/win64)
Once you're successfully compiling that, it's time to move on to successfully creating and running an Ogre win32/win64 app.
It looks like a reinstall of Visual Studio is needed?
Please, could you confirm that anything at all is working by creating a regular win32 app using the built-in MS VS win32 wizard?
(No, not the .net standard app, the win32/win64)
Once you're successfully compiling that, it's time to move on to successfully creating and running an Ogre win32/win64 app.
It looks like a reinstall of Visual Studio is needed?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Yea I saw the build errors as well. And I've set my .NET framework to repair. And thanks for the good idea jac, Maybe I need to reinstall my VC++2010. Hopefully not, I guess I'm about to find out. And who knows, maybe all this could be because of a virus, it may be a noob thing to say but, just speculating
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Nope... Wim32 is also not working, it's showing the same errors. But .NET is repaired.n I'll try it now
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
Ok guys, I just had my breakfast, and I've realized what was wrong all along. It's just that microsoft behaves funny when your desktop user account name is above 19 characters. And guess what... mine "was". Thanks a lot, for bearing with me. I appreciate this
I created a new account and everything seems to be working just fine now. The ogre app has been setup. But in the middle of all this I had installed ubuntu on my system to see if I could work with Ogre on ubuntu, while trying to download the PPA, it turns out it couldn't download it... the terminal showed something like "...Error headers not found", something of the sort. So maybe whosoever is responsible for that PPA might want to check it out online.
Once again thanks a lot community
Once again thanks a lot community
-
cosme
- Halfling
- Posts: 50
- Joined: Fri Aug 27, 2010 5:51 pm
- x 4
Re: Setting up OGRE
OGRE PPA works well for me.
What release of Ubuntu are you using?
Could you post all info?But in the middle of all this I had installed ubuntu on my system to see if I could work with Ogre on ubuntu, while trying to download the PPA, it turns out it couldn't download it... the terminal showed something like "...Error headers not found", something of the sort.
What release of Ubuntu are you using?
Maintainer of ppa:ogre-team/ogre
-
Shaun
- Halfling
- Posts: 79
- Joined: Wed May 05, 2010 1:43 am
Re: Setting up OGRE
I was using 11.04 installed with wubi and using the Unity interface. "However", it was behaving kinda weird, like for example Firefox didn't have a web pluginfor flash and the plugin didn't install when I wanted it too. And also that the Firefox did not even support HTML5 O_O Now that's "strange". Since you've already tested the PPA. I'm guessing that there must have been something wrong with my Ubuntu installation. It's profile name was the same as that of my Windows so maybe the whole 19+ character problem exists in Ubuntu as well? I don't know suggesting. Either way, since you have already tested it. I think the problem was only in my computer/laptop. Thanks for letting me know though, since I plan on porting to Ubuntu later 
-
lonewolff
- Ogre Magi
- Posts: 1207
- Joined: Wed Dec 28, 2005 12:58 am
- x 6
Re: Setting up OGRE
In "answer" to the "original" "question". I don't have "any" troubles "getting" Ogre to "work". 
-
kneeride
- Bugbear
- Posts: 807
- Joined: Sun May 14, 2006 2:24 pm
- Location: Melbourne, Australia
Re: Setting up OGRE
This thing on quotes has been quite entertaining 