80.3.30
by Trystan
reverted INSTALL |
1 |
__ _ _____ ______ _ _ _______ _______ _ _ _______ ______ _______ |
2 |
| \ | | | ____ |_____| | |______ |_____| |_____| | \ |______ |
|
3 |
| \_| __|__ |_____| | | | ______| | | | | |_____/ |______ |
|
4 |
||
5 |
||
6 |
http://www.nightshadesoftware.org |
|
7 |
||
8 |
NIGHTSHADE INSTALLATION INSTRUCTIONS |
|
9 |
||
10 |
===============================================================================
|
|
11 |
BINARY INSTALLATION |
|
12 |
===============================================================================
|
|
13 |
Most users will prefer using precompiled binary packages: |
|
14 |
||
15 |
- WINDOWS USERS : |
|
16 |
Run the setup.exe and follow the instructions. |
|
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
17 |
|
80.3.30
by Trystan
reverted INSTALL |
18 |
- MACOSX USERS : |
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
19 |
Versions beginning with 10.11.1 are available as binary installers for Intel |
128.7.15
by Trystan
updated version info in Changelog and INSTALL |
20 |
based Macs. Only Snow Leapard has been tested but Leopard is expected to work. |
128.7.4
by Trystan
updated changelog and INSTALL |
21 |
Version 10.2.1 is available via Macports as described below. |
22 |
||
80.3.30
by Trystan
reverted INSTALL |
23 |
- LINUX USERS : |
24 |
Look for the binary package matching your distribution or build from source. |
|
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
25 |
|
80.3.30
by Trystan
reverted INSTALL |
26 |
|
27 |
===============================================================================
|
|
28 |
COMPILATION from the source package (nightshade-XXX.tgz) |
|
29 |
===============================================================================
|
|
30 |
||
31 |
If you can't find a suited binary package or if you are curious you can also |
|
32 |
compile the software by yourself.
|
|
33 |
||
34 |
Compilation and installation have been successfuly tested on many plateforms
|
|
35 |
and OS (including windows). These are general explanations for any architec-
|
|
36 |
tures. Special (tricky) cases are described below.
|
|
37 |
||
38 |
To compile nightshade, you will need the following development libraries :
|
|
39 |
- openGL - (libgl-dev on linux, libopengl32 on win32)
|
|
140.1.7
by Trystan
updated install instructions for additional graphicsmagick library and dependencies |
40 |
- GLU - (libglu-dev on linux libglu32 on win32)
|
41 |
- SDL - www.libsdl.org (libsdl-dev)
|
|
42 |
- Zlib - www.zlib.net (zlib-dev)
|
|
43 |
- PNG - www.libpng.org (libpng-dev)
|
|
44 |
- JPEG - www.ijg.org (libjpeg-dev)
|
|
45 |
- TIFF - www.libtiff.org (libtiff-dev)
|
|
46 |
- GraphicsMagick++ - www.graphicsmagick.org
|
|
47 |
- SDL_Pango - for font rendering
|
|
48 |
- SDL-mixer - this is optional, but required to enable sound support (libsdl-mixer-dev)
|
|
49 |
- boost - www.boost.org (minimum version 1.35, 1.42+ is highly recommended)
|
|
50 |
- FastDB - http://sourceforge.net/projects/fastdb/files/fastdb/
|
|
194
by trystan at digitaliseducation
updated INSTALL with additional info for building the required version of FastDB |
51 |
- Download version 3.64, newer versions are not supported. On newer compilers,
|
52 |
the -fpermissive flag must be added to the compiler flags. For example,
|
|
53 |
`./configure CPPFLAGS=-fpermissive` then `make`.
|
|
54 |
-Finally, the FastDB build system installs headers that it shouldn't. |
|
55 |
Remove or rename the config.h and acconfig.h headers from the fastdb include |
|
56 |
directory; typically found in /usr/local/include/fastdb or Nightshade may fail |
|
57 |
to build. |
|
58 |
||
104.2.6
by Trystan
updated install instructions |
59 |
Now compile nightshade sources |
60 |
~$ cd nightshade-XXX |
|
61 |
~$ ./configure |
|
80.3.30
by Trystan
reverted INSTALL |
62 |
~$ make |
63 |
||
64 |
then to launch the local version of the program type |
|
65 |
~$ ./src/nightshade |
|
66 |
||
67 |
to fully install nightshade (so that it will be launchable from everywhere) |
|
80.2.42
by Trystan Larey-Williams
INSTALL file updates for 10.5.1 |
68 |
~$ sudo make install |
69 |
||
80.3.30
by Trystan
reverted INSTALL |
70 |
once installed you may want to clean the build directory |
71 |
~$ make clean |
|
72 |
||
73 |
If you want to uninstall nightshade, type as root |
|
74 |
~$ make uninstall |
|
75 |
||
76 |
===============================================================================
|
|
77 |
Install from Macports for MACOSX |
|
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
78 |
===============================================================================
|
80.3.30
by Trystan
reverted INSTALL |
79 |
|
80 |
For Intel/OSX based Macs, Nightshade can be built from the source code similar |
|
80.2.42
by Trystan Larey-Williams
INSTALL file updates for 10.5.1 |
81 |
to the instructions above. |
82 |
||
83 |
Nightshade is included in Macports, which greatly simplifies installing Nightshade. |
|
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
84 |
|
104.2.3
by Trystan
updated OSX install instructions (XCode requirement) |
85 |
** Ensure the latest version of XCode tools is installed for your Mac. |
86 |
-Available http://develper.apple.com/technologies/tools/xcode.html. ** |
|
87 |
||
88 |
1. Install Macports from http://www.macports.org/install.php. |
|
114
by Rob Spearman
Cleaned up INSTALL file for Macports release |
89 |
|
90 |
2. Open a command prompt. |
|
91 |
||
92 |
3. Type the following: sudo port install nightshade |
|
93 |
||
94 |
4. You will be prompted for the administrator's password. |
|
95 |
||
96 |
5. Depending on your system, several dependencies may need to be installed
|
|
97 |
prior to Nightshade, please be patient while installation proceeds.
|
|
98 |
||
99 |
||
100 |
If you want to compile from source, for example if the Macports install is not
|
|
101 |
the current version, you can now follow the compiling from source instructions
|
|
102 |
above.*
|
|
103 |
||
80.3.30
by Trystan
reverted INSTALL |
104 |
* Note, by default macports installs libraries and include files to '/opt/local'. |
104.2.6
by Trystan
updated install instructions |
105 |
It may be necessary to invoke the configure script as shown below.
|
106 |
env CPPFLAGS='/opt/local/include' ./configure |
|
107 |
||
108 |
===============================================================================
|
|
80.3.30
by Trystan
reverted INSTALL |
109 |
Special instructions for COMPILATION on WINDOWS (XP) with MinGW |
110 |
===============================================================================
|
|
111 |
||
112 |
Please see INSTALL.WIN32 |
|
80.2.42
by Trystan Larey-Williams
INSTALL file updates for 10.5.1 |
113 |
|
80.3.30
by Trystan
reverted INSTALL |
114 |
===============================================================================
|
115 |
COMPILATION (and modification) from the BZR sources |
|
116 |
===============================================================================
|
|
117 |
||
118 |
You can get the latest bzr repository code from LaunchPad. However with this BZR |
|
119 |
version no correct behaviour is garanteed. It is mainly intended for use by |
|
120 |
developers. |
|
121 |
||
122 |
You can browse the BZR tree at http://code.launchpad.net/nightshade |
|
123 |
||
124 |
To create your own local branch (assuming you have installed bzr) type in |
|
125 |
a console: |
|
126 |
||
127 |
~$ bzr branch lp:nightshade nightshade |
|
128 |
||
129 |
then to compile type: |
|
130 |
~$ cd nightshade |
|
131 |
~$ ./autogen.sh |
|
132 |
~$ ./configure |
|
133 |
~$ make |
|
134 |
||
135 |
then to launch the local version of the program type |
|
136 |
~$ ./src/nightshade |
|
137 |
||
138 |
You can now have a look at the src/ directory where you will find the source files. |
|
139 |
Edit whatever you want in it and when your new great feature is done you will need |
|
140 |
to share it with the community of nightshade developers. |
|
141 |
||
142 |
To save a revision locally, type: |
|
143 |
||
144 |
~$ bzr commit -m "Some comment about your change" |
|
145 |
||
146 |
While you are working you can get new changes from the main trunk by typing: |
|
147 |
||
148 |
~$ bzr merge |
|
149 |
||
150 |
When you are satisfied with your changes, an official developer will need to review |
|
151 |
your changes for inclusion. But as you are not an official developer (yet!) you |
|
152 |
will need to create a patch file which will contain all the changes you did on the |
|
153 |
source code. |
|
154 |
||
155 |
~$ bzr send -o description-of-my-change.patch |
|
156 |
||
157 |
Then email the patch to support@nightshadesoftware.org! |
|
158 |
||
159 |
||
160 |
||
161 |
||
49
by Rob Spearman
Cleaned up install and hacking instructions |
162 |