HowToCompileDebian.txt 703 B

1234567891011121314
  1. If you install the following packages on Debian 9  like so
  2. you should be able to compile Forest2D.
  3. apt-get install liblua5.2-dev lua5.2 luarocks gcc make cmake git
  4. # you may have to configure luarocks to use lua5.2 by compiling luarocks with this configuration
  5. # (./configure --lua-version=5.2 --versioned-rocks-dir)
  6. cd /tmp && git clone https://github.com/torch/paths
  7. luarocks install paths/rocks/paths-scm-1.rockspec
  8. cd /tmp && wget https://github.com/Tangent128/luasdl2/archive/v2.0.3-4.0.tar.gz
  9. # Its important to download v2.0.3-4.0 of luasdl2 as the latest version fails to compile (for me at least).
  10. tar xf v2.0.3-4.0.tar.gz && cd luasdl2-2.0.3-4.0 && cmake .
  11. make install # as root of course