how to compile?

Asked by german on 2011-02-27

can you explain me step by step how to do that?, I would like to know how to do .Some months ago, I began to make a new game from wargus scripts, and it worked pretty well, i add many units, buildings, music and sounds and even I made new terrain, all the images i extracted from other games like warwind or homm2, but now I would like to change other aspects of the game, but I have no idea how to compile the stratagus files, I've never done that before

Question information

Language:
English Edit question
Status:
Answered
For:
Stratagus Edit question
Assignee:
Joris Dauphin Edit question
Last query:
2011-07-14
Last reply:
2011-07-22
Pali (pali) said : #1

Downlaod Stratagus source code. Then unpack it and in terminal run:
$ ./autogen
$ ./configure --prefix=/usr
$ make

german (pepeelgranjero) said : #2

i have 4 problems:

c:\stratagus-2.2.5.5\src\include\util.h(45) : fatal error C1083: No se puede abrir el archivo incluir: 'winsock2.h': No such file or directory
selection.cpp

c:\stratagus-2.2.5.5\src\tolua\tolua_map.cpp(395) : warning C4996: 'strncat': el símbolo se ha declarado como deprecated
        c:\archivos de programa\microsoft visual studio 8\vc\include\string.h(143) : vea la declaración de 'strncat'
        Mensaje: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\stratagus-2.2.5.5\src\tolua\tolua_map.cpp(525) : warning C4996: 'strncat': el símbolo se ha declarado como deprecated
        c:\archivos de programa\microsoft visual studio 8\vc\include\string.h(143) : vea la declaración de 'strncat'
        Mensaje: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\stratagus-2.2.5.5\src\tolua\tolua_map.cpp(526) : warning C4996: 'strncat': el símbolo se ha declarado como deprecated
        c:\archivos de programa\microsoft visual studio 8\vc\include\string.h(143) : vea la declaración de 'strncat'
        Mensaje: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

Pali (pali) said : #3

This sounds like problems with MSVC. Joris can you look at this?

Pali (pali) said : #4

Now, we change our build system to CMake on all platforms. It has some fixes for MSVC too. So this problem should be fixed in code on bzr.

german (pepeelgranjero) said : #5

well, some weeks ago, i could compile stratagus and all works pretty well, but the music and videos don't work, in the log i get this problem

"PlayMovie() 'videos/wwfindm7.ogv' is not supported, please recompile stratagus with theora support"

how i change this?

Pali (pali) said : #6

> please recompile stratagus with theora support

Make sure you are using version from bzr.
Install libtheora on your system and then recompile stratagus with theora (clean cmake and run it again).

german (pepeelgranjero) said : #7

the music works fine, and now it loads the videos, but when the game load a video it looks terrible, actually it looks like it doesnt have a defined pallete

Pali (pali) said : #8

Please post screen

german (pepeelgranjero) said : #9

http://www.uploadimage.com.ar/images/99247872119216124701.jpg

i take that from human-1.ogv, the audio works fine.

Can you help with this problem?

Provide an answer of your own, or ask german for more information if necessary.

To post a message you must log in.