[solved] why is stlport 5.0 needed

Problems building or running the engine, queries about how to use features etc.
trueleowdeo
Kobold
Posts: 38
Joined: Fri Feb 26, 2010 10:40 am

[solved] why is stlport 5.0 needed

Post by trueleowdeo »

a tutorial on how to build ogre on codeblocks said that you need the stlport5.0 or something similar. http://www.ogre3d.org/wiki/index.php/Se ... pplication

i noticed that it was not required for visual studio. :?:
questions:
1. why is the stlport 5.0 only needed on mingw/codeblocks and not on ms visual c++
2. i downloaded the latest sdk for ogre (version 1.7) but i cant find the so called stlport, any ideas on where it is (because the tutorial says its necessary)
$(OGRE_HOME)\stlport\stlport

VERY IMPORTANT: The stlport include directory has to be first in the include directories
Thanks in advance. :)
Last edited by trueleowdeo on Fri Mar 12, 2010 4:02 pm, edited 2 times in total.
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 136

Re: why is stlport 5.0 needed

Post by spacegaier »

I am no expert on this topic, but as far as I know it's like that: On some platforms, the STL (Standard Template Library) is natively exisiting and working (e.g. Windows), but on some others it is not. I guess VC++ has this library inside of it, so it isn't needed in these cases.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58

Re: why is stlport 5.0 needed

Post by CABAListic »

No, the reason is quite different and has to do with the way the STL is linked against in mingw 3.x. You really should use mingw 4.x instead, e. g. use the installer from http://www.tdragon.net/recentgcc/ . In doing so, you don't have that problem and you don't need STLport.
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 136

Re: why is stlport 5.0 needed

Post by spacegaier »

But isn't the STL platform dependent (or has some other limitation, so that not all compiler have it or can use it)?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
trueleowdeo
Kobold
Posts: 38
Joined: Fri Feb 26, 2010 10:40 am

Re: why is stlport 5.0 needed

Post by trueleowdeo »

its wierd because it seems that this "stl port" is actually different from the usual stl we are used to using in "normal c++"
The stlport include directory has to be first in the include directories. If it is not then headers used for libstdc++ could get included which will cause conflicts with stlport during the link stage
it seems that the usual stl is in libstdc++
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58

Re: why is stlport 5.0 needed

Post by CABAListic »

spacegaier wrote:But isn't the STL platform dependent (or has some other limitation, so that not all compiler have it or can use it)?
Yes, but mingw does have its own STL implementation. The problem with the mingw 3.x releases is (as far as I recall) that they only offer statically linked versions of the libstdc++, and this causes serious issues in a multi-DLL project. So to circumvent the problem one can replace libstdc++ with STLport, but imho it's kind of a hacky solution. So better to just use a newer MinGW release :)