X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=README.cmake;h=4b3962d845ec380d8e579ac9d70485ea1e4d12df;hb=bbab633540758fcd520c94370db9f5fb6bb01bc3;hp=ffd387e682a03d41c3fcdfac4291d48168d51e68;hpb=cd0898cee3e8d093c4edbafd87aa66661cdbce46;p=freeglut diff --git a/README.cmake b/README.cmake index ffd387e..4b3962d 100644 --- a/README.cmake +++ b/README.cmake @@ -40,10 +40,14 @@ How to build freeglut on UNIX - Make sure you have the basics for compiling code, such as C compiler (e.g., GCC) and the make package. - Also make sure you have packages installed that provide the relevant - header files for x11 (including xrandr) and opengl (e.g., - libgl1-mesa-dev, libx11-dev and libxrandr-dev on Debian/Ubuntu). -- Install XInput: libxi-dev / libXi-devel -- Run 'cmake .' in the freeglut directory to generate the makefile. + header files for opengl (e.g., libgl1-mesa-dev on Debian/Ubuntu) and + the chosen backend : + - X11: x11 (e.g., libx11-dev, libxrandr-devel on Debian/Ubuntu) and + XInput (libxi-dev / libXi-devel) + - Wayland: wayland (e.g., libwayland-dev and libegl1-mesa-dev on + Debian/Ubuntu) and xkbcommon (libxkbcommon-dev /libxkbcommon-devel) +- Run 'cmake .' (or 'cmake . -DFREEGLUT_WAYLAND=ON' for Wayland) in the + freeglut directory to generate the makefile. - Run 'make' to build, and 'make install' to install freeglut. - If you wish to change any build options run 'ccmake .' @@ -59,6 +63,8 @@ FREEGLUT_BUILD_SHARED_LIBS [ON, OFF] Build freeglut as a shared library FREEGLUT_BUILD_STATIC_LIBS [ON, OFF] Build freeglut as a static library FREEGLUT_GLES [ON, OFF] Link with GLEs libraries instead of OpenGL +FREEGLUT_WAYLAND [ON, OFF] Link with Wayland libraries instead + of X11 FREEGLUT_PRINT_ERRORS [ON, OFF] Controls whether errors are default handled or not when user does not provide an error callback