Last active
October 1, 2018 00:56
-
-
Save Fuyutsubaki/0403a5b46dd4ed28eec54e107ca49427 to your computer and use it in GitHub Desktop.
Opensiv3d linux をビルドしたような気分になれるdockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN sed -i.bak -e "s%http://archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list | |
# https://qiita.com/yagince/items/deba267f789604643bab | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y clang libx11-dev libopencv-dev libglib2.0-dev \ | |
libgio2.0-cil-dev libxi-dev libxinerama-dev libxcursor-dev \ | |
libxrandr-dev libopenal-dev freeglut3-dev libfreetype6-dev libturbojpeg0-dev \ | |
wget git cmake libfontconfig1-dev libudev-dev python-dev \ | |
libglew-dev libgif-dev libbox2d-dev libharfbuzz-dev \ | |
&& apt-get clean | |
RUN wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2 \ | |
&& tar --bzip2 -xf boost_1_68_0.tar.bz2 \ | |
&& ( cd boost_1_68_0 && ./bootstrap.sh --prefix="$HOME/boost" && ./b2 install ) \ | |
&& rm -rf boost_1_68_0.tar.bz2 boost_1_68_0 | |
RUN git clone --depth 1 -b linux https://github.com/Siv3D/OpenSiv3D.git && cd OpenSiv3D/Linux \ | |
&& ( mkdir Debug && cd Debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && CPATH="$HOME/boost/include" make ) | |
RUN mkdir -p OpenSiv3D/Linux/Test/build && cd OpenSiv3D/Linux/Test/build && cmake .. && LIBRARY_PATH="$HOME/boost/lib" CPATH="$HOME/boost/include" make | |
CMD cd OpenSiv3D/Linux/Test/build && LD_LIBRARY_PATH="$HOME/boost/lib" ./Siv3D_Test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment