|
From: <jt...@us...> - 2022-02-06 11:48:34
|
Revision: 1874
http://sourceforge.net/p/freeglut/code/1874
Author: jtsiomb
Date: 2022-02-06 11:48:31 +0000 (Sun, 06 Feb 2022)
Log Message:
-----------
updated install.php with simple cmake instructions
Modified Paths:
--------------
trunk/freeglut/web-src/docs/install.php
Modified: trunk/freeglut/web-src/docs/install.php
===================================================================
--- trunk/freeglut/web-src/docs/install.php 2022-02-06 11:23:35 UTC (rev 1873)
+++ trunk/freeglut/web-src/docs/install.php 2022-02-06 11:48:31 UTC (rev 1874)
@@ -11,41 +11,50 @@
<div class="textheader">How to install freeglut...</div>
<p>It's not *that* hard...</p>
-<p>Presently, there are few pre-packaged installs, so the recommended method for most users is to follow these instructions. Even if you have a package system that includes freeglut, you may wish to manually install for a variety of reasons. A likely reason is simply that the latest version of freeglut may not have been packaged.</p>
+<p>Presently, there are few pre-packaged installs, so the recommended method for most
+users is to follow these instructions. Even if you have a package system that includes
+freeglut, you may wish to manually install for a variety of reasons. A likely reason is
+simply that the latest version of freeglut may not have been packaged.</p>
-<p>So...</p>
+<p>The following are simple UNIX instructions, see <code>README.cmake</code> in the freeglut
+source distribution, for detailed instructions for your system.</p>
<div class="textheader">Download freeglut</div>
-<p>First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can. (On the other hand, if you discover a bug and want to report it, it is helpful to try to run the "current" freeglut, as we have been known to fix some bugs before they are reported.)</p>
+<p>First, you need to download a freeglut release. Newer is generally better, but unless
+you know what you're doing, you should use a release marked "Stable." So download the
+newest Stable release that you can. (On the other hand, if you discover a bug and want to
+report it, it is helpful to try to run the "current" freeglut, as we have been known to
+fix some bugs before they are reported.)</p>
+
<div class="textheader">Untar and configure the packages</div>
<p>Copy the tarball you downloaded into a temporary directory. Untar it as follows:</p>
-<pre>zcat freeglut-2.2.0.tar.bz2 | tar -vxf -</pre>
+<pre>tar xzvf freeglut-X.Y.Z.tar.gz</pre>
<div class="textheader">Change to the resulting directory:</div>
-<pre>cd freeglut-2.X.X</pre>
+<pre>cd freeglut-X.Y.Z</pre>
-<div class="textheader">Now, configure the packages:</div>
-<pre>./configure</pre>
+<div class="textheader">Create and change into a build directory:</div>
+<pre>
+mkdir build
+cd build
+</pre>
-<p>NetBSD users may need a slightly different command:</p>
+<div class="textheader">Run cmake to generate a Makefile</div>
+<pre>cmake ..</pre>
-<pre>LDFLAGS=-Wl,-R/usr/X11R6/lib ./configure</pre>
-
-<p>...to properly handle things.</p>
-
<div class="textheader">Build and install freeglut</div>
-<p>Once that completes, it's time to build and install freeglut (Note that you will have to be the superuser to make install).</p>
-
<p>This is as simple as:</p>
<pre>
-make all
-make install
+make
+sudo make install
</pre>
<p>This will install the libraries, headers, and symlinks to replace GLUT.</p>
+<p>For more complete build instructions for all operating systems, please see <code>README.cmake</code>.</p>
+
<p>For Android, please see the dedicated <a href="android.php">Android page</a>.</p>
<p>For BlackBerry support, please see <code>README.blackberry</code> in the project source code.</p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|