weixin_39595487 2020-11-30 00:54
浏览 0

[OGRE-206] Hide threading header

[reporter="Ogre.Transporter", created="Fri, 14 Jun 2013 22:12:38 +0200"]

It would be nice to hide the headers of threading dependencies. Have a look what happend after including Ogre.h:

Ogre.h -> OgrePrerequisites.h -> OgrePlatform.h -> OgreConfig.h -> OgreBuildSettings.h
Code: Select all#define OGRE_THREAD_SUPPORT 2

#define OGRE_THREAD_PROVIDER 1

Ogre.h -> OgrePrerequisites.h -> Threading/OgreThreadDefines.h -> Threading/OgreThreadDefinesBoost.h
Ogre.h -> OgrePrerequisites.h -> OgreStdHeaders.h -> Threading/OgreThreadHeaders.h -> Threading/OgreThreadHeadersBoost.h -> BOOST

That means you have to add boost to all Ogre projects. Even if you use Ogre as shared libraries, you also have to add boost. It would be helpful to include the threading libraries only in cpp code or headers which only used for building Ogre to avoid including any external library using the SDK. Using windows is also adding more issues because of boost auto linking, which is enabled by default.

Thread: http://www.ogre3d.org/forums/viewtopic.php?f=3&t=78190

Edit: It looks like that TBB has the same problem (https://bitbucket.org/transporter/ogre-procedural/issues/147/boost-and-tbb-headers-and-libraries-not)

该提问来源于开源项目:OGRECave/ogre

  • 写回答

9条回答 默认 最新

  • weixin_39595487 2020-11-30 00:54
    关注

    [author="masterfalcon", created="Fri, 14 Jun 2013 22:47:33 +0200"]

    Does this resolve the issue for you?

    评论

报告相同问题?