I'm trying to build Raze on Fedora 31, but when I run cmake .. I get the message
Code: Select all
Could NOT find ZMusic (missing: ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
Thank you very much in advance.
Code: Select all
Could NOT find ZMusic (missing: ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
Code: Select all
git clone https://github.com/coelckers/ZMusic.git
cd ZMusic
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/../build_install ..
make install
Code: Select all
cd Raze
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/full/path/to/ZMusic/build_install ..
make
_mental_ wrote:Build ZMusic.
Build Raze with CMAKE_PREFIX_PATH set to full path to build_install directory.
cmake --version says: "cmake version 3.16.3"Some commands could be simplified, but I have no idea what version of CMake you are using.
Raze supports a bunch of games. Which one did you try to start? It would be nice to have a complete log output.linuxunil wrote:but I don't have sound(only the music from the CD if I select that option). In "MIDI Device" I can only select Fluidsynth and it has 0 sound channels that I can't increase. When I start a game I have a lot of "Missing sound x used in ambient sound generator y"
What problems exactly? "So many" means tens of issues to me. I wouldn't say that building GZDoom is much more simple then Raze. The only difference is ZMusic.linuxunil wrote:Also, why do I have so many problems with Raze when GZDoom building is so straight forward? is this something that will be ironed out in the future?
When you put it in that way you are right. I guess the major problem was the lack of documentation. I spent more than an hour trying to integrate ZMusic without any luck yesterday and that's why I ended up registering on the forum. I also tried the released binaries without luck, because I am missing different libraries that are not on Fedora. Building it myself seems correct, so I don't know why that happens.What problems exactly? "So many" means tens of issues to me. I wouldn't say that building GZDoom is much more simple then Raze. The only difference is ZMusic.
Outside of setting up your own projects to use an environment variable of your choosing, I think the closest you can get is you can set an environment variable per package.Graf Zahl wrote:Is there any way to set the prefix path persistently? This is by far the greatest annoyance with CMake I have to deal with. If this could just be set up once, never to be bothered with again, it's solve an endless list of problems.
ZMusic should be exporting its targets so that you can just set ZMusic_DIR and Raze/GZDoom won't need to carry a find module._mental_ wrote:Build Raze with CMAKE_PREFIX_PATH set to full path to build_install directory.
I'm 100% for that, unfortunately I wouldn't know how to do it. My knowledge of CMake is not good enough for that and many examples are for old versions.Blzut3 wrote: The next mile after that would be to modernize all of the projects
I do plan on doing it, but I don't know how long down the road it will be. So in case it helps in the mean time: The place to start would be in src/CMakeLists.txt move the add_executable up to the top and list there all of the sources that are not variables. Then use target_sources for adding in the rest of the files.Graf Zahl wrote:I'm 100% for that, unfortunately I wouldn't know how to do it. My knowledge of CMake is not good enough for that and many examples are for old versions.