首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我用cmake创建了CEGUI-0.8.2,然后尝试添加ogre3d,但是有一些问题帮助我。

我用cmake创建了CEGUI-0.8.2,然后尝试添加ogre3d,但是有一些问题帮助我。
EN

Stack Overflow用户
提问于 2014-12-18 09:26:54
回答 1查看 97关注 0票数 0

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

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

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

这是error_code,

错误:无法打开文件‘boost/C1083/tss.hpp’:没有这样的文件或目录C1083 37 .

在OgreThreadHeadersBoots.h中

源代码是

代码语言:javascript
复制
/*-------------------------------------------------------------------------
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_v1 10_v1-8-1;$(IncludePath)或C:\OgreSDK_v1 10_v1-8-1\包括\OGRE或blahblah可能的路径,我认为:(

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-12-23 03:31:05

需要包含"c:\ogresdk_vc10_v1-8-1\boost" --这将解决您的问题。您还可能需要在您的附加库中添加"c:\ogresdk_vc10_v1-8-1\boost\lib"

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27543163

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档