MSVSC++ ; searching for headers in previous directories?
-
- Gnoblar
- Posts: 4
- Joined: Tue May 01, 2012 4:09 am
MSVSC++ ; searching for headers in previous directories?
Hi, first post. I tried getting Ogre to work in the past with MinGW/Codeblocks; now I am trying again with visual studio. I was having a problem finding a boost header, so I went ahead and linked directly to it to see what would happen, and then the next on the list was missing. I then realized that the compiler was looking in a non-existent folder that I used to use when trying to install Ogre for Codeblocks. Any advice?
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: MSVSC++ ; searching for headers in previous directories?
Add the boost folder as an include directory?
-
- Gnoblar
- Posts: 4
- Joined: Tue May 01, 2012 4:09 am
Re: MSVSC++ ; searching for headers in previous directories?
The tutorial had me add "include" the boost folder twice in "setting up an application", I verified that I added those correctly to the tutorial's standards.
-
- Halfling
- Posts: 91
- Joined: Sat Aug 06, 2011 8:38 am
- Location: United Kingdom
- x 2
Re: MSVSC++ ; searching for headers in previous directories?
I'm not sure what demands it (cmake, boost, Ogre), but there is a requirement to have a BOOST_ROOT environment variable set to the root of your boost folder. e.g., for me it is set to "C:\Development\boost_1_47_0". Dunno if that helps. I generate my VS solution files using cmake so that generally helps sort out paths for me - a couple of lines in the cmake file.
-
- Gremlin
- Posts: 169
- Joined: Sun Apr 29, 2012 1:03 am
- Location: Santa Monica, California
- x 19
Re: MSVSC++ ; searching for headers in previous directories?
Boost is optional. Ogre compiles and runs fine without it. I think Ogre only uses Boost for threading (loading resources in a background thread). Single threaded apps are easier to debug anyway, and avoiding boost should improve your compile times as well.
-
- Gnoblar
- Posts: 4
- Joined: Tue May 01, 2012 4:09 am
Re: MSVSC++ ; searching for headers in previous directories?
I tested the configuration with the Ogre test application, could you send me somewhere to learn about avoiding boost?
-
- Gremlin
- Posts: 169
- Joined: Sun Apr 29, 2012 1:03 am
- Location: Santa Monica, California
- x 19
Re: MSVSC++ ; searching for headers in previous directories?
Well I just never installed Boost and cmake figured out that it wasn't there. I used cmake-gui, set the source dir, and the build dir. Then I had to set a variable "OGRE_DEPENDENCIES_DIR" to point to the right place. From there it pretty much worked. Oh I might have also had to point it to the DirectX SDK.
In cmake-gui, my entry for "Boost_DIR" is set to "Boost_DIR-NOTFOUND". However I didn't set it manually, it probably figured that out because I have no environment variables called BOOST-<anything>.
I'm using MSVC 2010 Express, and I got the dependencies from this thread.
Hope that helps.
In cmake-gui, my entry for "Boost_DIR" is set to "Boost_DIR-NOTFOUND". However I didn't set it manually, it probably figured that out because I have no environment variables called BOOST-<anything>.
I'm using MSVC 2010 Express, and I got the dependencies from this thread.
Hope that helps.
-
- Gnoblar
- Posts: 4
- Joined: Tue May 01, 2012 4:09 am
Re: MSVSC++ ; searching for headers in previous directories?
Ouch, to be honest... this hurts my head. I spent a couple years programming with SDL C++ and stuck with it... was simple to set up, and for the most part all I need to know is C++... Ogre is being very hard to set up for me no matter which compiler I use :/ ughh...