Install
Here is explained how to install and uninstall On Sight on Linux or on Windows from source code or from precompiled binaries. The simplest way to install is to use precompiled binaries.
Follow the correct steps below. In case of trouble, you can mail Ville Nurmi <ville@users.sourceforge.net> and ask for help.
Contents
- Installing in Linux from precompiled binaries
- Installing in Windows from precompiled binaries
- Installing in Linux from source code
- Installing in Windows from source code
- Uninstalling in Linux
- Uninstalling in Windows
Installing in Linux from precompiled binaries
- Obtain the latest Linux binaries from http://onsight.sourceforge.net.
- Unpack the package (most likely named like
onsight-linux-i386-x.y.tar.gz):
tar xzvf onsight-linux-i386-x.y.tar.gz
This creates a directory where On Sight appears. - Now you can just run On Sight from that directory:
./onsight
- If the game doesn't start, you are probably missing some of the
libraries which On Sight uses. You should download and install
their latest versions:
SDL from http://www.libsdl.org SDL_image from http://www.libsdl.org/projects/SDL_image/index.html - If you are a system administrator and want to install On Sight for
all users, invoke
make install
This will install On Sight with a prefix of /usr/local . To have another prefix, you must recompile On Sight partly, sorry! See below.
Installing in Windows from precompiled binaries
- Obtain the latest Windows binaries from http://onsight.sourceforge.net.
- Unpack the package (most likely named like onsight-windows-x.y.zip) with WinZip or equivalent.
- Now you can just run onsight.exe from that directory.
Installing in Linux from source code
- Obtain the latest source code from http://onsight.sourceforge.net.
- Unpack the package (most likely named like onsight-x.y.tar.gz):
tar xzvf onsight-x.y.tar.gz
This creates a directory where On Sight appears. - Now configure and make in that directory:
./configure make
Optionally, you can tell ./configure where to install the game to; just give it something like --prefix=/usr/local/myprogs . - If the game doesn't compile, you are probably missing some of the
libraries which On Sight uses. You should download and install
their latest versions:
SDL from http://www.libsdl.org SDL_image from http://www.libsdl.org/projects/SDL_image/index.html - Now the game is compiled. (If it's not, there has been some error I
can't foretell now.) You can run it:
./onsight
- If you are a system administrator and want to install On Sight for
all users, invoke
make install
Installing in Windows from source code
Compiling On Sight in Windows is a difficult task, based on my experience. I managed to do it only by cross-compiling using Cygwin and MinGW, and even then I could do only static linking. (If someone has better results, please instruct me.)
- Obtain the latest source code from http://onsight.sourceforge.net .
- Unpack the package (most likely named like onsight-x.y.tar.gz) with WinZip.
- Follow the instructions in the file Makefile.cygwin-mingw-hack .
Uninstalling in Linux
- Go to the directory where you unpacked the package.
- If you installed from source code, now run
make uninstall
- Remove the directory where you are.
- Remove the directory ~/.onsight from every user who has one.
Uninstalling in Windows
- Just remove the directory where you unpacked the package.
Page updated on Friday 2001-12-21 by Ville Nurmi
<ville@users.sourceforge.net>