Glest compilation memo

Source: Internet
Author: User

Glest is an open source game based on OpenGL, http://www.glest.org

You can refer to a post on the official forum for compiling under VC,

Http://www.glest.org/glest_board/viewtopic.php? T = 3271

 

It is for vs2008. Although the *. sln and *. vcproj files provided in the post are for vs2008, you can modify these files and open them in vs2005. As follows:

In the notebook, place glest. sln, game. vcproj, and libsglest. vcproj, and change the content related to vs2008 to vs2005, as shown below:

Format version 9.00 ---> format version 8.00

# Visual Studio 2008 ---> # Visual Studio 2005

Version = "9.00" ----> Version = "8.00"

-----------------------------

The following is a personal compilation process

1.decompress glest-source-3.1.2.tar.bz2 to glest-source-3.1.2/

2.decompress glest-vc2005porj.rar to the glest-source-3.1.2/, so that glest. sln in the glest-source-3.1.2/directory

3.decompress win32-glest-deps.rar to the glest-source-3.1.2/, so that deps/and glest. sln are in the same directory

Copy the Glu. h In the VC inlucde directory to deps/include, and copy glu32.lib in the VC/lib directory to deps/lib.

4. Open glest. sln.

5. Confirm in the project file attributes:

A) C/C ++-> code generation-> Runtime Library:/MT (release version) and/MTD (debug version)

B) linker-> system-> subsystem:/console

C) set the additional include directory and lib directory

For game. vcproj

Include dirs (release & Debug ):

.. /Deps/include ;.. /shared_lib/include/sound/ds8 ;.. /shared_lib/include/graphics ;.. /shared_lib/include/graphics/GL ;.. /shared_lib/include/platform/Win32 ;.. /shared_lib/include/sound ;.. /shared_lib/include/util ;.. /shared_lib/include/XML ;. /AI ;. /facilities ;. /game ;. /Global ;. /graphics ;. /GUI ;. /main ;. /menu ;. /network ;. /sound ;. /type_instances ;. /types ;. /World

Link dirs (release & Debug ):

../Deps/LIB; "../shared_lib/$ (configurationname)"; "../build/$ (configurationname)/libglest /"

The LIB library to be linked (release version ):

Dsound. Lib

Dxguid. Lib

Ogg_static.lib

Vorbis_static.lib

Vorbisfile_static.lib

Xerces-c_2.lib

Opengl32.lib

Glu32.lib

Wsock32.lib

Libglest. Lib

MMC. Lib

Libcmt. Lib

Xerces-c_static_2.lib

The LIB library to be linked (debug version ):

Dsound. Lib

Dxguid. Lib

Ogg_static_d.lib

Vorbis_static_d.lib

Xerces-c_2D.lib

Opengl32.lib

Glu32.lib

Wsock32.lib

Libglest. Lib

MMC. Lib

Xerces-c_static_2D.lib

Vorbisfile_static_d.lib

Vorbisenc_d.lib

---------------------------------

For libglest. vcproj

Include dirs (release & Debug ):

Gl /;.. /deps/include ;. /include/sound/ds8 ;. /include/graphics ;. /include/graphics/GL ;. /include/platform/Win32 ;. /include/sound ;. /include/util ;. /include/XML ;. /glest_game/AI ;. /glest_game/facilities ;. /glest_game/game ;. /glest_game/Global ;. /glest_game/graphics ;. /glest_game/GUI ;. /glest_game/main ;. /glest_game/menu ;. /glest_game/network ;. /glest_game/sound ;. /glest_game/type_instances ;. /glest_game/types ;. /glest_game/World

No link to the Lib Library

------------------

At this point, the compilation link should pass

-------------------------------------------------------------------

An error occurred while running -- "unknow Sound Factory: openal"

The following changes are made,

6. Open glest-source-3.1.2/glest. ini

Set

Factorysound = openal

Change

Factorysound = directsound8

7. Copy ../build/($ variables ename)/GAME/glest.exe to the glest-source-3.1.2/

Run glest.exe. It should be OK!

 

I personally think that the game is very beautiful and has the feeling of Warcraft ,:)

You can download the glest_3.1.2.exe file at runtime and obtain it in the root directory. For convenience, I will temporarily attach glest. ini here.

------------------------------- Glest. ini ---------------------------

; === Propertymap file ===

Ailog = 0

Airedir = 0

Checkglcaps = 1

Colorbits = 32

Lelemaxlines = 10

Leletimeout = 10

Daytime = 1000

Debugmode = 0

Depthbits = 16

Factorygraphics = OpenGL

Factorysound = directsound8

Fastspeedloops = 2

Filter = bilinear

Filtermaxanisotropy = 1

Firsttime = 0

Focusarrows = 1

Fogofwar = 1

Fogofwarsmoothing = 1

Fogofwarsmoothingframeskip = 3

Fontconsole =-*-12 -*-*-*-*-*-*-*

Fontdisplay =-*-12 -*-*-*-*-*-*-*

Fontmenu =-*-12 -*-*-*-*-*-*-*

Lang = English. LNG

Maxlights = 1

Networkconsistencychecks = 1

Photomode = 0

Refreshfrequency = 75

Screw Height = 768

Screen width = 1024

Serverip = 192.168.1.100

SERVERPORT = 6666

Shadowalpha = 0.2

Shadowframeskip = 2

Shadowtexturesize= 512

Shadows = Projected

Soundstaticbuffers = 16

Soundstreamingbuffers = 4

Soundvolumeambient = 75

Soundvolumefx = 75

Soundvolumemusic = 55

Stencilbits = 0

Textures3d = 0

Required wed = 0

-----------------------------------------------------------------

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.