0

我有 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 文件。

你能帮我吗?:)

谢谢

4

1 回答 1

0

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

以下是变量及其样本值:

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

于 2019-08-14T10:18:07.313 回答