make vegastrike fails

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
CoD

make vegastrike fails

Post by CoD »

Hi, I'm trying to get the SVN version of vegastrike on my ubuntu 5.25.
I'm, having problems with the "make vegastrike" step, but I'm a real noob with cvs/svn systems.

I followed this tutorial and everything works except "make vegastrike" (even "make soundserver" succeeded)

When I launch "make vegastrike" this is what I get:

Code: Select all

cod@CoD-3:~/VegaStrike/vegastrike$ make vegastrike

if g++ -DHAVE_CONFIG_H -I. -I. -I.   -I./boost/1_33   -DHAVE_SDL=1 -DSDL_WINDOWING=1      -I/usr/local/include  -I/usr/include/python2.4 -DHAVE_PYTHON=1   -I./src  -DBISON -g -O2 -pipe  -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT src/gfx/vegastrike-ani_texture.o -MD -MP -MF "src/gfx/.deps/vegastrike-ani_texture.Tpo" -c -o src/gfx/vegastrike-ani_texture.o `test -f 'src/gfx/ani_texture.cpp' || echo './'`src/gfx/ani_texture.cpp; \
then mv -f "src/gfx/.deps/vegastrike-ani_texture.Tpo" "src/gfx/.deps/vegastrike-ani_texture.Po"; else rm -f "src/gfx/.deps/vegastrike-ani_texture.Tpo"; exit 1; fi
src/gfx/ani_texture.cpp: In member function ‘virtual void AnimatedTexture::setTime(double)’:
src/gfx/ani_texture.cpp:129: error: ‘min’ was not declared in this scope
src/gfx/ani_texture.cpp:130: error: ‘min’ was not declared in this scope
src/gfx/ani_texture.cpp:150: error: ‘max’ was not declared in this scope
src/gfx/ani_texture.cpp: In member function ‘void AnimatedTexture::AniInit()’:
src/gfx/ani_texture.cpp:196: warning: converting negative value ‘-0x00000000000000001’ to ‘unsigned int’
src/gfx/ani_texture.cpp: In member function ‘void AnimatedTexture::Reset()’:
src/gfx/ani_texture.cpp:265: warning: converting negative value ‘-0x00000000000000001’ to ‘unsigned int’
make: *** [src/gfx/vegastrike-ani_texture.o] Error 1
I can't understand if it's me mistaking something or if there's some error in the source code of src/gfx/ani_texture.cpp.

Can somebody help me?
andreasj
Merchant
Merchant
Posts: 58
Joined: Mon Oct 03, 2005 9:17 pm

Post by andreasj »

During the last few days, about every second
revision/change of the source code broke building
for me. Try again tomorrow, maybe the problem
has been fixed until then. Alternatively, try to
check out revision 10375, I could successfully build
that one yesterday.
mikispag
Star Pilot
Star Pilot
Posts: 6
Joined: Tue Nov 01, 2005 3:35 pm
Location: Italy
Contact:

Me too

Post by mikispag »

I have the same problem :(

SVN Updated today 2006/07/29

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I. -I.   -I./boost/1_33    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG   -I/usr/include/python2.4 -DHAVE_PYTHON=1   -I./src  -DBISON -g -O2 -pipe  -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT src/gfx/vegastrike-ani_texture.o -MD -MP -MF "src/gfx/.deps/vegastrike-ani_texture.Tpo" \
  -c -o src/gfx/vegastrike-ani_texture.o `test -f 'src/gfx/ani_texture.cpp' || echo './'`src/gfx/ani_texture.cpp; \
then mv -f "src/gfx/.deps/vegastrike-ani_texture.Tpo" "src/gfx/.deps/vegastrike-ani_texture.Po"; \
else rm -f "src/gfx/.deps/vegastrike-ani_texture.Tpo"; exit 1; \
fi
src/gfx/ani_texture.cpp: In member function `virtual void
   AnimatedTexture::setTime(double)':
src/gfx/ani_texture.cpp:129: error: `min' undeclared (first use this function)
src/gfx/ani_texture.cpp:129: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
src/gfx/ani_texture.cpp:150: error: `max' undeclared (first use this function)
src/gfx/ani_texture.cpp: In member function `void AnimatedTexture::AniInit()':
src/gfx/ani_texture.cpp:196: warning: converting of negative value `-1' to `
   unsigned int'
src/gfx/ani_texture.cpp: In member function `void AnimatedTexture::Reset()':
src/gfx/ani_texture.cpp:265: warning: converting of negative value `-1' to `
   unsigned int'
make: *** [src/gfx/vegastrike-ani_texture.o] Error 1
wirser
Bounty Hunter
Bounty Hunter
Posts: 201
Joined: Wed Dec 01, 2004 8:06 pm
Location: not where i want to be

I'm broke too svn 10376

Post by wirser »

here for your enjoyment is the error output of svn 10376
if current_situation=fact and if current_situation=faith
then current_forcast = excitement
mikispag
Star Pilot
Star Pilot
Posts: 6
Joined: Tue Nov 01, 2005 3:35 pm
Location: Italy
Contact:

Post by mikispag »

I agree, what shall we do?

The error is on line 129 and 150 of src/gfx/ani_texture.cpp

Code: Select all

min(active,numframes-1);
[...]
if (frames_maxtc.size()<max(active,nextactive)) {
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Add #include<utility> to ani_texture.cpp, and make sure there's an using namespace std too.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

I know this doesn't help to solve this problem but: Hasn't there been the common agreenment that only those things/changes that build should be committed to the repository? For other things: do them at home or do a temporary branch. The current practice doesn't always seem to follow this.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

The problem is that what builds on one compiler not always does on others.
I have sometimes commited things that don't build myself, when they build under VC8 but not under GCC. It happens.
Not everyone has the possibility/patience to try building on multiple platforms before commiting.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
CoD

Post by CoD »

klauss wrote:Add #include<utility> to ani_texture.cpp, and make sure there's an using namespace std too.
No way... same error.

If this is a problem due to my compiler, can somebody tell me how to use another program?
I think I'm using gcc.

I just write:
./bootstrap-sh
./configure
make vegastrike

Am I wrong?

I attach here the output of the last command.
You do not have the required permissions to view the files attached to this post.
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

I had the same build error on my linux machine. Replacing "max" with "std::max" and "min" with "std::min", respectively, in the files of question does the job. These changes have to be made in two files "src/gldrv/gl_misc.cpp" and "src/gfx/ani_texture.cpp".
Does this fix destroy the build on windoze? Who can check that?
CoD

Post by CoD »

It worked: compilation succeeded.

The game still don't start and give me some errors, but it's not a compilation problem, I think.
I'll open a new thread if I won't able to fix it.

Thanks to all :D
Post Reply