Skip to content

Installation

Before building, make sure you have:

  • a Linux environment with an active X11 session
  • cc
  • make
  • X11 runtime and development libraries
  • local minilibx/ sources (already in this repo)
  • local libft/ sources (already in this repo and built automatically by the Makefile)

Optional but recommended:

  • valgrind
  • nm (used in bonus test checks)

Build mandatory:

Terminal window
make

Build bonus:

Terminal window
make bonus

Useful rebuild commands:

Terminal window
make clean
make fclean
make re
make rebonus

Expected binaries:

  • ./cub3D
  • ./cub3D_bonus

Run mandatory:

Terminal window
./cub3D tests/mandatory/validation/good.cub

Run bonus:

Terminal window
./cub3D_bonus tests/bonus/retro_small.cub

After first launch, verify these points immediately:

  • the window opens correctly
  • ESC closes the program cleanly
  • movement and rotation react to inputs
  • no instant crash on valid map
  • invalid input (no arg, wrong extension, bad map) returns Error\n...

If mlx_init failed, check your graphical X11 session/environment first.