Difference between revisions of "Installation"

From Project::OSiRiON wiki

(Removed Bullet section.)
(Building from source code: Updated build instructions, git usage.)
Line 80: Line 80:
 
You can get the latest source code from the git repository:  
 
You can get the latest source code from the git repository:  
  
* [svn://osirion.org/osirion svn://osirion.org/osirion]
+
* [http://osirion.org/git/osirion-src/ http://osirion.org/git/osirion-src]
  
On linux, you can use the Subversion command line client tool. The following command will create a new subdirectory osirion and download the source code into it.
+
Use the git command line tool to clone the repository:
  
   svn co svn://osirion.org/osirion osirion
+
   git clone http://osirion.org/git/osirion-src osirion
  
 
Enter the new subdirectory:
 
Enter the new subdirectory:
Line 90: Line 90:
 
   cd osirion
 
   cd osirion
  
On windows, you can use Turtoisesvn to access the SVN repositories. You can download it here:
+
You can also download the source code package from the website:
 
 
* [http://tortoisesvn.tigris.org http://tortoisesvn.tigris.org]
 
 
 
You can also download the source package from the website:
 
 
   
 
   
 
* [http://osirion.org/files/osirion-latest-src.tar.bz2 osirion-latest-src.tar.bz2]
 
* [http://osirion.org/files/osirion-latest-src.tar.bz2 osirion-latest-src.tar.bz2]
 +
 +
  wget http://osirion.org/files/osirion-latest-src.tar.bz2
 +
  tar jxf osirion-latest-src.tar.bz2
 +
  cd osirion
  
 
=== Obtaining the game data ===
 
=== Obtaining the game data ===
  
Get the latest game data from the subversion repository:
+
Get the latest game data from the git repository:
  
* [svn://osirion.org/osirion svn://osirion.org/osirion-data]
+
* [http://osirion.org/git/osirion-data/ http://osirion.org/git/osirion-data]
  
The following command will create a new subdirectory data and download the game data into it:
+
The following command will clone the gama data into the data subdirectory:
  
   svn co svn://osirion.org/osirion-data data
+
   git clone http://osirion.org/git/osirion-data data
  
 
You can also download the game data from the website:
 
You can also download the game data from the website:
 
   
 
   
* [http://osirion.org/files/osirion-latest-src.tar.bz2 osirion-latest-src.tar.bz2]
+
* [http://osirion.org/files/osirion-latest-data.tar.bz2 osirion-latest-data.tar.bz2]
 +
 
 +
  wget http://osirion.org/files/osirion-latest-data.tar.bz2
 +
  tar jxf osirion-latest-data.tar.bz2
 +
  cd data
  
 
The data subdirectory should be inside the osirion directory.
 
The data subdirectory should be inside the osirion directory.
Line 116: Line 120:
 
=== Configuring the source code ===
 
=== Configuring the source code ===
  
Create the configure script:
+
If you cloned the git repository you need to create the configure script:
  
 
   autoreconf -i
 
   autoreconf -i
Line 122: Line 126:
 
Run the script to configure the source code:  
 
Run the script to configure the source code:  
  
   ./configure --with-bullet=/usr/local --enable-static-bullet
+
   ./configure
  
If you do not need the client and want to build the dedicated server only you can pass the --without-client option to configure:  
+
If you only want to build the dedicated server:
  
./configure --with-bullet=/usr/local --enable-static-bullet --without-client  
+
  ./configure --without-client  
  
If configure finds ncurses or pdcurses, the dedicated server will use this library and a have a curses console. To disable curses detection, pass the --without-curses option to configure.
+
To build a portable dedicated server:
  
  ./configure --with-bullet=/usr/local --enable-static-bullet --without-client --without-curses
+
./configure --without-client --enable-static-bullet --enable-static-stdlib --without-curses
  
You can use the --help option to get a list of all available options:
+
Use the --help option to get a list of all available options:
  
 
   ./configure --help
 
   ./configure --help
Line 163: Line 167:
 
=== Updating ===
 
=== Updating ===
  
If you used the subversion repository to build the game, there is no need to re-download the entire distribution when there are updates available. You can update your local copy and rebuild it.  
+
If you cloned the git repository to build the game, there is no need to re-download the entire distribution when there are updates available. You can update your local copy and rebuild it.  
  
 
Update the source code:  
 
Update the source code:  
Line 169: Line 173:
 
   cd osirion
 
   cd osirion
 
   make clean
 
   make clean
   svn update
+
   git pull
  
 
Update the game data:  
 
Update the game data:  
  
 
   cd data
 
   cd data
   svn update
+
   git pull
 
   cd ..  
 
   cd ..  
  

Revision as of 20:36, 2 May 2020

While there is still a lot of work to be done before there will be a final release of the game, there are packages with development builds available to serve as a platform for developers and contributers, or for those who are just curious about the current state of affairs.

The package are usually lagging somewhat behind on actual development. If you feel courageous you can download the latest and greatest development revision from the subversion repository and build your own binaries.

Installing the latest release

The quickest and easiest way to install Project::OSiRiON is by downloading the most recent development release. In general, you only need to download the release package and run the program.

Windows

Download the release package: there's a package for 32-bit windows and a package for 64-bit windows, you only need to download one of them. If you don't know which one to pick, the 32-bit is a safe choice, as it will also work on 64-bit windows systems.

Unzip the package to an aproriate location, a new folder will automaticaly be created.

Run Osirion.exe to start the game.

Linux

To run the game, you need a working OpenGL installation and the SDL and openal-soft libraries. Most likely, you already have these installed on your system. The package contains binaries for both 32-bit and 64-bit systems.

Extract the package to a suitable location, for example, /usr/local/games. A new directory called osirion-version-linux will automaticaly be created. (The actual directory name depend on the version number).

 cd /usr/local/games
 tar jxvf /where/you/downloaded/osirion-latest-linux.tar.bz2
 cd osirion-version-linux

To run the 32-bit version:

 ./osirion.x86

To run the 64-bit version:

 ./osirion.x86_64

Building Prerequisites

To build Project::OSiRiON from source code you need a working C++ compiler and have the necessary libraries and header files installed. The official binaries are compiled with gcc on linux, and mingw on windows.

Dependencies

The following packages are required to build the the dedicated server:

Additionally, the client requires:

You will also need gcc, GNU make, automake and libtool.

Building on Debian

To build the game on Debian-based distributions, you can install the required tools and dependencies by running the following commands (As root) in a terminal window:

 apt-get install build-essential autoconf automake libtool libjpeg-dev libpng12-dev libvorbis-dev libglu1-mesa-dev libopenal-dev libsdl2-dev libbullet-dev

Building on Windows

You can build the game on windows using an MSYS2 environment. You can find more information on the MSyS2 homepage.

Building from source code

Obtaining the source code

You can get the latest source code from the git repository:

Use the git command line tool to clone the repository:

 git clone http://osirion.org/git/osirion-src osirion

Enter the new subdirectory:

 cd osirion

You can also download the source code package from the website:

 wget http://osirion.org/files/osirion-latest-src.tar.bz2
 tar jxf osirion-latest-src.tar.bz2
 cd osirion

Obtaining the game data

Get the latest game data from the git repository:

The following command will clone the gama data into the data subdirectory:

 git clone http://osirion.org/git/osirion-data data

You can also download the game data from the website:

 wget http://osirion.org/files/osirion-latest-data.tar.bz2
 tar jxf osirion-latest-data.tar.bz2
 cd data

The data subdirectory should be inside the osirion directory.

Configuring the source code

If you cloned the git repository you need to create the configure script:

 autoreconf -i

Run the script to configure the source code:

 ./configure

If you only want to build the dedicated server:

  ./configure --without-client 

To build a portable dedicated server:

./configure --without-client --enable-static-bullet --enable-static-stdlib --without-curses

Use the --help option to get a list of all available options:

 ./configure --help

Building the binaries

Compile the source code:

 make 

The binaries will be built in the src subdirectory of the main distribution.

Important: make install is not supported. Results are unpredictable.

Running

The client and the dedicated server will look for game data in the data subdirectory of the current working directory. Since the binaries have been built in the src subdirectory, you will have start them with the src/ prefix.

To start the client:

 src/osirion 

If the client opens a new window and immediatly close it again, it probably could not find the game data and exited. Check your installation.

To start the dedicated server:

 src/osiriond 

If you are using windows, the binaries will be called osirion.exe and osiriond.exe.

Updating

If you cloned the git repository to build the game, there is no need to re-download the entire distribution when there are updates available. You can update your local copy and rebuild it.

Update the source code:

 cd osirion
 make clean
 git pull

Update the game data:

 cd data
 git pull
 cd .. 

Build the binaries again:

 autoreconf
 ./configure
 make

Source data

There is a seperate SVN repository with files that are used to create game data, but are not necessary to run the game. These files include blender models, gimp files and scalable vector graphics. You do not need these filese of you want to try the game or run a dedicated server, but they can be of interest to contributers.

To download the source data subversion repository:

 svn checkout svn://osirion.org/osirion-data-src data-src