Linux

Requirements:

  • 64-bit Linux OS
  • GCC 5.3 or newer
  • CMake 3.5 or newer
  • Python 2.7 (TODO: 3?)

To setup:

Underlined lines are about environment variables that will be needed for compiling, they should probably be added into your bashrc file for posterity as well.

  1. hg clone https://bitbucket.org/alchemyviewer/autobuild-alchemy
  2. Add autobuild to PATH:
    export PATH=$PATH:`pwd`/autobuild-alchemy/bin
  3. Set autobuild override:
    export AUTOBUILD_PLATFORM_OVERRIDE=linux64
  4. hg clone <alchemy repo>
  5. cd alchemy/
  6. (TODO: write this script for minimal dependencies) Install dependencies (if the script does not support your distribution, manually install the libraries listed in it, as these are required to build.):
    scripts/install-deps.sh
  7. Configure:
    autobuild configure -c ReleaseOS -- -DFMODSTUDIO:BOOL=ON -DRELEASE_CRASH_REPORTING:BOOL=OFF -DUNIX_DISABLE_FATAL_WARNINGS:BOOL=ON

To build:

(Assuming you're in alchemy/)

  1. cd build-linux-x86_64/
  2. make -j4 #Replace 4 with the number of threads (cores) you'd like to dedicate to the build
    (use `ninja` if default CMake generator is set to it and there are no Makefiles)
  3. Read a book

To read a book:

1. (manga link?) I dunno, something creative should be here, it's commonplace in build instructions for the linux community; maybe just remove this step.

To run:

  1. cd newview/packaged/
  2. ./alchemy

(TODO: To debug:?)

To compile in the future:

  1. hg pull #Unless you see something other than "no changes found" as the last line, stop here, don't waste time.
  2. hg update
  3. Follow the steps in the To build section.