Cegui installation, compilation, Operation summary

Source: Internet
Author: User
Tags documentation vc9

Spent two days, finally the sample under the example run successfully, it is not easy Ah, oh, now the problem to solve such as to do a small summary, for beginners to exchange reference, if there is said wrong place, welcome to correct.

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

The latest version is 0.7.1, the dot will find a number of download links, simple translation under:

A) Cegui 0.7.1 Library source Downloads:cegui Source, inside the [Projects/premake] directory has premake tools and Bat program, you can manually generate VS2002, VS2003, VS200 5, VS2008 under the project document. However, additional libraries (that is, no dependencies folders) are missing and need to be downloaded separately.

b) Cegui 0.7.1 documentation Downloads: Help documentation.

c) Cegui 0.7.1 Binary Downloads for Microsoft Visual C + + 2005 (must has SP1): source code with VS2005 project, VS2005 need to install SP1 patch.

d) Cegui 0.7.1 Binary Downloads for Microsoft Visual C + + 2008: The source code with the VS2008 project, I am under this, there are two links, the first link includes the source code and the dependencies text folder (This is what I'm following), the second one is just dependencies folders and needs to be downloaded with a).

e) Cegui 0.7.1 Binary Downloads for Apple Mac OS X (+ Bit Universal): Source Engineering for Apple Mac OS development.

After I downloaded the filename is cegui-sdk-0.7.1-vc9.zip, unzip.

Locate the CEGUISamples.sln run under [Cegui-sdk-0.7.1-vc9/projects/premake].

2. Compiling

The first need to compile the Ceguisamplehelper project, it generated DLL files for other demo program calls, is a framework, in fact, it is the next. h,. CPP file to make a package.

The Image render library support is required at compile time, it supports four sdk:directx, OpenGL, Irrlicht, Ogre,

If you do not want to install Irrlicht, Ogre, you can remove the H file and the CPP file with Irrlicht or Ogre words in the project,

Then go to the [Cegui-sdk-0.7.1-vc9/cegui/include] folder to find the Config.h file, open, put "#define Cegui_samples_use_irrlicht", "#define Cegui_ Samples_use_ogre "comment out.

The compilation settings are by default under Debug_static,

After the successful compilation will be [Cegui-sdk-0.7.1-vc9/lib] under the Ceguisamplehelper_static_d.lib file, generally do not use this,

Replace the solution configuration with debug mode and get Ceguisamplehelper_d.lib.

Then compile the SAMPLE_DEMO6 project and try

If the "unresovled symbol" can not find the symbols and other errors, the previous Ceguisamplehelper compilation is problematic, I am mainly debug_static mode did not switch to debug mode, and the original CPP file deleted by mistake.

3. Running Sample_demo6

Operation will be error, as follows: Can not find Freeglut_d.dll,

Solution: Copy the DL L file under [Cegui-sdk-0.7.1-vc9/dependencies/bin] to [Cegui-sdk-0.7.1-vc9/bin], because EXE program is generated in this folder; the other way is, Build yourself a special folder, put those libraries in, and then set the project------------The working directory is the folder, and if it's too much trouble, throw those vaults in the windows/system32. D3dx9d_41.dll, D3dx10d_41.dll not found, is the DirectX SDK version issue,

Solution: Find these two libraries online, and then download down to System32, but I did not find, so I first to download the latest version (August 2009) SDK, installed in System32 found D3dx9d_42.dll, D3dx10d_42.dll , copy and paste under, and rename into D3dx9d_41.dll, D3dx10d_41.dll, still put in System32, hey, this is more convenient, the Netizen teaches. Logo.png file not found, that is the resource directory is not set to,

FIX: You need to set the working directory----Properties-------The installation path/cegui-sdk-0.7.1-vc9/datafiles],datafiles is the resource folder.

Then you can see the beautiful Cegui interface, write down, found quite easy, poor I groped for two days, too stupid, hehe.

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.