[英]CEGUI doesn't work
I've Ogre3D SDK v1.9 and CEGUI 0.8 and here's my problem . 我有Ogre3D SDK v1.9和CEGUI 0.8,这是我的问题。 I followed the tutorial in the wiki of cegui and it says me that I have to use cmake. 我遵循了cegui Wiki中的教程,并说我必须使用cmake。 That's what I did but when I click on the button 'Configure' there is an error : 这就是我所做的,但是当我单击“配置”按钮时,出现错误:
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
BUT even i get this error I can continue and click on the button 'generate' anyway. 但是即使我遇到此错误,我也可以继续并单击“生成”按钮。
However when the build is done, i try to build cegui.svn and i get just one error : 但是,当构建完成后,我尝试构建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
and a lot of external symbol unresolved
before this error. 并在此错误发生之前external symbol unresolved
许多external symbol unresolved
。
Actually, I noticed that CEGUIOgreRenderer-0_d.dll
wasn't in my folder , I suppose visual studio failed to make the dll file. 实际上,我注意到CEGUIOgreRenderer-0_d.dll
不在我的文件夹中,我想Visual Studio无法制作dll文件。
Can you help me please? 你能帮我吗? :) :)
Thanks 谢谢
You need to config the boost library dir into system environment path
before you build CEGUI
. 在构建CEGUI
之前,需要将boost库目录配置为system environment path
。
Following are the variable and its sample value: 以下是变量及其样本值:
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
Check them after you click cmake-gui configure
. 单击cmake-gui configure
后,请检查它们。
Besides, the link error may also caused by wrong link configure, for visual studio, check the Project -- Property -- Linker -- Additional ...
, and add the specific xxx.lib
at that box. 此外,链接错误也可能是由于错误的链接配置引起的,对于Visual Studio,请检查“ Project -- Property -- Linker -- Additional ...
,然后在该框中添加特定的xxx.lib
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.