Skip to content

Instantly share code, notes, and snippets.

@caio-vinicius
Created December 29, 2020 18:28
Show Gist options
  • Save caio-vinicius/c082bf00b6b2d3c8aeb58f038af9b210 to your computer and use it in GitHub Desktop.
Save caio-vinicius/c082bf00b6b2d3c8aeb58f038af9b210 to your computer and use it in GitHub Desktop.
git clone https://github.com/42Paris/minilibx-linux
cd minilibx-linux
apt-get install libxext-dev libxrandr-dev libx11-dev libbsd-dev libssl-dev
mv minilibx-linux/man/man1 to /usr/local/man/
mv minilibx-linux/libmlx.a to /usr/local/lib/
mv minilibx-linux/mlx.h to /usr/local/include/
# compile example
# clang -Wall -Wextra -Werror main.c -lbsd -lmlx lXext -lX11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment