summaryrefslogtreecommitdiff
path: root/INSTALL.org
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-09-04 18:58:31 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-09-04 18:58:31 -0400
commit609d47c5939d784969fcd04dee6ee1e7ace9694d (patch)
treef63e0e49ad426bd1bdff0555879b66f79779fb9a /INSTALL.org
parent731d34256b5fe7c317f537edefe6cd2f1d0c3186 (diff)
Add installation guide.
Diffstat (limited to 'INSTALL.org')
-rw-r--r--INSTALL.org88
1 files changed, 88 insertions, 0 deletions
diff --git a/INSTALL.org b/INSTALL.org
new file mode 100644
index 0000000..2376d5b
--- /dev/null
+++ b/INSTALL.org
@@ -0,0 +1,88 @@
+* Installation Instructions
+
+ Installing guile-2d is rather easy (but not easy enough) if you are
+ on a GNU/Linux system. Currently, only installation instructions for
+ Debian are provided, but the non-apt commands should work without
+ any modifications on any GNU/Linux distro.
+
+ This installation guide assumes that you have the GNU build system
+ and git installed.
+
+** Install dependencies
+
+*** SDL
+ SDL is a very popular, cross-platform game library.
+
+ *Debian*
+
+ #+BEGIN_SRC sh
+ sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev
+ #+END_SRC
+
+*** FTGL
+
+ FTGL renders fonts in OpenGL using the Freetype2 library.
+
+ *Debian*
+
+ #+BEGIN_SRC sh
+ sudo apt-get install libftgl2
+ #+END_SRC
+
+*** guile-sdl
+
+ guile-sdl is the GNU Guile wrapper for SDL.
+
+ Grab the latest release tarball from http://www.gnu.org/software/guile-sdl/.
+
+ *Debian*
+
+ #+BEGIN_SRC sh
+ tar zxf guile-sdl-<version>
+ cd guile-sdl-<version>/
+ ./configure --prefix=/usr
+ make
+ sudo make install
+ #+END_SRC
+
+ *OS X*
+
+ guile-sdl is currently broken on OS X. Please see this issue for
+ more information: https://github.com/davexunit/guile-2d/issues/2
+
+*** guile-figl
+
+ FIGL can be problematic, since it's an as-of-yet unreleased
+ library.
+
+ *Debian*
+
+ #+BEGIN_SRC sh
+ git clone https://gitorious.org/guile-figl/guile-figl
+ cd guile-figl
+ autoreconf -vif
+ ./configure --prefix=/usr
+ make
+ sudo make install
+ #+END_SRC
+
+ You will probably encounter a syntax error in the
+ /low-level-gl.texi/ file. To fix it, you will need to join the
+ lines 19152 and 19153 together. There are a lot of warnings that
+ get output, but only one fatal error. The documentation is
+ auto-generated from the OpenGL docs and it seems that there are
+ still a few bugs in the generator.
+
+** Install guile-2d
+
+ Once the dependencies have been installed, installing guile-2d is
+ pretty straightforward.
+
+ *Debian*
+
+ #+BEGIN_SRC sh
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+ sudo make install
+ #+END_SRC