我有Ogre3D SDK v1.9和CEGUI0.8,这就是我的问题。我遵循了cegui的wiki中的教程,它告诉我我必须使用cmake。这就是我所做的,但当我点击按钮'Configure‘时,出现了一个错误:
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文件。
你能帮帮我吗?:)
谢谢
发布于 2019-08-14 18:18:07
在构建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。
https://stackoverflow.com/questions/24745810
复制相似问题