Page 1 of 1

Compiling CEGUI for ogrerender

Posted: Sat Aug 04, 2012 19:52
by GenMustang
Hello all,
I am using VS 2008 the file paths to my ogre files is C:\Ogre\OgreSDK_vc9_v1-8-0. I am having problems when compiling the CEGUIogrerenderer project after going through the wiki page suggestion of editing the config.lua the following is the edit I put in:

OGRE_PATHS = {"C:/Ogre/OgreSDK_vc9_v1-8-0", "include", "lib"}
OIS_PATHS = { "C:/Ogre/OgreSDK_vc9_v1-8-0", "include/OIS", "lib"}
-- CEGUI_EXTRA_PATHS = {
-- { " C:/Ogre/OgreSDK_vc9_v1-8-0/boost", "", "lib", "CEGUIOgreRenderer" },
-- { " C:/Ogre/OgreSDK_vc9_v1-8-0/boost", "", "lib", "CEGUIOgreRenderer" }
-- }

I have set all the renderers except ogre to false.

After doing this i have run the batch file and got the .sln file to run which i have. I then try to compile the above project and get the errors listed below:
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreRenderTarget.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreResourceProvider.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreTexture.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreTextureTarget.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreWindowTarget.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory
2>CEGUIOgreGeometryBuffer.cpp
2>c:\ogre\ogresdk_vc9_v1-8-0\include\ogre\threading\ogrethreadheadersboost.h(29) : fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory

I have tried including the file that this .hpp resides in which is 2>c:\ogre\ogresdk_vc9_v1-8-0\boost/boost/thread. I know its probably something small I missing If anyone could help that would be great.

Thank you in advance.
Ian

Re: Compiling CEGUI for ogrerender

Posted: Sun Aug 05, 2012 03:06
by N_K
Although I'm no expert at all, but it seems that it's not CEGUI, but Ogre complaining about the lack of those headers. Did you set up the Boost environment variables (BOOST_ROOT, BOOST_INCLUDEDIR, BOOST_LIBRARYDIR) as described on the Ogre wiki?

Re: Compiling CEGUI for ogrerender

Posted: Sun Aug 05, 2012 19:04
by MorbidAngel
Add c:\ogre\ogresdk_vc9_v1-8-0\boost to your global include path. Then

#include <boost/thread/tss.hpp>

Re: Compiling CEGUI for ogrerender

Posted: Sun Aug 05, 2012 20:29
by GenMustang
Thank you very much for all the help everyone. The include in the main include directories worked. That must be the only place I didnt put that file path.

Re: Compiling CEGUI for ogrerender

Posted: Sun Aug 05, 2012 22:34
by MorbidAngel
It's always the last place you look ;)