【问题标题】:CEGUI doesn't workCEGUI 不工作
【发布时间】:2014-07-14 20:54:18
【问题描述】:

我有 Ogre3D SDK v1.9 和 CEGUI 0.8,这是我的问题。 我按照 cegui wiki 中的教程进行操作,它说我必须使用 cmake。这就是我所做的,但是当我单击“配置”按钮时出现错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/CEGUI/cegui/src/RendererModules/Ogre

但即使我收到此错误,我也可以继续并单击“生成”按钮。

但是,当构建完成后,我尝试构建 cegui.svn,但只得到一个错误:

Creating library C:/CEGUI/build/lib/CEGUIOgreRenderer-0_d.lib and object 
23>C:\CEGUI\build\bin\CEGUIOgreRenderer-0_d.dll : fatal error LNK1120: 106 unresolved externals

还有很多external symbol unresolved出现这个错误。

实际上,我注意到CEGUIOgreRenderer-0_d.dll不在我的文件夹中,我想visual studio无法制作dll文件。

你能帮帮我吗? :)

谢谢

【问题讨论】:

标签: c++ ogre cegui


【解决方案1】:

在构建 CEGUI 之前,您需要将 boost 库目录配置为 system environment path。

以下是变量及其样本值:

BOOST_INCLUDEDIR      G:\OgreSDK_vc11_v1-9-0\boost
BOOST_LIBRARYDIR      G:\OgreSDK_vc11_v1-9-0\boost\lib
BOOST_ROOT            G:\OgreSDK_vc11_v1-9-0\boost

点击cmake-gui configure后查看。

另外,链接错误也可能是链接配置错误造成的,对于visual studio,勾选Project -- Property -- Linker -- Additional ...,并在该框添加具体的xxx.lib。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-10
    • 1970-01-01
    • 2019-01-19
    相关资源
    最近更新 更多