Skip to content

Building Bregma's LCS

Stephen M. Webb edited this page Nov 29, 2017 · 2 revisions

This fork has broken from the others and is busy eliminating native builds on Microsoft Windows platform. Instead, everything is built on a POSIX platform using the GNU autotools and cross-compilers (which, ironically, can be used from the Windows Subsystem for Linux under MS Windows).

The advantages of this restriction include the following.

  • one single build system for all targets, reducing maintenance
  • can be used from automated builds (eg. Travis-CI)
  • I know Linux inside out and am unfamiliar with Windows

That last bullet may not apply to others, but this is my sandbox so I make the rules.

Automated packaging and uploads are still on the TO-DO list.

GNU/Linux OS

Building on a Linux Host for a Linux Target

mkdir build
../bootstrap
make

Running natively under GNU/Linux

You must be in the source directory to run th eexecutable (you can try sudo make install and run from a system-installed executable, but I haven't tested it).

cd ..
build/src/crimesquad

Microsoft Windows 64-bit OS

Building on a Linux Host for a Win64 Target

You'll want to install a cross-compiler toolchain. On Ubuntu, use this command.

sudo apt-get install g++-mingw-w64-x86-64 

To build, check out the sources and cd into the source directory, the issue these commands.

mkdir build
../bootstrap --host=gcc-mingw-w64-x86-64
make

Running under WINE on GNU/Linux

LCS runs just fine under WINE on your GNU/Linux build host. -- notes on forcing 64-bit mode in WINE to follow --

Microsoft Windows 32-bit OS

Building on a Linux Host for a Win32 Target

You'll want to install a cross-compiler toolchain. On Ubuntu, use this command.

sudo apt-get install g++-mingw-w64-i686

To build, check out the sources and cd into the source directory, the issue these commands.

mkdir build
../bootstrap --host=i686-w64-mingw32
make

Running under WINE on GNU/Linux

LCS runs just fine under WINE on your GNU/Linux build host.

cd ..
wine start build/src/crimesquad