summaryrefslogtreecommitdiff
path: root/README
blob: d5ee129055f1405938a1a13ed6ec7dd3ffb74de4 (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
Whale is an entry for the 2018 Blender 24-hour IRC compo

Whales / Doing Astrophysics / Crater Lake

It's a collaboration I did with some friends, we've called ourselves
"Hungrycat" (productions?) for this silly creation.

Note much of this code is forked from an earlier project I worked on
but never finished called Maladjusted.  No, I did not write all of this
in 24 hours, and I had a full night's rest during the competition.

Building from source:

 On GNU/Linux for GNU/Linux:

  ./bootstrap; mkdir build; cd build; ../configure; make

  Optionally with svg-cairo instead (like the release windows builds)

   ./bootstrap; mkdir build; cd build; ../configure --with-svg-cairo; make

 On GNU/Linux for Windows via MinGW-w64 w/static linking:

   ./bootstrap; mkdir build-win; cd build-win \
   LDFLAGS=-static PKG_CONFIG='x86_64-w64-mingw32-pkg-config --static' \
   PKG_CONFIG_PATH=/usr/local/cross-tools/x86_64-w64-mingw32/lib/pkgconfig \
   ../configure --host=x86_64-w64-mingw32 --with-svg-cairo

  The above assumed your mingw toolchain prefix is 'x86_64-w64-mingw32',
  the i686 build was configured using the following commandline:

   LDFLAGS=-static PKG_CONFIG='i686-w64-mingw32-pkg-config --static' \
   PKG_CONFIG_PATH=/usr/local/cross-tools/i686-w64-mingw32/lib/pkgconfig \
   ../configure --host=i686-w64-mingw32 --with-svg-cairo


Installing:

 Don't install this, that's silly, just run it in-tree.  I didn't even bother
 adding the assets to the automake stuff to support installation.

 Simply add a symlink to the assets directory, and run from the build root:

  cd build; ln -s ../assets; src/whale


Running:

 Just run without any arguments from a directory containing assets/

 On linux SDL is unable to raise the audio thread priority without either
 root privileges or the specific capability.  Don't run it as root, instead
 run this command on the executable:

  `sudo setcap 'cap_sys_nice=eip' whale-linux-amd64`

 - <vcaputo@pengaru.com> 4/15/2018
© All Rights Reserved