Downloading and Compiling: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
Your mileage may vary with other distros, but you should be able to figure out the packages you need from your particular package manager.
Your mileage may vary with other distros, but you should be able to figure out the packages you need from your particular package manager.


== Downloading From Github ==
== Setting up Build Enviroment ==


You will need git installed on your system, for example on aptitude based systems:
You will need git installed on your system, for example on aptitude based systems:


<code>sudo apt-get install git</code>
<code>sudo apt-get install git</code>
We will need cmake, a gcc toolchain with multilib support, wine and the wine development headers, as well as several other libraries.
<code>sudo apt-get install cmake g++ g++-multilib wine wine-dev zlib1g-dev lib32z1-dev libjpeg62-dev</code>


Your package manager will probably prompt you to install other packages, so just say yes to those.
Your package manager will probably prompt you to install other packages, so just say yes to those.


I prefer to work in a Code/ directory under my home directory, and for the sake of this example I will make a folder called lubosz in Code/
== Downloading From Github ==
 
I prefer to work in a Code/ directory under my home directory.


<code>cd ~/Code</code>
<code>cd ~/Code</code>
<code>mkdir lubosz && cd lubosz</code>


You are now ready to clone the repository, type:
You are now ready to clone the repository, type:
Line 21: Line 25:
<code>git clone https://github.com/lubosz/ArxFatalis.git</code>
<code>git clone https://github.com/lubosz/ArxFatalis.git</code>


This creates a directory called ArxFatalis and downloads the current version of the source code from the git server.
This creates a directory called ArxFatalis and downloads lubosz's current master branch of the source code from github.


<code>cd ArxFatalis</code>
<code>cd ArxFatalis</code>
And we are now ready to set up our build enviroment.
== Setting up Build Enviroment ==
We will need cmake, a gcc toolchain with multilib support, wine and the wine development headers, as well as several other libraries.
<code>sudo apt-get install cmake g++ g++-multilib wine wine-dev zlib1g-dev lib32z1-dev libjpeg62-dev</code>


== Compiling ==
== Compiling ==

Revision as of 17:03, 28 January 2011

I have listed below the procedure to go from a cleanly installed Ubuntu 10.10 AMD64 system, to being able to compile and run the version of Arx Fatalis available from https://github.com/lubosz/ArxFatalis.git

Your mileage may vary with other distros, but you should be able to figure out the packages you need from your particular package manager.

Setting up Build Enviroment

You will need git installed on your system, for example on aptitude based systems:

sudo apt-get install git

We will need cmake, a gcc toolchain with multilib support, wine and the wine development headers, as well as several other libraries.

sudo apt-get install cmake g++ g++-multilib wine wine-dev zlib1g-dev lib32z1-dev libjpeg62-dev

Your package manager will probably prompt you to install other packages, so just say yes to those.

Downloading From Github

I prefer to work in a Code/ directory under my home directory.

cd ~/Code

You are now ready to clone the repository, type:

git clone https://github.com/lubosz/ArxFatalis.git

This creates a directory called ArxFatalis and downloads lubosz's current master branch of the source code from github.

cd ArxFatalis

Compiling

Now you should be ready to configure and compile. Run cmake:

cmake .

And now you should be able to compile with

make

Running the executable

$ cd bin

$ WINEDEBUG=-all ./arx.exe

You will need to obtain a copy of the data files from a commerical copy of Arx, or use the demo data files, put these in your bin directory and you are ready to go!

You have to change the pak files to small cases. SFX.pak => sfx.pak.