added some beginner notes for compiling through cmake on Unix

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1564 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-03-19 14:50:44 +00:00
parent dbad51f95b
commit 3d935ff946

View File

@ -37,6 +37,11 @@ How to build freeglut on UNIX
- FreeBSD: cd /usr/ports/devel/cmake && make install - FreeBSD: cd /usr/ports/devel/cmake && make install
Or directly from their website: Or directly from their website:
http://www.cmake.org/cmake/resources/software.html http://www.cmake.org/cmake/resources/software.html
- 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 - Install XInput: libxi-dev / libXi-devel
- Run 'cmake .' in the freeglut directory to generate the makefile. - Run 'cmake .' in the freeglut directory to generate the makefile.
- Run 'make' to build, and 'make install' to install freeglut. - Run 'make' to build, and 'make install' to install freeglut.