make[2]: Entering directory `/home/bernard/projects/tmw/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DTMW_DATADIR=\""/usr/local/share/tmw/"\" -Wall -Werror -DUSE_OPENGL -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0` -g -O2 -MT tmw-gui.o -MD -MP -MF ".deps/tmw-gui.Tpo" -c -o tmw-gui.o `test -f 'gui/gui.cpp' || echo './'`gui/gui.cpp; \
then mv -f ".deps/tmw-gui.Tpo" ".deps/tmw-gui.Po"; else rm -f ".deps/tmw-gui.Tpo"; exit 1; fi
In file included from gui/../resources/image.h:29,
from gui/gui.cpp:55:
/usr/include/SDL/SDL_opengl.h:112:1: error: "GL_GLEXT_VERSION" redefined
In file included from /usr/include/GL/gl.h:1630,
from /usr/include/guichan/opengl/openglimage.hpp:68,
from /usr/include/guichan/opengl/openglsdlimageloader.hpp:63,
from gui/../resources/openglsdlimageloader.h:29,
from gui/gui.cpp:34:
/usr/include/GL/glext.h:74:1: error: this is the location of the previous definition
What version of SDL are you using? Are you an ubuntu user? If so, the problem lies in ubuntu default SDL versions, if you download and compile the latest SDL, then TMW will compile correctly.
It is possible to compile without any warnings and to run - but after start I stay at the beginning without possibilit to move - maybe some client problem... With older client it is possible to play without any problems...
But with new sandstorm/clouds atc effects witout opengl it is not playable on my machine.
Master Ar2ro wrote:What version of SDL are you using? Are you an ubuntu user? If so, the problem lies in ubuntu default SDL versions, if you download and compile the latest SDL, then TMW will compile correctly.
0 = off, 1 = only one overlay, 2 = all overlays (default)
former Manasource Programmer
former TMW Pixel artist
NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
This worked. I guess that I woudn't recompile SDL in my system since also other programs working with it. I guess that the patch should be added to the trunk..
Alderan wrote:I guess that the patch should be added to the trunk..
Nope, because it's not our problem.
Well as you wish. I can live with that. But I guess that it will discourage new potentional users. Imagine you are going to try some game - and the game doesn't compile on your system. What will you do? Will you browse bug reports on sourceforge and trying to get some patches or recompiling some basic system library? No. You will try some different game that will work without any problems.
So please at least think about it. It is possible to put the define into makefile so the source files will be same. I compile one my project with -DNO_SDL_GLEXT and see no problem about it.