![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
Mandelbrot | Mandelbrot3 | Julia | CubicJulia | Newton | Bow |
Install dependencies
sudo apt update
sudo apt install git cmake make build-essential libx11-dev libglfw3-dev libglfw3 xorg-dev
Clone MLX42 repository
git clone https://github.com/codam-coding-college/MLX42.git
Build MLX42
cd MLX42
cmake -B build
cmake --build build -j4
cd ..
Clone fractol repository
git clone https://github.com/LucasOpoka/fractol.git
Build fractol Mandatory version - for those sets: Mandelbrot, Julia.
cd fractol
make
Build fractol Bonus version - for those sets: Mandelbrot, Julia, Newton, Bow, Mandelbrot3, CubicJulia.
cd fractol
make
Test run
./fractol Mandelbrot
Build Docker
docker build -t fractol - << EOF
FROM ubuntu
ENV DISPLAY=:0
RUN apt update && apt install -qqy x11-apps git cmake make build-essential libx11-dev libglfw3-dev libglfw3 xorg-dev
RUN git clone https://github.com/codam-coding-college/MLX42.git
RUN cd MLX42 && cmake -B build && cmake --build build -j4 && cd ..
RUN git clone https://github.com/LucasOpoka/fractol.git
WORKDIR /fractol
RUN make bonus
CMD ["./fractol", "CubicJulia"]
EOF
Run Docker
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -ti -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH fractol