summaryrefslogtreecommitdiff
path: root/INSTALL.org
blob: d2ac6f71bf69edfd5e607b1082aa6b07d5046e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
* 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

*** Freeimage

    Freeimage is to used to load textures.

    *Debian*

    #+BEGIN_SRC sh
      sudo apt-get install libfreeimage3
    #+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
     git clone https://github.com/davexunit/guile-2d.git
     cd guile-2d/
     ./autogen.sh
     ./configure --prefix=/usr
     make
     sudo make install
   #+END_SRC