On Sight -- No weapons - all tactics!
Download Screenshots Install Rules Tactics Philosophy Contact
  ->

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

  1. Obtain the latest Linux binaries from http://onsight.sourceforge.net.
  2. 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.
  3. Now you can just run On Sight from that directory:
      ./onsight
    
  4. 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
  5. 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

  1. Obtain the latest Windows binaries from http://onsight.sourceforge.net.
  2. Unpack the package (most likely named like onsight-windows-x.y.zip) with WinZip or equivalent.
  3. Now you can just run onsight.exe from that directory.

Installing in Linux from source code

  1. Obtain the latest source code from http://onsight.sourceforge.net.
  2. 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.
  3. 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 .
  4. 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
  5. Now the game is compiled. (If it's not, there has been some error I can't foretell now.) You can run it:
         ./onsight
    
  6. 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.)

  1. Obtain the latest source code from http://onsight.sourceforge.net .
  2. Unpack the package (most likely named like onsight-x.y.tar.gz) with WinZip.
  3. Follow the instructions in the file Makefile.cygwin-mingw-hack .

Uninstalling in Linux

  1. Go to the directory where you unpacked the package.
  2. If you installed from source code, now run
         make uninstall
    
  3. Remove the directory where you are.
  4. Remove the directory ~/.onsight from every user who has one.

Uninstalling in Windows

  1. Just remove the directory where you unpacked the package.

Page updated on Friday 2001-12-21 by Ville Nurmi <ville@users.sourceforge.net>
SourceForge Logo Valid HTML 4.01!