These are the complete steps I currently follow for building:
Code: Select all
cd Downloads/builds
git clone https://github.com/microsoft/vcpkg.git
vcpkg/bootstrap-vcpkg.sh
git clone https://github.com/ZDoom/ZMusic.git
mkdir -p ZMusic/build/zmusic_install
cd ZMusic/build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=zmusic_install
make -j2
make install
cd ../.. # Back to directory Downloads/builds
git clone https://github.com/ZDoom/Raze.git
mkdir -p Raze/build/raze_install
cd Raze
git config --local --add remote.origin.fetch +refs/tags/*:refs/tags/*
git pull
cd build
cp ../../ZMusic/build/zmusic_install/lib/libzmusiclite.so.1.1.12 libzmusiclite.so.1
cp -r ../../ZMusic/build/zmusic_install/include .
cp -r ../../ZMusic/build/vcpkg_installed .
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake -DZMUSIC_LIBRARIES=libzmusiclite.so.1 -DZMUSIC_INCLUDE_DIR=include -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=raze_install; echo $?
cp -r vcpkg_installed/x64-linux/include/SDL2 ../libraries/ZWidget/include
make -j2
make install
Anyways, with all of this the process completes.
But when running there's no sound at all. Console output does say something like "Opening device Openal: not found. Falling to NOSOUND".
Installing the OpenAL -dev dependencies and retrying from start changed nothing at all.
I did notice however that, when configuring Raze with CMake, vcpkg actually uninstalled the Alsa stuff installed back when configuring ZMusic...
Even when trying "ldd" to raze binary or libzmusic there's nothing pointing to any sound library...
This is the main problem here, but I'm still adding two additional ones:
---"make install" does NOT include libzmusic nor soundfonts directory into the installation directory; same analogous situation with GZDoom as well.
---If trying to build Raze without vcpkg at all and instead using system's development packages, CMake always marks WebP as missing even when libwebp-dev is installed; and I think it may be because Raze's CMakeLists only considers it if installed from vcpkg
Can someone help please?
Thanks.