Old 11-08-2006, 06:05 PM   #1
Alec
Member
 
Join Date: Nov 2006
Posts: 1
Alec is a 1 bar user
Reputation: 10

Send a message via ICQ to Alec
Post rating: Votes: 0 Score: 0rate    
Default I have a problem...

version: StepMania 3.9
platform: SLED10
I have a problem... can't compile.
Code:
ROFL:/SM # ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking if -I/usr/X11R6/include is really necessary... no
checking for XTestQueryExtension in -lXtst... yes
checking for glPushMatrix in -lGL... yes
checking for gluGetString in -lGLU... yes
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.6... yes
checking for png_create_read_struct in -lpng... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for jpeg_read_scanlines in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for lua-config50... no
checking for lua-config... no
checking for lua_open in -llua... yes
checking for luaopen_base in -llualib... yes
checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for ogg_stream_init in -logg... yes
checking for vorbis_comment_add in -lvorbis... yes
checking for ov_open in -lvorbisfile... yes
checking for mad_synth_init in -lmad... yes
checking for TLS... yes
checking for library containing avcodec_init... no
checking for library containing guess_format... no
checking for library containing dladdr... -ldl
checking for crash handler components... ok
checking for working cxa_demangle... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.8.10)
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking whether OSS_GETVERSION is declared... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking if cstdlib breaks llabs... yes
checking for pthread_create in -lpthread... yes
checking for pthread_mutex_timedlock in -lpthread... yes
checking whether powf is declared... yes
checking whether sqrtf is declared... yes
checking whether sinf is declared... yes
checking whether tanf is declared... yes
checking whether cosf is declared... yes
checking whether acosf is declared... yes
checking whether roundf is declared... yes
checking whether truncf is declared... yes
checking whether SIGPWR is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
&
Code:
ROFL:/SM # make
Making all in src
make[1]: Entering directory `/SM/src'
make  all-am
make[2]: Entering directory `/SM/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -finline-limit=300   -Wall -W -Wno-unused -Wno-switch -O3 -MT Screen.o -MD -MP -MF ".deps/Screen.Tpo" \
  -c -o Screen.o `test -f 'Screen.cpp' || echo './'`Screen.cpp; \
