0

这是我第一次使用 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 .....

在 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 可能的路径每一个我认为 :(

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

4

1 回答 1

0

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

于 2014-12-23T03:31:05.553 回答