我通过cmake制作了CEGUI-0.8.2,然后尝试添加ogre3d,但有一些问题对我有帮助

时间:2014-12-18 09:26:54

标签: ogre3d cegui

这是我第一次参加cegui,也许这个问题听起来很愚蠢,但我不知道为什么。

我现在正在编译cegui vs_solution,但是有一些编译错误。

我已经通过cmake制作了ogre-sdk-1.8.1ver和cegui-0.8.2 vs_solution。

这里是error_code,

错误C1083:无法打开文件'boost / thread / tss.hpp':没有这样的文件或目录c:\ ogresdk_vc10_v1-8-1 \ include \ ogre \ threading \ OgreThreadHeadersBoost.h 37 .....

in OgreThreadHeadersBoots.h

源代码是

/*-------------------------------------------------------------------------
This source file is a part of OGRE
(Object-oriented Graphics Rendering Engine)

For the latest info, see http://www.ogre3d.org/

Copyright (c) 2000-2012 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE
-------------------------------------------------------------------------*/
#ifndef __OgreThreadHeadersBoost_H__
#define __OgreThreadHeadersBoost_H__

#if OGRE_COMPILER == OGRE_COMPILER_CLANG || OGRE_COMPILER == OGRE_COMPILER_GCC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wpadded"
#pragma GCC diagnostic ignored "-Wweak-vtables"
#pragma GCC diagnostic ignored "-Wall"
#endif

#include <boost/thread/tss.hpp>   //this code makes error    
#include <boost/thread/recursive_mutex.hpp> //this code makes error
#include <boost/thread/condition.hpp> //this code makes error
#include <boost/thread/thread.hpp> //this code makes error
#include <boost/thread/shared_mutex.hpp> //this code makes error
#include <boost/thread/locks.hpp> //this code makes error

#if OGRE_COMPILER == OGRE_COMPILER_CLANG || OGRE_COMPILER == OGRE_COMPILER_GCC
#   pragma GCC diagnostic pop
#endif

#endif

我尝试添加包含路径C:\ OgreSDK_vc10_v1-8-1; $(IncludePath)或C:\ OgreSDK_vc10_v1-8-1 \ include \ OGRE或blahblah可能的路径我认为:(

如果有人知道这个问题,请告诉我

1 个答案:

答案 0 :(得分:0)

需要加入"c:\ogresdk_vc10_v1-8-1\boost"这应该可以解决您的问题。您可能还需要在其他库中添加"c:\ogresdk_vc10_v1-8-1\boost\lib"