then mv -f ".deps/Screen.Tpo" ".deps/Screen.Po"; \
else rm -f ".deps/Screen.Tpo"; exit 1; \
fi
GameState.h:88: error: extra qualification ‘GameState::’ on member ‘GetRandomCharacter’
GameState.h:89: error: extra qualification ‘GameState::’ on member ‘GetDefaultCharacter’
make[2]: *** [Screen.o] Error 1
make[2]: Leaving directory `/SM/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/SM/src'
make: *** [all-recursive] Error 1
Help me T_T
Alec is offline   Reply With Quote
Old 11-24-2006, 10:23 PM   #2
Lusse
Member
 
Join Date: Nov 2006
Location: Skultuna, Västmanland, Sweden
Posts: 3
Lusse is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default I go it working!!

I have the same problem when i was about to install it. You must use g++ 3.4. I dont know if you must have gcc 3.4 to but I used that "just in case".

//Lusse
Lusse is offline   Reply With Quote
Old 11-24-2006, 10:38 PM   #3
Lusse
Member
 
Join Date: Nov 2006
Location: Skultuna, Västmanland, Sweden
Posts: 3
Lusse is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default But now i got a new error

Code:
arch/InputHandler/InputHandler_SDL.cpp:126: error: `int SDL_EventMask' redeclared as different kind of symbol
/usr/include/SDL/SDL_events.h:108: error: previous declaration of `typedef enum SDL_EventMasks SDL_EventMask'
arch/InputHandler/InputHandler_SDL.cpp:126: error: declaration of `int SDL_EventMask'
/usr/include/SDL/SDL_events.h:108: error: conflicts with previous declaration `typedef enum SDL_EventMasks SDL_EventMask'
arch/InputHandler/InputHandler_SDL.cpp: In constructor `InputHandler_SDL::InputHandler_SDL()':
arch/InputHandler/InputHandler_SDL.cpp:176: error: expected unqualified-id före symbolen '|='
arch/InputHandler/InputHandler_SDL.cpp: In member function `virtual void InputHandler_SDL::Update(float)':
arch/InputHandler/InputHandler_SDL.cpp:195: error: expected primary-expression före symbolen ')'
make[2]: *** [InputHandler_SDL.o] Fel 1
make[2]: Leaving directory `/usr/local/games/stepmania-src/src'
make[1]: *** [all] Fel 2
make[1]: Leaving directory `/usr/local/games/stepmania-src/src'
make: *** [all-recursive] Fel 1
"Fel" is wrong in swedish
"Före symbolen" is before the symbol (i think)
Lusse is offline   Reply With Quote
Old 11-24-2006, 11:06 PM   #4
Lusse
Member
 
Join Date: Nov 2006
Location: Skultuna, Västmanland, Sweden
Posts: 3
Lusse is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Code:
Making all in src
make[1]: Entering directory `/usr/local/games/stepmania-src/src'
make  all-am
make[2]: Entering directory `/usr/local/games/stepmania-src/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/lua50 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -finline-limit=300   -Wall -W -Wno-unused -Wno-switch -O3 -MT StepMania.o -MD -MP -MF ".deps/StepMania.Tpo" \
          -c -o StepMania.o `test -f 'StepMania.cpp' || echo './'`StepMania.cpp; \
        then mv -f ".deps/StepMania.Tpo" ".deps/StepMania.Po"; \
        else rm -f ".deps/StepMania.Tpo"; exit 1; \
        fi
GameState.h:88: error: extra qualification ‘GameState::’ on member ‘GetRandomCharacter’
GameState.h:89: error: extra qualification ‘GameState::’ on member ‘GetDefaultCharacter’
make[2]: *** [StepMania.o] Fel 1
make[2]: Leaving directory `/usr/local/games/stepmania-src/src'
make[1]: *** [all] Fel 2
make[1]: Leaving directory `/usr/local/games/stepmania-src/src'
make: *** [all-recursive] Fel 1
Now the error is a bit smaller. I downloaded "SDL_events.h" revision 2219 and replaced /usr/include/SDL/SDL_events.h
Lusse is offline   Reply With Quote
Old 12-17-2006, 08:32 PM   #5
phlustik
Member
 
Join Date: Dec 2006
Location: Olomouc, Czech Republic
Posts: 2
phlustik is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default Can't compile on Linux - followup

Hi,

I have a similar problem compiling current 3.9 from source on Debian GNU/Linux etch amd64 (kernel 2.6.18-3-amd64):

arch/InputHandler/InputHandler_SDL.cpp:126: error: `int SDL_EventMask' redeclared as different kind of symbol
/usr/include/SDL/SDL_events.h:108: error: previous declaration of `typedef enum SDL_EventMasks SDL_EventMask'
arch/InputHandler/InputHandler_SDL.cpp:126: error: declaration of `int SDL_EventMask'/usr/include/SDL/SDL_events.h:108: error: conflicts with previous declaration `typedef enum SDL_EventMasks SDL_EventMask'
arch/InputHandler/InputHandler_SDL.cpp: In constructor `InputHandler_SDL::InputHandler_SDL()':
arch/InputHandler/InputHandler_SDL.cpp:176: error: expected unqualified-id before '|=' token
arch/InputHandler/InputHandler_SDL.cpp: In member function `virtual void InputHandler_SDL::Update(float)':
arch/InputHandler/InputHandler_SDL.cpp:195: error: expected primary-expression before ')' token
make[2]: *** [InputHandler_SDL.o] Error 1
make[2]: Leaving directory `/usr/local/src/StepMania-3.9-src/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/StepMania-3.9-src/src'
make: *** [all-recursive] Error 1

The conflicting file, SDL_events.h, comes from
dpkg -S SDL_events.h
libsdl1.2-dev: /usr/include/SDL/SDL_events.h
I am using the current version of libsdl1.2-dev (1.2.11-7). Where did you get the replacement file?

Thanks,
Petr
phlustik is offline   Reply With Quote
Old 12-25-2006, 07:39 PM   #6
Beini
Member
 
Join Date: Nov 2006
Posts: 3
Beini is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

I had the same problems as in the first and last posts. Using Ubuntu 6.10 AMD64 and official source.

http://www.eng.uwaterloo.ca/~sruggier/files/apt/
These debian sources worked fine so i checked what's different in them.



First one is solveable by using g++-3.4 and gcc-3.4... or using gcc 4.1 patch.

Code:
cd StepMania-3.9-src
Code:
cat gcc41.patch | patch -p0

The int SDL_EventMask is fixed by this i think.

Code:
cd StepMania-3.9-src
Code:
cat sdl.patch | patch -p0
Hope these help :)
Beini is offline   Reply With Quote
Old 01-20-2007, 03:13 PM   #7
phlustik
Member
 
Join Date: Dec 2006
Location: Olomouc, Czech Republic
Posts: 2
phlustik is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default The next compilation error

Beini,
Thanks for your patches, they work! I got past those 2 compilation errors but got soon stopped by another one:

if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/lua50 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -finline-limit=300 -Wall -W -Wno-unused -Wno-switch -O3 -MT MovieTexture_FFMpeg.o -MD -MP -MF ".deps/MovieTexture_FFMpeg.Tpo" \
-c -o MovieTexture_FFMpeg.o `test -f 'arch/MovieTexture/MovieTexture_FFMpeg.cpp' || echo './'`arch/MovieTexture/MovieTexture_FFMpeg.cpp; \
then mv -f ".deps/MovieTexture_FFMpeg.Tpo" ".deps/MovieTexture_FFMpeg.Po"; \
else rm -f ".deps/MovieTexture_FFMpeg.Tpo"; exit 1; \
fi
arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘int FFMpeg_Helper::DecodePacket()’:
arch/MovieTexture/MovieTexture_FFMpeg.cpp:331: error: cannot convert ‘avcodec::AVCodecContext**’ to ‘avcodec::AVCodecContext*’ for argument ‘1’ to ‘int avcodec::avcodec_decode_video(avcodec::AVCodecCont ext*, avcodec::AVFrame*, int*, uint8_t*, int)’
...
arch/MovieTexture/MovieTexture_FFMpeg.cpp:821: error: request for member ‘frame_number’ in ‘((MovieTexture_FFMpeg*)this)->MovieTexture_FFMpeg::decoder->FFMpeg_Helper::m_stream->avcodec::AVStream::codec’, which is of non-class type ‘avcodec::AVCodecContext*’
make[2]: *** [MovieTexture_FFMpeg.o] Error 1
make[2]: Leaving directory `/usr/local/src/StepMania-3.9-src/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/StepMania-3.9-src/src'
make: *** [all-recursive] Error 1

