42 school fract'ol project
The dependencies should already be installed by default.
Download Minilibx OpenGL tgz file from the project page and extract it.
cd /path/to/mlx
makeDownload the man files from the linux git repo below.
TODO: Add instructions for setting up manual
Copy files to /usr/ path
sudo cp libmlx.a /usr/local/lib/
sudo cp mlx.h /usr/local/include/After that, to compile your project:
gcc -Wall -Wextra -Werror main.c -lm -lmlx -framework OpenGL -framework AppKitInstall dependencies
sudo apt-get install libxext-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libx11-dev
sudo apt-get install libbsd-dev
sudo apt-get install libssl-devDownload and configure library
git clone https://github.com/42Paris/minilibx-linux.git
cd minilibx-linux
makeCreate manual directory
cd /usr/local/man/
sudo mkdir man1Return to the minilibx directory
cd /path/to/minilibx-linuxCopy files to /usr/ path
sudo cp man/man1/* /usr/local/man/man1/
sudo cp libmlx.a /usr/local/lib/
sudo cp mlx.h /usr/local/include/Test it, the following command must show the minilibx manual
man mlxAfter that, to compile your project:
gcc -Wall -Wextra -Werror main.c -lbsd -lmlx -lXext -lX11Rule of Thumb: On a linking command line, libraries go after object files, not before them.