| 1 |
Exult Installation |
| 2 |
================== |
| 3 |
|
| 4 |
If you're reading this you have either downloaded a source distribution and |
| 5 |
untarred it, or you've checked out the latest master from Git. Good. |
| 6 |
Make sure you have the following things installed (and make sure you install the devel |
| 7 |
packages if you use a packet manager): |
| 8 |
|
| 9 |
- SDL |
| 10 |
The Simple DirectMedia Library by Sam Lantinga of Loki Games. |
| 11 |
http://www.libsdl.org |
| 12 |
|
| 13 |
- OGG Vorbis |
| 14 |
Fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed |
| 15 |
audio format for audio and music. |
| 16 |
http://www.vorbis.com/ |
| 17 |
|
| 18 |
- zlib |
| 19 |
Free, general-purpose, legally unencumbered, lossless data-compression library. |
| 20 |
http://www.zlib.net/ |
| 21 |
|
| 22 |
- Timidity patches |
| 23 |
If you want MIDI music, Exult needs Timidity patches. |
| 24 |
Your distribution might already provide these. |
| 25 |
|
| 26 |
http://sca.uwaterloo.ca/www.cgs.fi/tt/timidity/ |
| 27 |
|
| 28 |
Make sure you get the sound patches required by this (also |
| 29 |
known as GUS patches) |
| 30 |
http://www.libsdl.org/projects/SDL_mixer/timidity/timidity.tar.gz |
| 31 |
|
| 32 |
|
| 33 |
If you're building from Git you'll also need recent versions of: |
| 34 |
|
| 35 |
automake |
| 36 |
autoconf |
| 37 |
autoconf-archive |
| 38 |
libtool |
| 39 |
|
| 40 |
Look at the top directory, and check whether configure exists. |
| 41 |
If it does not, then configure.ac should exist, and then you should type, |
| 42 |
in the top directory, to create configure, |
| 43 |
|
| 44 |
autoreconf -v -i |
| 45 |
|
| 46 |
Got everything? Excellent. Now you can build your own binary of Exult. |
| 47 |
From the top directory type the following: |
| 48 |
|
| 49 |
./configure |
| 50 |
make |
| 51 |
|
| 52 |
If everything goes well, you should end up with an 'exult' binary. |
| 53 |
See the documentation at https://exult.info/docs.php or |
| 54 |
the included README file for information on how to create an exult |
| 55 |
config file to indicate where you have installed Ultima VII, and you're |
| 56 |
ready to run Exult. |
| 57 |
|
| 58 |
Please report any bugs on Exult's SourceForge bug-tracking system: |
| 59 |
|
| 60 |
https://github.com/exult/exult/issues |
| 61 |
|
| 62 |
If you want to work on Exult, just contact us on the Exult developer's |
| 63 |
mailing list: |
| 64 |
|
| 65 |
http://lists.sourceforge.net/mailman/listinfo/exult-general |
| 66 |
|
| 67 |
-------------------------------------------------- |
| 68 |
|
| 69 |
Exult Studio Installation |
| 70 |
========================= |
| 71 |
|
| 72 |
To compile Exult Studio you additionally need to install: |
| 73 |
|
| 74 |
- libglade |
| 75 |
a library that provides interfaces for loading graphical interfaces described |
| 76 |
in glade xml files and for accessing the widgets built in the loading process. |
| 77 |
Libglade depends on many other programs and libraries (gtk+, pango, cairo...), |
| 78 |
so best install it via a package manager (but make sure you install the devel |
| 79 |
package) to get everything you need. |
| 80 |
http://library.gnome.org/devel/libglade/stable/ |
| 81 |
|
| 82 |
Now follow the above steps to build Exult, only add the switch --enable-exult-studio |
| 83 |
to the configure step: |
| 84 |
|
| 85 |
autoreconf -v -i |
| 86 |
./configure --enable-exult-studio |
| 87 |
make |
| 88 |
|
| 89 |
-------------------------------------------------- |
| 90 |
|
| 91 |
Usecode Compiler |
| 92 |
================ |
| 93 |
|
| 94 |
Our Usecode compiler also needs: |
| 95 |
|
| 96 |
- Flex |
| 97 |
a tool for generating programs that require |
| 98 |
pattern-matching on text. It is usually used together with |
| 99 |
yacc/bison to automatically generate a parser for a |
| 100 |
language grammar, e.g. the syntax of a configuration file. |
| 101 |
http://flex.sourceforge.net/ |
| 102 |
|
| 103 |
- Bison |
| 104 |
a general-purpose parser generator that converts |
| 105 |
a grammar description for an LALR context-free grammar |
| 106 |
into a C program to parse that grammar. Once you are |
| 107 |
proficient with Bison, you can use it to develop a wide |
| 108 |
range of language parsers, from those used in simple desk |
| 109 |
calculators to complex programming languages. |
| 110 |
http://www.gnu.org/software/bison/ |
| 111 |
|
| 112 |
You only need to add the switch --enable-compiler |
| 113 |
to the configure step. |
| 114 |
|
| 115 |
-------------------------------------------------- |
| 116 |
|
| 117 |
Installation Instructions |
| 118 |
************************* |
| 119 |
|
| 120 |
Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free |
| 121 |
Software Foundation, Inc. |
| 122 |
|
| 123 |
Copying and distribution of this file, with or without modification, |
| 124 |
are permitted in any medium without royalty provided the copyright |
| 125 |
notice and this notice are preserved. This file is offered as-is, |
| 126 |
without warranty of any kind. |
| 127 |
|
| 128 |
Basic Installation |
| 129 |
================== |
| 130 |
|
| 131 |
Briefly, the shell command './configure && make && make install' |
| 132 |
should configure, build, and install this package. The following |
| 133 |
more-detailed instructions are generic; see the 'README' file for |
| 134 |
instructions specific to this package. Some packages provide this |
| 135 |
'INSTALL' file but do not implement all of the features documented |
| 136 |
below. The lack of an optional feature in a given package is not |
| 137 |
necessarily a bug. More recommendations for GNU packages can be found |
| 138 |
in *note Makefile Conventions: (standards)Makefile Conventions. |
| 139 |
|
| 140 |
The 'configure' shell script attempts to guess correct values for |
| 141 |
various system-dependent variables used during compilation. It uses |
| 142 |
those values to create a 'Makefile' in each directory of the package. |
| 143 |
It may also create one or more '.h' files containing system-dependent |
| 144 |
definitions. Finally, it creates a shell script 'config.status' that |
| 145 |
you can run in the future to recreate the current configuration, and a |
| 146 |
file 'config.log' containing compiler output (useful mainly for |
| 147 |
debugging 'configure'). |
| 148 |
|
| 149 |
It can also use an optional file (typically called 'config.cache' and |
| 150 |
enabled with '--cache-file=config.cache' or simply '-C') that saves the |
| 151 |
results of its tests to speed up reconfiguring. Caching is disabled by |
| 152 |
default to prevent problems with accidental use of stale cache files. |
| 153 |
|
| 154 |
If you need to do unusual things to compile the package, please try |
| 155 |
to figure out how 'configure' could check whether to do them, and mail |
| 156 |
diffs or instructions to the address given in the 'README' so they can |
| 157 |
be considered for the next release. If you are using the cache, and at |
| 158 |
some point 'config.cache' contains results you don't want to keep, you |
| 159 |
may remove or edit it. |
| 160 |
|
| 161 |
The file 'configure.ac' (or 'configure.in') is used to create |
| 162 |
'configure' by a program called 'autoconf'. You need 'configure.ac' if |
| 163 |
you want to change it or regenerate 'configure' using a newer version of |
| 164 |
'autoconf'. |
| 165 |
|
| 166 |
The simplest way to compile this package is: |
| 167 |
|
| 168 |
1. 'cd' to the directory containing the package's source code and type |
| 169 |
'./configure' to configure the package for your system. |
| 170 |
|
| 171 |
Running 'configure' might take a while. While running, it prints |
| 172 |
some messages telling which features it is checking for. |
| 173 |
|
| 174 |
2. Type 'make' to compile the package. |
| 175 |
|
| 176 |
3. Optionally, type 'make check' to run any self-tests that come with |
| 177 |
the package, generally using the just-built uninstalled binaries. |
| 178 |
|
| 179 |
4. Type 'make install' to install the programs and any data files and |
| 180 |
documentation. When installing into a prefix owned by root, it is |
| 181 |
recommended that the package be configured and built as a regular |
| 182 |
user, and only the 'make install' phase executed with root |
| 183 |
privileges. |
| 184 |
|
| 185 |
5. Optionally, type 'make installcheck' to repeat any self-tests, but |
| 186 |
this time using the binaries in their final installed location. |
| 187 |
This target does not install anything. Running this target as a |
| 188 |
regular user, particularly if the prior 'make install' required |
| 189 |
root privileges, verifies that the installation completed |
| 190 |
correctly. |
| 191 |
|
| 192 |
6. You can remove the program binaries and object files from the |
| 193 |
source code directory by typing 'make clean'. To also remove the |
| 194 |
files that 'configure' created (so you can compile the package for |
| 195 |
a different kind of computer), type 'make distclean'. There is |
| 196 |
also a 'make maintainer-clean' target, but that is intended mainly |
| 197 |
for the package's developers. If you use it, you may have to get |
| 198 |
all sorts of other programs in order to regenerate files that came |
| 199 |
with the distribution. |
| 200 |
|
| 201 |
7. Often, you can also type 'make uninstall' to remove the installed |
| 202 |
files again. In practice, not all packages have tested that |
| 203 |
uninstallation works correctly, even though it is required by the |
| 204 |
GNU Coding Standards. |
| 205 |
|
| 206 |
8. Some packages, particularly those that use Automake, provide 'make |
| 207 |
distcheck', which can by used by developers to test that all other |
| 208 |
targets like 'make install' and 'make uninstall' work correctly. |
| 209 |
This target is generally not run by end users. |
| 210 |
|
| 211 |
Compilers and Options |
| 212 |
===================== |
| 213 |
|
| 214 |
Some systems require unusual options for compilation or linking that |
| 215 |
the 'configure' script does not know about. Run './configure --help' |
| 216 |
for details on some of the pertinent environment variables. |
| 217 |
|
| 218 |
You can give 'configure' initial values for configuration parameters |
| 219 |
by setting variables in the command line or in the environment. Here is |
| 220 |
an example: |
| 221 |
|
| 222 |
./configure CC=c99 CFLAGS=-g LIBS=-lposix |
| 223 |
|
| 224 |
*Note Defining Variables::, for more details. |
| 225 |
|
| 226 |
Compiling For Multiple Architectures |
| 227 |
==================================== |
| 228 |
|
| 229 |
You can compile the package for more than one kind of computer at the |
| 230 |
same time, by placing the object files for each architecture in their |
| 231 |
own directory. To do this, you can use GNU 'make'. 'cd' to the |
| 232 |
directory where you want the object files and executables to go and run |
| 233 |
the 'configure' script. 'configure' automatically checks for the source |
| 234 |
code in the directory that 'configure' is in and in '..'. This is known |
| 235 |
as a "VPATH" build. |
| 236 |
|
| 237 |
With a non-GNU 'make', it is safer to compile the package for one |
| 238 |
architecture at a time in the source code directory. After you have |
| 239 |
installed the package for one architecture, use 'make distclean' before |
| 240 |
reconfiguring for another architecture. |
| 241 |
|
| 242 |
On MacOS X 10.5 and later systems, you can create libraries and |
| 243 |
executables that work on multiple system types--known as "fat" or |
| 244 |
"universal" binaries--by specifying multiple '-arch' options to the |
| 245 |
compiler but only a single '-arch' option to the preprocessor. Like |
| 246 |
this: |
| 247 |
|
| 248 |
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
| 249 |
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
| 250 |
CPP="gcc -E" CXXCPP="g++ -E" |
| 251 |
|
| 252 |
This is not guaranteed to produce working output in all cases, you |
| 253 |
may have to build one architecture at a time and combine the results |
| 254 |
using the 'lipo' tool if you have problems. |
| 255 |
|
| 256 |
Installation Names |
| 257 |
================== |
| 258 |
|
| 259 |
By default, 'make install' installs the package's commands under |
| 260 |
'/usr/local/bin', include files under '/usr/local/include', etc. You |
| 261 |
can specify an installation prefix other than '/usr/local' by giving |
| 262 |
'configure' the option '--prefix=PREFIX', where PREFIX must be an |
| 263 |
absolute file name. |
| 264 |
|
| 265 |
You can specify separate installation prefixes for |
| 266 |
architecture-specific files and architecture-independent files. If you |
| 267 |
pass the option '--exec-prefix=PREFIX' to 'configure', the package uses |
| 268 |
PREFIX as the prefix for installing programs and libraries. |
| 269 |
Documentation and other data files still use the regular prefix. |
| 270 |
|
| 271 |
In addition, if you use an unusual directory layout you can give |
| 272 |
options like '--bindir=DIR' to specify different values for particular |
| 273 |
kinds of files. Run 'configure --help' for a list of the directories |
| 274 |
you can set and what kinds of files go in them. In general, the default |
| 275 |
for these options is expressed in terms of '${prefix}', so that |
| 276 |
specifying just '--prefix' will affect all of the other directory |
| 277 |
specifications that were not explicitly provided. |
| 278 |
|
| 279 |
The most portable way to affect installation locations is to pass the |
| 280 |
correct locations to 'configure'; however, many packages provide one or |
| 281 |
both of the following shortcuts of passing variable assignments to the |
| 282 |
'make install' command line to change installation locations without |
| 283 |
having to reconfigure or recompile. |
| 284 |
|
| 285 |
The first method involves providing an override variable for each |
| 286 |
affected directory. For example, 'make install |
| 287 |
prefix=/alternate/directory' will choose an alternate location for all |
| 288 |
directory configuration variables that were expressed in terms of |
| 289 |
'${prefix}'. Any directories that were specified during 'configure', |
| 290 |
but not in terms of '${prefix}', must each be overridden at install time |
| 291 |
for the entire installation to be relocated. The approach of makefile |
| 292 |
variable overrides for each directory variable is required by the GNU |
| 293 |
Coding Standards, and ideally causes no recompilation. However, some |
| 294 |
platforms have known limitations with the semantics of shared libraries |
| 295 |
that end up requiring recompilation when using this method, particularly |
| 296 |
noticeable in packages that use GNU Libtool. |
| 297 |
|
| 298 |
The second method involves providing the 'DESTDIR' variable. For |
| 299 |
example, 'make install DESTDIR=/alternate/directory' will prepend |
| 300 |
'/alternate/directory' before all installation names. The approach of |
| 301 |
'DESTDIR' overrides is not required by the GNU Coding Standards, and |
| 302 |
does not work on platforms that have drive letters. On the other hand, |
| 303 |
it does better at avoiding recompilation issues, and works well even |
| 304 |
when some directory options were not specified in terms of '${prefix}' |
| 305 |
at 'configure' time. |
| 306 |
|
| 307 |
Optional Features |
| 308 |
================= |
| 309 |
|
| 310 |
If the package supports it, you can cause programs to be installed |
| 311 |
with an extra prefix or suffix on their names by giving 'configure' the |
| 312 |
option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. |
| 313 |
|
| 314 |
Some packages pay attention to '--enable-FEATURE' options to |
| 315 |
'configure', where FEATURE indicates an optional part of the package. |
| 316 |
They may also pay attention to '--with-PACKAGE' options, where PACKAGE |
| 317 |
is something like 'gnu-as' or 'x' (for the X Window System). The |
| 318 |
'README' should mention any '--enable-' and '--with-' options that the |
| 319 |
package recognizes. |
| 320 |
|
| 321 |
For packages that use the X Window System, 'configure' can usually |
| 322 |
find the X include and library files automatically, but if it doesn't, |
| 323 |
you can use the 'configure' options '--x-includes=DIR' and |
| 324 |
'--x-libraries=DIR' to specify their locations. |
| 325 |
|
| 326 |
Some packages offer the ability to configure how verbose the |
| 327 |
execution of 'make' will be. For these packages, running './configure |
| 328 |
--enable-silent-rules' sets the default to minimal output, which can be |
| 329 |
overridden with 'make V=1'; while running './configure |
| 330 |
--disable-silent-rules' sets the default to verbose, which can be |
| 331 |
overridden with 'make V=0'. |
| 332 |
|
| 333 |
Particular systems |
| 334 |
================== |
| 335 |
|
| 336 |
On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC |
| 337 |
is not installed, it is recommended to use the following options in |
| 338 |
order to use an ANSI C compiler: |
| 339 |
|
| 340 |
./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
| 341 |
|
| 342 |
and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
| 343 |
|
| 344 |
HP-UX 'make' updates targets which have the same timestamps as their |
| 345 |
prerequisites, which makes it generally unusable when shipped generated |
| 346 |
files such as 'configure' are involved. Use GNU 'make' instead. |
| 347 |
|
| 348 |
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
| 349 |
parse its '<wchar.h>' header file. The option '-nodtk' can be used as a |
| 350 |
workaround. If GNU CC is not installed, it is therefore recommended to |
| 351 |
try |
| 352 |
|
| 353 |
./configure CC="cc" |
| 354 |
|
| 355 |
and if that doesn't work, try |
| 356 |
|
| 357 |
./configure CC="cc -nodtk" |
| 358 |
|
| 359 |
On Solaris, don't put '/usr/ucb' early in your 'PATH'. This |
| 360 |
directory contains several dysfunctional programs; working variants of |
| 361 |
these programs are available in '/usr/bin'. So, if you need '/usr/ucb' |
| 362 |
in your 'PATH', put it _after_ '/usr/bin'. |
| 363 |
|
| 364 |
On Haiku, software installed for all users goes in '/boot/common', |
| 365 |
not '/usr/local'. It is recommended to use the following options: |
| 366 |
|
| 367 |
./configure --prefix=/boot/common |
| 368 |
|
| 369 |
Specifying the System Type |
| 370 |
========================== |
| 371 |
|
| 372 |
There may be some features 'configure' cannot figure out |
| 373 |
automatically, but needs to determine by the type of machine the package |
| 374 |
will run on. Usually, assuming the package is built to be run on the |
| 375 |
_same_ architectures, 'configure' can figure that out, but if it prints |
| 376 |
a message saying it cannot guess the machine type, give it the |
| 377 |
'--build=TYPE' option. TYPE can either be a short name for the system |
| 378 |
type, such as 'sun4', or a canonical name which has the form: |
| 379 |
|
| 380 |
CPU-COMPANY-SYSTEM |
| 381 |
|
| 382 |
where SYSTEM can have one of these forms: |
| 383 |
|
| 384 |
OS |
| 385 |
KERNEL-OS |
| 386 |
|
| 387 |
See the file 'config.sub' for the possible values of each field. If |
| 388 |
'config.sub' isn't included in this package, then this package doesn't |
| 389 |
need to know the machine type. |
| 390 |
|
| 391 |
If you are _building_ compiler tools for cross-compiling, you should |
| 392 |
use the option '--target=TYPE' to select the type of system they will |
| 393 |
produce code for. |
| 394 |
|
| 395 |
If you want to _use_ a cross compiler, that generates code for a |
| 396 |
platform different from the build platform, you should specify the |
| 397 |
"host" platform (i.e., that on which the generated programs will |
| 398 |
eventually be run) with '--host=TYPE'. |
| 399 |
|
| 400 |
Sharing Defaults |
| 401 |
================ |
| 402 |
|
| 403 |
If you want to set default values for 'configure' scripts to share, |
| 404 |
you can create a site shell script called 'config.site' that gives |
| 405 |
default values for variables like 'CC', 'cache_file', and 'prefix'. |
| 406 |
'configure' looks for 'PREFIX/share/config.site' if it exists, then |
| 407 |
'PREFIX/etc/config.site' if it exists. Or, you can set the |
| 408 |
'CONFIG_SITE' environment variable to the location of the site script. |
| 409 |
A warning: not all 'configure' scripts look for a site script. |
| 410 |
|
| 411 |
Defining Variables |
| 412 |
================== |
| 413 |
|
| 414 |
Variables not defined in a site shell script can be set in the |
| 415 |
environment passed to 'configure'. However, some packages may run |
| 416 |
configure again during the build, and the customized values of these |
| 417 |
variables may be lost. In order to avoid this problem, you should set |
| 418 |
them in the 'configure' command line, using 'VAR=value'. For example: |
| 419 |
|
| 420 |
./configure CC=/usr/local2/bin/gcc |
| 421 |
|
| 422 |
causes the specified 'gcc' to be used as the C compiler (unless it is |
| 423 |
overridden in the site shell script). |
| 424 |
|
| 425 |
Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an |
| 426 |
Autoconf limitation. Until the limitation is lifted, you can use this |
| 427 |
workaround: |
| 428 |
|
| 429 |
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash |
| 430 |
|
| 431 |
'configure' Invocation |
| 432 |
====================== |
| 433 |
|
| 434 |
'configure' recognizes the following options to control how it |
| 435 |
operates. |
| 436 |
|
| 437 |
'--help' |
| 438 |
'-h' |
| 439 |
Print a summary of all of the options to 'configure', and exit. |
| 440 |
|
| 441 |
'--help=short' |
| 442 |
'--help=recursive' |
| 443 |
Print a summary of the options unique to this package's |
| 444 |
'configure', and exit. The 'short' variant lists options used only |
| 445 |
in the top level, while the 'recursive' variant lists options also |
| 446 |
present in any nested packages. |
| 447 |
|
| 448 |
'--version' |
| 449 |
'-V' |
| 450 |
Print the version of Autoconf used to generate the 'configure' |
| 451 |
script, and exit. |
| 452 |
|
| 453 |
'--cache-file=FILE' |
| 454 |
Enable the cache: use and save the results of the tests in FILE, |
| 455 |
traditionally 'config.cache'. FILE defaults to '/dev/null' to |
| 456 |
disable caching. |
| 457 |
|
| 458 |
'--config-cache' |
| 459 |
'-C' |
| 460 |
Alias for '--cache-file=config.cache'. |
| 461 |
|
| 462 |
'--quiet' |
| 463 |
'--silent' |
| 464 |
'-q' |
| 465 |
Do not print messages saying which checks are being made. To |
| 466 |
suppress all normal output, redirect it to '/dev/null' (any error |
| 467 |
messages will still be shown). |
| 468 |
|
| 469 |
'--srcdir=DIR' |
| 470 |
Look for the package's source code in directory DIR. Usually |
| 471 |
'configure' can determine that directory automatically. |
| 472 |
|
| 473 |
'--prefix=DIR' |
| 474 |
Use DIR as the installation prefix. *note Installation Names:: for |
| 475 |
more details, including other options available for fine-tuning the |
| 476 |
installation locations. |
| 477 |
|
| 478 |
'--no-create' |
| 479 |
'-n' |
| 480 |
Run the configure checks, but stop before creating any output |
| 481 |
files. |
| 482 |
|
| 483 |
'configure' also accepts some other, not widely useful, options. Run |
| 484 |
'configure --help' for more details. |