Perhaps a conflict with the installed libavformat-dev or libavcodec-dev?

Thanks again,
Petr
phlustik is offline   Reply With Quote
Old 01-23-2007, 08:38 PM   #8
cornbread
Member
 
Join Date: Jan 2007
Posts: 1
cornbread is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

I think my problem is similar. I applied the above fixes and progressed but ended up with this error when I tried "make"

Code:
crypto51/cryptlib.h:332: warning: ‘class CryptoPP::SimpleKeyingInterface’ has virtual functions but non-virtual destructor
crypto51/cryptlib.h:633: warning: ‘class CryptoPP::Waitable’ has virtual functions but non-virtual destructor
crypto51/misc.h: In function ‘std::string CryptoPP::IntToString(T, unsigned int) [with T = unsigned int]’:
crypto51/simple.h:25:   instantiated from here
crypto51/misc.h:176: warning: comparison of unsigned expression < 0 is always false
cd ./libresample && autoconf && sh ./configure && make
/bin/bash: autoconf: command not found
make[2]: *** [libresample/libresample.a] Error 127
make[2]: Leaving directory `/home/eric/downloads/StepMania/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eric/downloads/StepMania/src'
make: *** [all-recursive] Error 1
eric@eric-desktop:~/downloads/StepMania$ 
eric@eric-desktop:~/downloads/StepMania$
cornbread is offline   Reply With Quote
Old 02-27-2008, 04:17 PM   #9
Seph_VII
Member
 
Join Date: Feb 2008
Posts: 1
Seph_VII is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Sorry about reviving this corpse, but I have almost the exact same error:

Code:
seph@seph-laptop:~/Downloads/StepMania-3.9-src$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for glPushMatrix in -lGL... yes
checking for gluGetString in -lGLU... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.6... yes
checking for png_create_read_struct in -lpng... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for jpeg_read_scanlines in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for lua-config50... lua-config50
checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for ogg_stream_init in -logg... yes
checking for vorbis_comment_add in -lvorbis... yes
checking for ov_open in -lvorbisfile... yes
checking for mad_synth_init in -lmad... yes
checking for TLS... yes
checking for library containing avcodec_init... no
checking for library containing guess_format... no
checking for library containing dladdr... -ldl
checking for crash handler components... ok
checking for working cxa_demangle... yes
checking for ALSA CFLAGS... 
checking for ALSA LDFLAGS... -lasound
checking for libasound headers version >= 0.9.0... not present.
checking for snd_ctl_open in -lasound... no
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.12.8)
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking whether OSS_GETVERSION is declared... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking if cstdlib breaks llabs... yes
checking for pthread_create in -lpthread... yes
checking for pthread_mutex_timedlock in -lpthread... yes
checking whether powf is declared... yes
checking whether sqrtf is declared... yes
checking whether sinf is declared... yes
checking whether tanf is declared... yes
checking whether cosf is declared... yes
checking whether acosf is declared... yes
checking whether roundf is declared... yes
checking whether truncf is declared... yes
checking whether SIGPWR is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
seph@seph-laptop:~/Downloads/StepMania-3.9-src$ make
Making all in src
make[1]: Entering directory `/home/seph/Downloads/StepMania-3.9-src/src'
make  all-am
make[2]: Entering directory `/home/seph/Downloads/StepMania-3.9-src/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/lua50 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -finline-limit=300   -Wall -W -Wno-unused -Wno-switch -O3 -MT Screen.o -MD -MP -MF ".deps/Screen.Tpo" \
	  -c -o Screen.o `test -f 'Screen.cpp' || echo './'`Screen.cpp; \
	then mv -f ".deps/Screen.Tpo" ".deps/Screen.Po"; \
	else rm -f ".deps/Screen.Tpo"; exit 1; \
	fi
In file included from Screen.cpp:4:
GameState.h:88: error: extra qualification ‘GameState::’ on member ‘GetRandomCharacter’
GameState.h:89: error: extra qualification ‘GameState::’ on member ‘GetDefaultCharacter’
make[2]: *** [Screen.o] Error 1
make[2]: Leaving directory `/home/seph/Downloads/StepMania-3.9-src/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/seph/Downloads/StepMania-3.9-src/src'
make: *** [all-recursive] Error 1
I can't download the sdl.patch to try it,so I'd very much apprecite it if someone would upload it elsewhere.
Seph_VII is offline   Reply With Quote
Old 02-27-2008, 07:13 PM   #10
Vyhd
Member
 
