How to install ViZdoom on Ubuntu

Created at 2017-07-03 Updated at 2017-07-07 Category Reinforcement Learning Tag ViZDoom, Reinforcement Learning

Let’s install ViZdoom step by step

prerequisite:

  • Python3.5+
  • Ubuntu 14.04

After cloning the source code and f0llowing instructions given by docs of ViZdoom

Before that, you should install JDK developed by Oracle, rather than OpenJDK

1
2
3
4
5
6
7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default</pre>

This may take 1 or 2 hours to install, it depends on the network bandwidth.

First step: Build

1
2
3
4
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_PYTHON3=ON -DBUILD_JAVA=ON \
-DBUILD_LUA=ON -DPYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")

In this stepfreedoom-0.10.1.zip is needed, you can download it from Github

Second step: Make

1
make

Copy the built Python files to site-packages path

1
sudo mv -f bin/python3/pip_package/ /usr/local/lib/python3.5/site-packages/vizdoom

Note that you must set the correct version of Python3.5+

Then you can test it with Python3.5+. Good luck!

Table of Content

Site by GoingMyWay using Hexo & Random

Hide