Tutorial 1: Cannot open include file: 'boost/thread/tss.hpp'

Problems building or running the engine, queries about how to use features etc.
Post Reply
rekotc
Gnoblar
Posts: 20
Joined: Tue May 18, 2010 3:49 pm

Tutorial 1: Cannot open include file: 'boost/thread/tss.hpp'

Post by rekotc »

Hello everybody, im trying to learn the basics of Ogre so im sorry if my problem seems stupid but i couldnt find the answer on google ...i simply tried to compile the initial code from the 1st tutorial and here is what i get:

fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory

i found this problem also with other ogre examples and i cant figure out how to solve it, i guess it's a configuration problem..some hints?

thanks!
User avatar
lingfors
Hobgoblin
Posts: 525
Joined: Mon Apr 02, 2007 12:18 am
Location: Sweden
x 79

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by lingfors »

Download boost: http://www.boost.org/

Then configure your project to find the correct boost include directory.

It might also be possible to configure Ogre to not use threads, and thus manage to compile Ogre without boost. Check CMake.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by jacmoe »

If you are using the Ogre SDK, add OgreSDK/boost_1_42 to your list of includes, and OgreSDK/boost_1_42/lib to your list of library directories.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
rekotc
Gnoblar
Posts: 20
Joined: Tue May 18, 2010 3:49 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by rekotc »

thanks for your answers! i solved it!...yes i had to add the boost_1_42 and boost_1_42/lib directories to the compiler options, but i still have a problem, if i try to build it now it gives me back a lot of these errors:

Code: Select all

error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ) referenced in function "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ)
i've searched on google and it seems that i have to add to the linker options the directories for OgreMain.lib and OIS.lib, i did it but it is still not working..help! :?
User avatar
JaJDoo
Gnome
Posts: 343
Joined: Wed Feb 04, 2009 9:15 pm
x 5

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by JaJDoo »

rekotc wrote:thanks for your answers! i solved it!...yes i had to add the boost_1_42 and boost_1_42/lib directories to the compiler options, but i still have a problem, if i try to build it now it gives me back a lot of these errors:

Code: Select all

error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ) referenced in function "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ)
i've searched on google and it seems that i have to add to the linker options the directories for OgreMain.lib and OIS.lib, i did it but it is still not working..help! :?
do you have the required dll files in the folder?
some post from somewhere:
"So you basically want to make a car without a steering wheel because you don't know how to drive. I'd say learn how to use pointers"
rekotc
Gnoblar
Posts: 20
Joined: Tue May 18, 2010 3:49 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by rekotc »

ok solved! i forgot to add "OIS.lib OgreMain.lib" to Linker/input/additional dependencies, now i can build it correctly! :)
thanks for your support
girishgap
Gnoblar
Posts: 2
Joined: Thu Aug 05, 2010 3:23 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by girishgap »

rekotc wrote:Hello everybody, im trying to learn the basics of Ogre so im sorry if my problem seems stupid but i couldnt find the answer on google ...i simply tried to compile the initial code from the 1st tutorial and here is what i get:

fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory

i found this problem also with other ogre examples and i cant figure out how to solve it, i guess it's a configuration problem..some hints?

thanks!

IR
i have also same problem that is

fatal error C1083: Cannot open include file: 'boost/thread.hpp': No such file or directory

i m new to ogre but ready to get pick up
any one can help me regarding with this...
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by jacmoe »

jacmoe wrote:If you are using the Ogre SDK, add OgreSDK/boost_1_42 to your list of includes, and OgreSDK/boost_1_42/lib to your list of library directories.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
girishgap
Gnoblar
Posts: 2
Joined: Thu Aug 05, 2010 3:23 pm

Cannot open include file: 'boost/thread.hpp'

Post by girishgap »

rekotc wrote:Hello everybody, im trying to learn the basics of Ogre so im sorry if my problem seems stupid but i couldnt find the answer on google ...i simply tried to compile the initial code from the 1st tutorial and here is what i get:

fatal error C1083: Cannot open include file: 'boost/thread.hpp': No such file or directory

i found this problem also with other ogre examples and i cant figure out how to solve it, i guess it's a configuration problem..some hints?

thanks!
kapitanluffy
Gnoblar
Posts: 3
Joined: Fri Nov 19, 2010 6:44 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by kapitanluffy »

jacmoe wrote:If you are using the Ogre SDK, add OgreSDK/boost_1_42 to your list of includes, and OgreSDK/boost_1_42/lib to your list of library directories.
did this..

here's another error

Code: Select all

\baseapplication.h(21): fatal error C1083: Cannot open include file: 'OgreCamera.h': No such file or directory
kraj0t
Halfling
Posts: 89
Joined: Sun Mar 15, 2009 7:34 pm
Location: Seville (Spain)

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by kraj0t »

You'll also have to add Ogre's 'include' dir to your list of includes. If you're using Visual Studio C++, this is done by right clicking the project > properties > C/C++ > Additional Include Directories, and then adding the path to said directory to the text field.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by jacmoe »

