Public
Snippet $17 authored by tuhe

vizdoom on cluster

Edited
## VIZDOOM INSTALL: https://github.com/mwydmuch/ViZDoom/blob/master/doc/Building.md
# First instlal hg as: https://www.mercurial-scm.org/wiki/UnixInstall
# then SDL2; simply follow https://wiki.libsdl.org/Installation
# with modification:
../configure --prefix=/home/tuhe/sdl

# next clone and compile:
git clone https://github.com/mwydmuch/ViZDoom.git
cd VizDoom

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/home/tuhe/sdl/lib -DCMAKE_INCLUDE_PATH=/home/tuhe/sdl/include/SDL2 
 -DBUILD_PYTHON=ON 
 -DPYTHON_EXECUTABLE=/usr/local/anaconda3/bin/python 
 -DPYTHON_INCLUDE_DIR=/usr/local/anaconda3/include/python3.6m 
 -DPYTHON_LIBRARY=/usr/local/anaconda3/lib/libpython3.6.dylib 
 -DNUMPY_INCLUDES=/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy

# fix include <SDL2/SDL.h> like a total moron:
find ./ -type f | xargs sed -i  's/<SDL2\/SDL.h>/"SDL.h"/g'
# compile:
make
# (fix one more idiotic substitution of same type as above)
make
# Assuming all compiles move binary:

mv bin/python3.6/pip_package /home/tuhe/.local/lib/python3.6/site-packages/vizdoom




28 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment