-
Notifications
You must be signed in to change notification settings - Fork 48
Building on ubuntu linux
razermackham edited this page Feb 2, 2023
·
5 revisions
A quick guide to compiling meka for ubuntu linux
# Dockerfile
FROM docker.io/ubuntu:22.04
RUN apt update && apt install -y \
cmake \
build-essential \
liballegro-audio5-dev \
liballegro-image5-dev \
liballegro-ttf5-dev \
liballegro5-dev \
git
WORKDIR /root
RUN git clone https://github.com/ocornut/meka.git
WORKDIR /root/meka/meka/srcs
RUN make
WORKDIR /root/meka/meka/
CMD ./meka
please note, this does install some packages for allegro that might be unneeded
To make meka compile we need to install allegro first
-- Information about manually building allegro:
-- http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Linux/Debian
open a terminal window:
sudo apt-get install build-essential git cmake xorg-dev libgl1-mesa-dev libglu-dev
sudo apt-get install libpng-dev libcurl4-gnutls-dev libfreetype6-dev libjpeg-dev
sudo apt-get install libvorbis-dev libopenal-dev libphysfs-dev
sudo apt-get install libgtk2.0-dev libasound-dev libpulse-dev libflac-dev libdumb1-dev
sudo apt-get install exuberant-ctags dvi2ps dvipdfmx latex2html pandoc
sudo git clone https://github.com/liballeg/allegro5.git
cd allegro
sudo git checkout 5.0
sudo mkdir build
cd build
sudo cmake ..
sudo make
sudo make install
sudo ldconfig
Now we need to get the latest meka source code:
sudo git clone https://github.com/ocornut/meka.git
This will make a meka directory in your folder
cd meka
cd srcs
make
cd ..
./meka