kapitanluffy wrote:did this..
That's great. :wink:

But you didn't do this:
http://www.ogre3d.org/tikiwiki/Setting+ ... pplication
/* pick your environment */
It's explained in detail there.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
kapitanluffy
Gnoblar
Posts: 3
Joined: Fri Nov 19, 2010 6:44 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by kapitanluffy »

jacmoe wrote:
kapitanluffy wrote:did this..
That's great. :wink:

But you didn't do this:
http://www.ogre3d.org/tikiwiki/Setting+ ... pplication
/* pick your environment */
It's explained in detail there.
thanks ..now im kinda getting used to it xD

this time it gives me this

Code: Select all

1>LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_44.lib'
i did exactly what 'setting up an application' says..though i did not used precompiled headers.
TechnoBulldog
Halfling
Posts: 45
Joined: Tue Mar 16, 2010 2:49 pm
x 3

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by TechnoBulldog »

Did you add OgreSDK/boost_1_42/lib to your list of library directories.

Sorry, actually now I think it's boost_1_44/lib, but I'm not sure. Judging from the library name, I assume that it is.
I'm learning. Breezy <- Collection of game components I'm working on.
Wow this was helpful: Quatnerion and Rotation Primer
kapitanluffy
Gnoblar
Posts: 3
Joined: Fri Nov 19, 2010 6:44 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by kapitanluffy »

TechnoBulldog wrote:Did you add OgreSDK/boost_1_42/lib to your list of library directories.

Sorry, actually now I think it's boost_1_44/lib, but I'm not sure. Judging from the library name, I assume that it is.
you mean $(OGRE_HOME)\boost_1_44\lib ?

it is under property pages -> configuration properties -> vc++ directories -> library directories

:(
Greyh0und
Gnoblar
Posts: 2
Joined: Mon Dec 20, 2010 8:17 am

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by Greyh0und »

kapitanluffy wrote:
jacmoe wrote:
kapitanluffy wrote:did this..
That's great. :wink:

But you didn't do this:
http://www.ogre3d.org/tikiwiki/Setting+ ... pplication
/* pick your environment */
It's explained in detail there.
thanks ..now im kinda getting used to it xD

this time it gives me this

Code: Select all

1>LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_44.lib'
i did exactly what 'setting up an application' says..though i did not used precompiled headers.
I have the same 'fatal error LNK1104' error, and I think the problem is that OGRE 1.7.2 doesn't contain libboost_thread-vc100-mt-gd-1_44.lib, but libboost_thread-vc90-mt-gd-1_42(?).lib. So I think we both need to update Boost for it to work. But I'm at work right now, so I can't test yet :(

edit: Did you happen to use the Ogre AppWizard (1.7.1)? 'Cause I did!
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by nevarim »

but you have this lib in folder?
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
Greyh0und
Gnoblar
Posts: 2
Joined: Mon Dec 20, 2010 8:17 am

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by Greyh0und »

I found a possible solution to my/our problem:

Do you use Visual Studio 2010 with OgreSDK_vc90_v1-7-2? Because then you are doing it wrong :3
Download OgreSDK_vc10_v1-7-2, unpack and go at it!

I still used the vc90 version because I had Visual Studio 2008 installed, but replaced it for Visual Studio 2010 which broke Ogre :/
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by nevarim »

you can modify linker :P
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
Widget
Gnoblar
Posts: 1
Joined: Tue Mar 01, 2011 4:34 pm

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by Widget »

I'm having this problem but I'm definitely including the directory in my project properties. My team mate gave me a working project. It compiled fine for me the first time. When I started to make additions to the project it gave me this error. All I did was add an extra path in the additional directories. I then deleted that path, cleaned and rebuilt the project and I'm getting the same problem. Please help =(
hvalola
Kobold
Posts: 36
Joined: Mon Mar 15, 2010 9:19 am

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by hvalola »

I'm also having the same issue vc++ says
fatal error C1083: Cannot open include file: 'boost/thread/tss.hpp': No such file or directory


is it a windows 7 issue
User avatar
lingfors
Hobgoblin
Posts: 525
Joined: Mon Apr 02, 2007 12:18 am
Location: Sweden
x 79

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by lingfors »

Are you including your boost directory in the additional includes of your project?

Or is this when you're trying to compile the Ogre lib itself? If so, you have to make sure you set up the boost dir correctly in CMake.

it's definately not a Windows 7 issue, since I'm compiling Ogre without problems under Windows 7.
hvalola
Kobold
Posts: 36
Joined: Mon Mar 15, 2010 9:19 am

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by hvalola »

thanks for your reply

i have fond the solution
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Tutorial 1: Cannot open include file: 'boost/thread/tss.

Post by jacmoe »

hvalola wrote:i have fond the solution
Of course you have. Because it's written a multitude of times right here - in this topic. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Post Reply