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 101 102 103 104 105 106 107 108 109 110 111 112 113
|
INSTALLING XCONQ
1. Decide which versions you want. For non-Unix systems, you will
need to go to the appropriate subdirectory, and read the instructions
there on how to configure and compile the sources for the desired
system. Some systems (such as the Mac) may have an already-built
executable available. For Unix (and VMS) systems, keep reading here.
For PCs running Windows 95 or NT, see the end of this document.
2. Decide on the user interface(s) you would like to use. The curses
interface uses only terminal graphics and will therefore work almost
anywhere, but the X11 interface both looks better and is easier to
play. Currently, only the X11 version allows multiple human players.
3. Decide whether to use "configure" or "imake". If you don't know
which to choose, choose the "configure" way and go to 3a. If you
prefer the "imake" way, go to 3b. You should do only one of these,
never both.
3a. Type "./configure".
If you want to be able to read XPM files, and the XPM library is
available on your system, add the argument "--with-xpm" to your
configure command.
The SelFile file dialog library may have problems compiling and/or
linking, but it is not required for Xconq. If you don't want to try
to fix it, you can disable by adding the argument "--disable-selfile".
If you want to install into a nonstandard place, such as /usr/local,
add the argument "--prefix=/usr/local". This will put executables
into /usr/local/bin, and game library files into /usr/local/lib/xconq.
The default is to install everything under /usr/games; executables
in /usr/games/bin, library files in /usr/games/lib/xconq.
3b. Customize "Local.config" for your site.
Type "xmkmf", then "make Makefiles".
4. Type "make".
If you need to specify special compilation flags, set the
variable CFLAGS on the command line. If you need special
linktime flags, such as a path to library directories, use LDFLAGS.
If you used 3a (configure), and you want to build xconq only, then you
can say "make all-xconq" instead. Similarly, for cconq only, say
"make all-cconq".
5. If you want test things out before installing, just cd to "curses"
and say "cconq" or cd to "x11" and say "xconq". You will need to add
an argument like "-L ../lib" if you want to get the game libraries in
this distribution; otherwise Xconq will use whatever games have been
installed already.
6. If you want to install Xconq in your system, type "make install".
The default installation is into /usr/local/bin for xconq and cconq, and
into /usr/local/lib/xconqdir for the game modules and support files.
Again, if you used configure, and you want to install xconq only, then
you can say "make install-xconq". Similarly, for cconq only, say
"make install-cconq".
If you want to put the executables into the traditional /usr/games
instead of /usr/local/bin, add "bindir=/usr/games" to the make install
command.
If you need to install X application defaults somewhere other than
/usr/lib/X11/app-defaults, add "appdefaultsdir=<xxx>" to the make
install command.
If you do not have a program or script "install" on your path,
you can use the "install.sh" in this directory by adding
"INSTALL=<abspath>install.sh" to the "make install", or you can
even use "cp" by saying "INSTALL=cp INSTALL_DATA=cp".
7. The man pages just tell how to start up the programs; the full
Xconq manual has complete details on everything. A lot of behavior
can be figured out by experimentation and by using the extensive
online help; you can always get to it by typing '?'.
8. If installed in a public place, announce availability. The library
file "news.txt" provides a convenient place to put in any notes
about changes, new games/scenarios, and so forth.
PROBLEMS
Some systems may need you to add CFLAGS=-DSYSV to your make command,
in order for SelFile to compile correctly.
WINDOWS
It is possible to build the X11/Unix version of Xconq for Windows,
using Cygnus Solutions' compatibility package gnu-win32. Raj Menon,
rxmtemp@mcdata.com, reports that the procedure below works for him:
"- Install Cygwin32 19.1 from http://www.cygnus.com.
- Install X11R6.3 libs from
http://dao.gsfc.nasa.gov/software/grads/win32/X11R6.3/
- Install the free Starnet X Server (XWin32) from http://www.starnet.com
- Get the source distribution for Xconq.
- add a symlink in /bin to bash in the cygwin distribution (NOTE:
do not use cygwin sh. It has a bug that causes xmkmf not to work).
- xmkmf
- make all
- make install
Note: I still have not figured out a way to get the StarNet X Server
to read the defaults from the app-defaults directory. So for now,
you will need to add the xconq and xshowimf defaults to your
~/.Xdefaults file."
Note that the result looks exactly like the Unix version of Xconq,
and will not run unless an X server is also running on your PC.
|