Difference between revisions of "Installation on Linux"

From VCMI Project Wiki
Jump to: navigation, search
(Updated links for 0.88)
Line 1: Line 1:
= Installation from packages =
+
VCMI requires data from original Heroes 3: Shadow of Death or Complete editions. Data from native Linux version made by LOKI will not work.
Install original game and WoG addon in this directory
+
All links are for VCMI 0.88
<pre>
+
= Binaries installation =
/usr/share/vcmi/
+
== Debian-based distibutives ==
</pre>
 
This should give you directory structure like this:
 
<pre>
 
/usr/share/vcmi/Data
 
/usr/share/vcmi/Mp3
 
/usr/share/vcmi/Maps
 
...
 
</pre>
 
Install [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi-data_0.88.tar.gz VCMI data package] in the same directory.
 
 
 
 
 
Download and install package for your distributive. To install package along with all dependencies:
 
Download and install package for your distributive. To install package along with all dependencies:
 
<pre>
 
<pre>
Line 21: Line 10:
 
Note: First command most probably will result in errors - this is normal behavior, all of them should be fixed by apt-get
 
Note: First command most probably will result in errors - this is normal behavior, all of them should be fixed by apt-get
  
To start the game:
+
=== Packages ===
<pre>
 
vcmiclient
 
</pre>
 
== Packages ==
 
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_oneiric_i386.deb Ubuntu 11.10 (oneiric) 32 bit]
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_oneiric_i386.deb Ubuntu 11.10 (oneiric) 32 bit]
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_oneiric_amd64.deb Ubuntu 11.10 (oneiric) 64 bit]
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_oneiric_amd64.deb Ubuntu 11.10 (oneiric) 64 bit]
Line 31: Line 16:
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_sid_amd64.deb Debian testing/sid 64 bit]
 
* [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88_sid_amd64.deb Debian testing/sid 64 bit]
  
== Other Debian-based distibutives ==
+
=== Other Debian-based distibutives ===
 
VCMI requires g++-4.5 and boost-1.46 which are unavailable on Debian stable and Ubuntu 10.10 or lower.
 
VCMI requires g++-4.5 and boost-1.46 which are unavailable on Debian stable and Ubuntu 10.10 or lower.
 
If you'll manage to install them you can compile VCMI from source code.
 
If you'll manage to install them you can compile VCMI from source code.
Line 39: Line 24:
 
== Other Linux distibutives ==
 
== Other Linux distibutives ==
 
Currently VCMI supports generation of .deb packages only. Patches to add support of any other package formats are welcomed.
 
Currently VCMI supports generation of .deb packages only. Patches to add support of any other package formats are welcomed.
= Compiling from source =
+
== Compiling from source ==
 
For compiling from source see [https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/README.linux README.linux] file.
 
For compiling from source see [https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/README.linux README.linux] file.
You can get packaged source [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88.tar.gz here]
+
You can get packaged source for current version [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi_0.88.tar.gz here]
= Bugs =
+
 
 +
= Preparing data =
 +
Install original game and WoG addon. This can be done via Wine or from Windows.
 +
 
 +
Extract [http://dl.dropbox.com/u/22372764/vcmi/packages/vcmi-data_0.88.tar.gz VCMI data package] in the same directory.
 +
 
 +
Launch vcmiclient to determine data directory:
 +
<pre>
 +
vcmiclient -v
 +
</pre>
 +
Copy installed game there. This should give you directory structure similar this:
 +
<pre>
 +
/usr/share/vcmi/Data/
 +
/usr/share/vcmi/Mp3/
 +
/usr/share/vcmi/Sprites/
 +
...
 +
</pre>
 +
 
 +
= Launching game =
 +
To start the game:
 +
<pre>
 +
vcmiclient
 +
</pre>
 +
= Reporting bugs =
 
Report any issues with packages on our [http://bugs.vcmi.eu bugtracker] or post a message on [http://forum.vcmi.eu/index.php VCMI forums]
 
Report any issues with packages on our [http://bugs.vcmi.eu bugtracker] or post a message on [http://forum.vcmi.eu/index.php VCMI forums]
 +
In report please post:
 +
* used distributive, version and architecture (e.g. x86 or x64)
 +
* console log as well as log files from ~/.vcmi
 +
* steps to reproduce bug

Revision as of 21:33, 30 April 2012

VCMI requires data from original Heroes 3: Shadow of Death or Complete editions. Data from native Linux version made by LOKI will not work. All links are for VCMI 0.88

Binaries installation

Debian-based distibutives

Download and install package for your distributive. To install package along with all dependencies:

sudo dpkg -i downloaded_package.deb
sudo apt-get -f install

Note: First command most probably will result in errors - this is normal behavior, all of them should be fixed by apt-get

Packages

Other Debian-based distibutives

VCMI requires g++-4.5 and boost-1.46 which are unavailable on Debian stable and Ubuntu 10.10 or lower. If you'll manage to install them you can compile VCMI from source code.

Another (and probably more safe) option is to create chroot enviroment (how-to). This will allow to install package from another distributive.

Other Linux distibutives

Currently VCMI supports generation of .deb packages only. Patches to add support of any other package formats are welcomed.

Compiling from source

For compiling from source see README.linux file. You can get packaged source for current version here

Preparing data

Install original game and WoG addon. This can be done via Wine or from Windows.

Extract VCMI data package in the same directory.

Launch vcmiclient to determine data directory:

vcmiclient -v

Copy installed game there. This should give you directory structure similar this:

/usr/share/vcmi/Data/
/usr/share/vcmi/Mp3/
/usr/share/vcmi/Sprites/
...

Launching game

To start the game:

vcmiclient

Reporting bugs

Report any issues with packages on our bugtracker or post a message on VCMI forums In report please post:

  • used distributive, version and architecture (e.g. x86 or x64)
  • console log as well as log files from ~/.vcmi
  • steps to reproduce bug