Vyhd's Avatar
 
Join Date: Sep 2006
Location: Ohio
Posts: 725
Vyhd is a 3 bar user
Reputation: 10

Send a message via AIM to Vyhd
Post rating: Votes: 0 Score: 0rate    
Default

The gcc41.patch can be found here:
http://pasky.or.cz/~pasky/dev/stepmania/3.9/gcc41.patch [mirror]

The "extra qualification" refers to the fact that both are defined as members of GameState with that line, but then they're already defined as members of GameState due to the header declarations. This also happens with some other bits of code that are fixed up by this patch.

If you need the sdl.patch (which fixes another issue completely unrelated to the one above), then check this link:
http://pasky.or.cz/~pasky/dev/stepmania/3.9/sdl.patch

I've got it mirrored, but that server is probably faster than the one running on my computer. :)

If you run into anything else, there's probably a patch to fix it at that site I've linked you to previously. The directory these files are in is at http://pasky.or.cz/~pasky/dev/stepmania/3.9/.
__________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GMU/CS d- s++: a--- C++ UL++++ P+++ L+++ !E W+++ N- o? K? w-- O? M V?
PS+++ PE- Y+ PGP-- t 5? X R tv-- b++ DI+ D+ G e- h r++ y-
------END GEEK CODE BLOCK------

Last edited by Vyhd; 02-27-2008 at 07:19 PM.. Reason: Didn't realise the gcc-4.1 patch had other uses
Vyhd is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Thanks to

SourceForge.net Logo