测试了下,没发现你说的问题,以下是在 loongnix-server 23
下面的操作过程:
cd /opt
git clone --depth=1 https://github.com/Warzone2100/warzone2100
cd /opt/warzone2100
git submodule update --init --recursive
dnf install -y cmake gcc-c++ ninja-build zip unzip
dnf install -y SDL2-devel physfs-devel libpng-devel libtheora-devel libvorbis-devel libogg-devel opus-devel freetype-devel harfbuzz-devel fribidi-devel openal-soft-devel libcurl-devel libsodium-devel sqlite-devel
./get-dependencies_linux.sh fedora
cd /opt
git clone --depth=1 https://github.com/icculus/physfs -b release-3.2.0
cd /opt/physfs
cmake -B build -GNinja
cmake --build . --target install
mkdir -p /opt/build
cd /opt/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=~/wz/install -GNinja ../warzone2100
cmake --build . --target install