From: John F. Fay <johnffay@cy...> - 2009-02-13 02:44:21
Well, my situation is very simple:
(1) I do a Linux build every few months, if that often.
(2) Whenever I do a Linux build, I find that I have forgotten how to do it
and I need to spend hours digging through the e-mail archives trying to
find the instructions.
(3) I am sick and tired of (2).
At the moment I have put the instructions into the "README" file. I am
certainly open to other solutions.
From: Sven Panne
Sent: Thursday, February 12, 2009 1:32 PM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer]
Am Dienstag, 3. Februar 2009 22:14:04 schrieb John-John Tedro:
> This is the standard way for builing any project using autotools, and
> is already a script for doing the generation called autoreconf which does
> the four first line (and is very verbose about project errors).
A little bit more explanations:
As already mentioned above, the canonical way to build and install an
autotools project is simply "./configure && make install". The configure
script can usually take tons of option for tweaking paths, optimization
levels, inclusion/exclusion of features, etc., so there is no point in
this call into another script.
For developers working on sources directly from SVN, an additional step has
be done before that to generate the configure script itself, related
Makefile templates, etc., because these are all *generated* files and
therefore *never* be under version control (well, unless one is very fond
inconsistencies which would otherwise arise sooner or later ;-). This
step is done via "autoreconf" or in the case of freeglut via
which is a simple shell wrapper for autoreconf with a few sensible options.
source distribution (done via "make dist") contains the generated files, so
this step is not needed for normal users.
In a nutshell, the common use cases are:
* Initial build steps for a freeglut developer after a checkout:
"./autogen.sh && ./configure && make"
After that, simply calling "make" is enough.
* Build a source release after a fresh checkout:
"./autogen.sh && ./configure && make dist"
* Steps for a normal user after unpacking a source release:
"./configure && make install"
* Installing with default paths (i.e. below /usr/local) will probably
root privileges, so using
"./configure --prefix=/home/johndoe/myfreeglut && make install"
is another common way.
Freeglut-developer mailing list