Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.63 KB

File metadata and controls

73 lines (54 loc) · 2.63 KB

OpenOMF Installation

Dependencies

Use at least GCC 9 or Clang 10. MSVC is not supported.

Required:

On Ubuntu, it is possible to pull the libraries using apt-get.

apt-get install cmake libcunit1-dev libsdl2-mixer-dev libconfuse-dev libenet-dev libsdl2-dev libxmp-dev libpng-dev libopusfile-dev libepoxy-dev libminiupnpc-dev libnatpmp-dev

On Mac, you can use brew:

brew install cmake cunit sdl2_mixer confuse enet sdl2 libxmp libpng opusfile libepoxy

Acquiring the sources

Latest OpenOMF source can be acquired with the "git clone" command below.

git clone https://github.com/omf2097/openomf.git

To retrieve the latest source that compiles but will be out of date, see the releases section of OpenOMF project in GitHub.

Compiling

To compile (change install prefix if necessary):

$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
$ make
$ make install

Some useful CMake flags:

Flag Description Choices Default
CMAKE_BUILD_TYPE Chooses between build types -/Debug/Release -
CMAKE_INSTALL_PREFIX Installation path - -
USE_TESTS Enables unittests (dev only!) On/Off Off
USE_TOOLS Enables format editor tools (dev only!) On/Off Off
USE_SANITIZERS Enables asan and ubsan (dev only!) On/Off Off
USE_FORMAT Enables clang-format (dev only!) On/Off Off
USE_TIDY Enables clang-tidy (dev only!) On/Off Off

Note that when USE_FORMAT is selected, you can run command "make clangformat" to run code formatter to the entire codebase.

Data Files

OpenOMF loads the original data files from the original OMF:2097 game. Since One Must Fall 2097 is freeware, the files are obtainable for free from www.omf2097.com.

For resource directory structure, see PATHS.md.