Cegui installation, compilation, and running Summary

Source: Internet
Author: User
Tags vc9

It took two days to finally run the example in the sample successfully. It's really not easy. Haha, let's make a small summary of the problem, for beginners to exchange and reference, if you have any mistakes, please correct them.

1. Download: http://www.cegui.org.uk/wiki/index.php/Downloads

The latest version is 0.7.1. Click it to find multiple download links:

A) cegui 0.7.1 Library source downloads: cegui source code. The [projects/premake] Directory contains the premake tool and bat program, you can manually generate project files under vs2002, vs2003, vs2005, and vs2008. But there is no additional library (that is, there is no dependencies folder) and you need to download it separately.

B) cegui 0.7.1 documentation downloads: Help document.

C) cegui 0.7.1 binary downloads for Microsoft Visual C ++ 2005 (must have SP1): source code with vs2005 project. Install the SP1 Patch in vs2005.

D) cegui 0.7.1 binary downloads for Microsoft Visual C ++ 2008: source code with vs2008 project. I have two links under this project, the first link includes the source code and the dependencies folder (which is under my account), and the second one is the dependencies folder, which needs to be downloaded with.

E) cegui 0.7.1 binary downloads for Apple Mac OS x (32 bit universal): Source Code project developed on Apple Mac OS.

The name of the downloaded file is cegui-sdk-0.7.1-vc9.zip. decompress the package.

Locate the ceguisamples. sln run under [CEGUI-SDK-0.7.1-vc9/projects/premake.

 

2. Compile

First, you need to compile the ceguisamplehelper project. The DLL file generated by it is called by other demo programs. It is a framework, which is to pack the. h and. cpp files under it.

The image rendering library must be supported during compilation. It supports four sdks: DirectX, OpenGL, irrlicht, And ogre,

If you do not want to install irrlicht or ogre, you can remove the hfile and CPP file with irrlicht or ogre in the project,

Then go to the [CEGUI-SDK-0.7.1-vc9/cegui/include] folder to find the config. h file, open, comment out "# define cegui_samples_use_irrlicht", "# define cegui_samples_use_ogre.

The compiling settings are in debug_static by default,

After the compilation is successful, the ceguisamplehelper_static_d.lib file will be obtained under [CEGUI-SDK-0.7.1-vc9/lib]. This is generally not used,

Change the solution configuration to debug mode and then obtain ceguisamplehelper_d.lib.

Compile the sample_demo6 project and try it,

If an error such as "unresovled symbol" cannot be found, it indicates that the previous ceguisamplehelper compilation is problematic. I mainly did not switch the debug_static mode to the debug mode, in addition, the original CPP file is deleted by mistake.

 

3. Run sample_demo6.

An error is reported during running, as shown below:

Freeglut_d.dll not found,
Solution: copy the DL l file under [CEGUI-SDK-0.7.1-vc9/dependencies/bin] to [CEGUI-SDK-0.7.1-vc9/bin], because the EXE program is generated in this folder; another way is, create a special folder by yourself, put those libraries in, and set the project-> properties-> debugging-> working directory to the folder. If it is too troublesome, then, let's put all those libraries into windows/system32!

D3dx9d_41.dll and d3dx10d_41.dll cannot be found, which is a problem with the DirectX SDK version,
Solution: Find the two libraries online and download them to system32, but I didn't find them. So I first downloaded the SDK of the latest version (August 2009, after the installation, find d3dx9d_42.dll and d3dx10d_42.dll in system32, copy and paste them, rename them to d3dx9d_41.dll and d3dx10d_41.dll, and keep them in system32. Hey hey, this is convenient and can be taught by netizens.

The logo.png file is not found. It is not set in the Resource Directory,
Solution: you need to set the project-> properties-> debugging-> working directory to [installation path/CEGUI-SDK-0.7.1-vc9/datafiles], datafiles is the resource folder.

 

Then we can see the beautiful cegui interface. It's quite easy to write it down. Sorry, I 've been exploring it for two days. It's so stupid.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/jize00/archive/2010/01/27/5259891.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.