2013年9月16日 星期一

Building 3d game Doom1 on Ubuntu 16.04

1.
apt-get install freedoom

2.
wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.0.18.tar.gz
#mirror site https://github.com/libsdl-org/SDL/tags
tar -xvf ./release-2.0.18.tar.gz
cd SDL-release-2.0.18
./configure --prefix=/usr
make -j8 && make install

3.
rm -f /usr/lib/x86_64-linux-gnu/libSDL2-*
cp -fP /usr/lib/libSDL2* /usr/lib/x86_64-linux-gnu

4.
git clone https://github.com/coelckers/prboom-plus.git
cd prboom-plus/prboom2
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=_install -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-O0 -g" -DCMAKE_CXX_FLAGS_DEBUG="-O0 -g"
cmake --build . --target install -- -j8 VERBOSE=1
cd _install/bin
./prboom-plus

5. (option)
wget https://www.pc-freak.net/files/doom-wad-files/Doom2.wad
#mirror site https://www.pc-freak.net/blog/doom-1-doom-2-doom-3-game-wad-files-for-download-playing-doom-on-debian-linux-via-freedoom-open-source-doom-engine/
./prboom-plus -file Doom2.wad

沒有留言:

張貼留言