Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 1.33 KB

readme.md

File metadata and controls

74 lines (56 loc) · 1.33 KB

Linux compile

You can download binary file from CI artefacts. Dependencies for run: SDL2 i686, SDL_mixer i686.

Dependencies for compilation

You need:

  1. Clang compiler
sudo apt update
sudo apt install clang-12
  1. Compiler tools
sudo apt install cmake
sudo apt install pkg-config
  1. Some cross platform libs
sudo apt install libc6-dev-i386
sudo apt install gcc-multilib
sudo apt install g++-multilib
  1. Install assembly compiler JWasm that understands masm syntax
git clone https://github.com/JWasm/JWasm.git 
cd JWasm 
cmake . 
make
sudo cp jwasm /usr/local/bin 
  1. Install x86 lib SDL2 not lower than version SDL 2.0.12. You may compile it yourself
git clone https://github.com/libsdl-org/SDL.git -b SDL2
cd SDL
mkdir build
cd build
../configure --host=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
make
sudo make install
  1. Install x86 lib SDL2_mixer. You may compile it yourself
git clone https://github.com/libsdl-org/SDL_mixer.git -b SDL2
cd SDL_mixer
mkdir build
cd build
../configure --host=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
make
sudo make install

Compile

To compile run build script from Bedlam2/linux folder

git clone https://github.com/8street/Bedlam2.git
cd Bedlam2/linux
chmod +x compile.sh
./compile.sh