Closed inukaze closed 4 years ago
This is not about SDL2 this error talks about sdl2-mixer, a different library.
i forgot paste the part of mixer xD. well better i write the what i do, better i do again and take screenshots :
su
cd /tmp
wget -c https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
tar xfz SDL2_mixer-2.0.4.tar.gz
cd SDL2_mixer-2.0.4
./autogen.sh
./configure.sh --prefix=/usr/local
Well i forgot install the opusfile dependency :
slkpkg -s sbo --rebuild --reinstall opusfile
CFLAGS='-O2 -fPIC -march=native -mtune=native -pipe'
CXXFLAGS='-O2 -fPIC -march=native -mtune=native -pipe'
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native -pipe'
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native -pipe'
./configure --prefix=/usr/local
make ; make install ; ldconfig
cd /media/Slack32/tmp/shockolate
cd build
reset
rm -rf *
cmake -DENABLE_SDL2=ON -DENABLE_SOUND=ON -DENABLE_FLUIDSYNTH=ON -DENABLE_OPENGL=ON -DCMAKE_INSTALL_PREFIX=. ..
Output :
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /usr/lib64/libGL.so
-- SDL2 found: /usr/local/include/SDL2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,--enable-new-dtags -lSDL2
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'SDL2_mixer>=2.0.4'
-- Requested 'SDL2_mixer >= 2.0.4' but version of SDL2_mixer is 2.0.2
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
CMakeLists.txt:76 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/media/Slack32/tmp/shockolate/build/CMakeFiles/CMakeOutput.log".
Well i hope with the screenshots can be more clear the source code can't detect the SDL_Mixer 2.0.4 installed on /usr/local automatically detect and select the SDL2 mixer of /usr instead.
Some method to indicate just search the SDL2 libraries inside the /usr/local prefix and exclude the search of SDL2 in /usr for avoid this conflict ?
As the cmake output shows pgk-config is used to find the library. You need to set the folder for the pgk-config files correctly.
Well i had compile finally, but i don't had music, from where i can get the xmi files ? becauase the music playback don't work with FluidSynth or Timidity
Hello. First, isn't Slackware don't have sdl2-mixer 2.0.4 in repositories? You probably should try them. Second, do you have XMI files under res/sound/sblaster or res/sound/genmidi?
Slackware have SDL2-Mixer 2.0.12 in the repositories two or three days ago i post this, i compile it and i found the xmi files on my steam version of game.
Hi there when i try to compile i got this output :
The thing is the follow : SDL2=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b sdl2-config | grep -i "sdl2-config" | cut -d " " -f02 | cut -c10-20) SDL2=$($SDL2 --version) echo "$SDL2" 2.0.10
Becuase i before i had download, compile and install SDL2 2.0.10, near year ago i wrote a bash script with a function for detect and install SDL2, but well the part of detect the latest version on web SDL2 not working right now
Here i has wrote in the past for my own script :
From where that value is taken ? becuase if i run
/usr/bin/pkg-config --modversion sdl2
i got : 2.0.9