Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Paul Staab edited this page Jan 14, 2015 · 11 revisions

Installation

Prebuild Binaries

We offer prebuild binaries for Windows and Packages for a variety of Linux distributions. See the Download section for details.

Compilation

To compile scrm from its sources, first download and extract the tar archive. You can install it on UNIX compatible systems using the usual

./configure
make

This will generate a binary called scrm. If you want to do a system wide installation, you can add a

make install

with superuser privileges. scrm is tested against gcc 4.8 and clang 3.4, and should also work with newer versions of both compilers. It has no other dependency requirements.

If you wish to maximize the performance of scrm, we recommend to use gcc 4.9 with compilation options -O3 -march=native, i.e. use

CXX='g++' CXXFLAGS='-O3 -march=native' ./configure

instead of the configure command above. Be aware that the resulting binary may not work on computers different from the one it was compiled on.

Cross-Compilation for Windows

scrm can be cross-compiled for Windows on Linux systems using mingw-w64:

CXX=i686-w64-mingw32-g++ CXXFLAGS='-O3' LDFLAGS='-static-libgcc -static -lpthread' ./configure --host=i686-w64-mingw32
make

should create an 64bit binary that works on windows. A 32bit binary can be created using

CXX=i686-w64-mingw32-g++ CXXFLAGS='-O3 -m32' LDFLAGS='-static-libgcc -static -lpthread' ./configure --host=i686-w64-mingw32
make

Warning: Due to a bug/missing implementation in gcc, the automatic seeding does not work with cross-compiled binaries. You need to manually specify a seed on every run.

Clone this wiki locally