Forums » StepMania Releases » Installing SM5 on Linux

Did you run cmake again after installing the packages? It probably doesn't work right if you don't run cmake again.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
Well, the result of cmake is this:


~/stepmania/Build# cmake -G 'Unix Makefiles' .. && cmake ..
-- Found nasm: /usr/bin/nasm
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_LIBRARY)
-- -- At least one sound library was found. Do not worry if any were not found at this stage.
-- Could NOT find VA (missing: VA_LIBRARY VA_INCLUDE_DIR)
Host processor is i686
Host processor is 32bit
-- Configuring done
-- Generating done
-- Build files have been written to: /root/stepmania/Build
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_LIBRARY)
-- -- At least one sound library was found. Do not worry if any were not found at this stage.
-- Could NOT find VA (missing: VA_LIBRARY VA_INCLUDE_DIR)
Host processor is i686
Host processor is 32bit
-- Configuring done
-- Generating done
-- Build files have been written to: /root/stepmania/Build

And after cmake i run Make:

~/stepmania/Build# make -j8
[ 1%] Built target ffmpeg
[ 1%] Built target glew
[ 2%] Built target jsoncpp
[ 6%] Built target lua-5.1
[ 9%] Built target png
[ 9%] Built target pcre
[ 25%] Built target tommath
[ 25%] Built target GtkModule
[ 44%] Built target tomcrypt
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_Generic.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_Null.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_FFMpeg.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Sound/RageSoundDriver.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Sound/RageSoundDriver_Generic_Software.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Sound/RageSoundDriver_Null.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Sound/RageSoundDriver_PulseAudio.cpp.o
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp: In member function ‘void InputHandler_Linux_Event::InputThread()’:
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY1’ was not declared in this scope
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY40’ was not declared in this scope
make[2]: *** [src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:2:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:67: error: ‘PixelFormat’ in namespace ‘avcodec’ does not name a type
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:93: error: ‘PixelFormat’ in namespace ‘avcodec’ does not name a type
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:104: error: ‘PIX_FMT_YUYV422’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:115: error: ‘PIX_FMT_BGRA’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:126: error: ‘PIX_FMT_ARGB’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:160: error: ‘PIX_FMT_RGB24’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:171: error: ‘PIX_FMT_BGR24’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:182: error: ‘PIX_FMT_RGB555’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:187: error: ‘PIX_FMT_NB’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In static member function ‘static RageSurface* RageMovieTextureDriver_FFMpeg::AVCodecCreateCompatibleSurface(int, int, bool, int&, MovieDecoderPixelFormatYCbCr&)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:95: error: ‘const struct AVPixelFormat_t’ has no member named ‘pf’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual void MovieDecoder_FFMpeg::GetFrame(RageSurface*)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:341: error: ‘m_AVTexfmt’ was not declared in this scope
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual RString MovieDecoder_FFMpeg::Open(RString)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:441: error: ‘CODEC_ID_NONE’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual RageSurface* MovieDecoder_FFMpeg::CreateCompatibleSurface(int, int, bool, MovieDecoderPixelFormatYCbCr&)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:508: error: ‘m_AVTexfmt’ was not declared in this scope
make[2]: *** [src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_FFMpeg.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/StepMania.dir/all] Error 2
make: *** [all] Error 2

Getting the same Error :/, maybe something is wrong with Cmake?
Reply
Also i check also in this topic and some guy have an error similar mine, so i install the package liblua5.1-0-dev, and the error now is diferent, this is the new result of Cmake


~/stepmania/Build# cmake -G 'Unix Makefiles' .. && cmake ..
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_LIBRARY)
-- -- At least one sound library was found. Do not worry if any were not found at this stage.
Host processor is i686
Host processor is 32bit
-- Configuring done
-- Generating done
-- Build files have been written to: /root/stepmania/Build
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_LIBRARY)
-- -- At least one sound library was found. Do not worry if any were not found at this stage.
Host processor is i686
Host processor is 32bit
-- Configuring done
-- Generating done
-- Build files have been written to: /root/stepmania/Build

And Compiling it again:


