If installing in a virtual machine:
Install dependencies. The scripts/docker directory contains build files that contain commands to install all required dependencies for various Linux flavors. Please consult these if you are having problems installing.
On Ubuntu 16.04:
sudo apt-get install build-essential git libboost-all-dev libpython2.7-dev openjdk-8-jdk swig doxygen xsltproc ffmpeg python-tk python-imaging-tk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
sudo update-ca-certificates -f
(http://stackoverflow.com/a/29313285/126823)
On Debian 8:
sudo apt-get install build-essential git libboost-all-dev libpython2.7-dev openjdk-8-jdk swig doxygen xsltproc libav-tools python-tk python-imaging-tk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
sudo update-ca-certificates -f
(http://stackoverflow.com/a/29313285/126823)
On Fedora 26:
su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
(for ffmpeg)
sudo dnf install git boost-devel python-devel java-1.8.0-openjdk-devel swig doxygen libxslt ffmpeg gcc-c++ tkinter python-pillow-tk
On CentOS 7:
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
(for ffmpeg)
sudo yum install git boost-devel python-devel java-1.8.0-openjdk-devel swig doxygen libxslt ffmpeg ffmpeg-devel gcc-c++ bzip2-devel tkinter python-pillow-tk
On Arch Linux (may be out of date):
sudo pacman -S --needed git gcc jdk8-openjdk swig doxygen ffmpeg
Install CMake (if newer version required for your platform which must be 3.8 or greater)
mkdir ~/cmake
cd ~/cmake
wget https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz
tar xvf cmake-3.11.0.tar.gz
cd cmake-3.11.0
./bootstrap
make -j4
sudo make install
Build Boost
mkdir ~/boost
cd ~/boost
wget http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.gz
tar xvf boost_1_66_0.tar.gz
cd boost_1_66_0
./bootstrap.sh --prefix=.
./b2 link=static cxxflags=-fPIC install
Install ALE: (optional - skip this if you don't want to provide ALE support)
git clone https://github.com/mgbellemare/Arcade-Learning-Environment.git ~/ALE
sudo apt-get install libsdl1.2-dev
(sudo dnf install SDL-devel zlib-devel
on Fedora, sudo pacman -S sdl zlib
on Arch Linux)cd ~/ALE
git checkout ed3431185a527c81e73f2d71c6c2a9eaec6c3f12 .
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RELEASE .
make
(If you don't want a GUI, use -DUSE_SDL=OFF
, or leave it unspecified - it's off by default.)export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/ALE/
to your ~/.bashrcsource ~/.bashrc
Note: To include ALE in your malmo build, add -DINCLUDE_ALE=ON
to your cmake command in step 10. If you stored your ALE directory somewhere other than ~/ALE, also add -DROOT_ALE_DIR=/path/to/your/ALE
Install necessary Python dependencies:
Build Malmo:
git clone https://github.com/Microsoft/malmo.git ~/MalmoPlatform
wget https://raw.githubusercontent.com/bitfehler/xs3p/1b71310dd1e8b9e4087cf6120856c5f701bd336b/xs3p.xsl -P ~/MalmoPlatform/Schemas
export MALMO_XSD_PATH=~/MalmoPlatform/Schemas
to your ~/.bashrc
and do source ~/.bashrc
cd ~/MalmoPlatform
mkdir build
cd build
cmake -DBoost_INCLUDE_DIR=/home/$USER/boost/boost_1_66_0/include -DCMAKE_BUILD_TYPE=Debug ..
cmake -DBoost_INCLUDE_DIR=/home/$USER/boost/boost_1_66_0/include -DCMAKE_BUILD_TYPE=Release ..
make install
install/Python_Examples
Test Malmo:
ctest
ctest -E Integration
to exclude the integration tests.ctest -VV
to get verbose output.Make a distributable:
cmake -DCMAKE_BUILD_TYPE=Release ..
make package
Project > Open/Import Project...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。