-
Notifications
You must be signed in to change notification settings - Fork 1
Building Bregma's LCS
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.
mkdir build
../bootstrap
make
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
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
LCS runs just fine under WINE on your GNU/Linux build host. -- notes on forcing 64-bit mode in WINE to follow --
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
LCS runs just fine under WINE on your GNU/Linux build host.
cd ..
wine start build/src/crimesquad