:~/stepmania/Build# make -j8
[ 1%] Built target ffmpeg
[ 1%] Built target glew
[ 1%] Built target pcre
[ 4%] Built target png
[ 5%] Built target jsoncpp
[ 9%] Built target lua-5.1
[ 9%] Built target GtkModule
[ 25%] Built target tommath
[ 44%] Built target tomcrypt
Scanning dependencies of target StepMania
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/generated/verstub.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_FFMpeg.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/FontCharmaps.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/LuaBinding.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/LuaExpressionTransform.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/LuaReference.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/NoteData.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/NoteDataUtil.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/NoteDataWithScoring.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/NotesLoader.cpp.o
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp: In member function ‘void InputHandler_Linux_Event::InputThread()’:
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY1’ was not declared in this scope
/root/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY40’ was not declared in this scope
In file included from /root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:2:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:67: error: ‘PixelFormat’ in namespace ‘avcodec’ does not name a type
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:93: error: ‘PixelFormat’ in namespace ‘avcodec’ does not name a type
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:104: error: ‘PIX_FMT_YUYV422’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:115: error: ‘PIX_FMT_BGRA’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:126: error: ‘PIX_FMT_ARGB’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:160: error: ‘PIX_FMT_RGB24’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:171: error: ‘PIX_FMT_BGR24’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:182: error: ‘PIX_FMT_RGB555’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:187: error: ‘PIX_FMT_NB’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h:188: error: too many initializers for ‘AVPixelFormat_t’
make[2]: *** [src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In static member function ‘static RageSurface* RageMovieTextureDriver_FFMpeg::AVCodecCreateCompatibleSurface(int, int, bool, int&, MovieDecoderPixelFormatYCbCr&)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:95: error: ‘const struct AVPixelFormat_t’ has no member named ‘pf’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual void MovieDecoder_FFMpeg::GetFrame(RageSurface*)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:341: error: ‘m_AVTexfmt’ was not declared in this scope
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual RString MovieDecoder_FFMpeg::Open(RString)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:441: error: ‘CODEC_ID_NONE’ is not a member of ‘avcodec’
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘virtual RageSurface* MovieDecoder_FFMpeg::CreateCompatibleSurface(int, int, bool, MovieDecoderPixelFormatYCbCr&)’:
/root/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp:508: error: ‘m_AVTexfmt’ was not declared in this scope
make[2]: *** [src/CMakeFiles/StepMania.dir/arch/MovieTexture/MovieTexture_FFMpeg.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/StepMania.dir/all] Error 2
make: *** [all] Error 2

Any idea for this?
Reply
Install libpcre3-dev
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
After installing libpcre3-dev:


make -j8
[ 1%] Built target ffmpeg
[ 2%] Built target glew
[ 2%] Built target jsoncpp
[ 6%] Built target lua-5.1
[ 8%] Built target png
[ 16%] Built target GtkModule
[ 25%] Built target tommath
[ 44%] Built target tomcrypt
Scanning dependencies of target StepMania
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/generated/verstub.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_SextetStream.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_PIUIO.cpp.o
[ 44%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Lights/LightsDriver.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_X11.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Lights/LightsDriver_SystemMessage.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Lights/LightsDriver_Export.cpp.o
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Lights/LightsDriver_SextetStream.cpp.o
/home/shi0/Desktop/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp: In member function ‘void InputHandler_Linux_Event::InputThread()’:
/home/shi0/Desktop/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY1’ was not declared in this scope
/home/shi0/Desktop/stepmania/src/arch/InputHandler/InputHandler_Linux_Event.cpp:399: error: ‘BTN_TRIGGER_HAPPY40’ was not declared in this scope
[ 45%] Building CXX object src/CMakeFiles/StepMania.dir/arch/Lights/LightsDriver_Linux_PIUIO.cpp.o
make[2]: *** [src/CMakeFiles/StepMania.dir/arch/InputHandler/InputHandler_Linux_Event.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/StepMania.dir/all] Error 2
make: *** [all] Error 2

:/
Reply
Ah, it's actually in linux-libc-dev
I had to have a friend tell me how to find out which package contains /usr/include/linux/input.h.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
I already have that package Installed:

"linux-libc-dev is already the newest version."

Another way to fix it?
Reply
What kernel version are you running? I did some more research and found that ancient kernels from before 3.6 might not have it. Maybe the solution is to use a recent kernel?
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply