Downloading and Compiling: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(→‎Running the executable: demo files link)
mNo edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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
* {{Icon|linux}}{{Icon|freebsd}} [[Downloading and Compiling under Linux|Under Linux and other UNIX-likes]]
 
* {{Icon|windows}} [[Downloading and Compiling under Windows|Under Windows]]
Your mileage may vary with other distros, but you should be able to figure out the packages you need from your particular package manager.
* {{Icon|macos}} [[Downloading and Compiling under macOS|Under macOS]]
 
== Setting up Build Enviroment ==
 
You will need git installed on your system, for example on apt based systems:
 
<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.
 
== Cloning the code repository ==
 
I prefer to work in a Code/ directory under my home directory.
 
<code>cd ~/Code</code>
 
You are now ready to clone the repository, type:
 
<code>git clone https://github.com/lubosz/ArxFatalis.git</code>
 
This creates a directory called ArxFatalis and downloads lubosz's current master branch of the source code from github.
 
<code>cd ArxFatalis</code>
 
== Compiling ==
 
Now you should be ready to configure and compile.  Run cmake:
 
<code>cmake .</code>
 
And now you should be able to compile with
 
<code>make -j`getconf _NPROCESSORS_ONLN`</code>
 
== Running the executable ==
 
<code>cd bin</code>
 
<code>WINEDEBUG=-all ./arx.exe</code>
 
You will need to obtain a copy of the data files from a commerical copy of Arx, or use the [http://download.cnet.com/ARX-Fatalis-updated-demo/3000-7539_4-10229017.html 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.
 
For running arx in a debugger, see [[Debugging]]

Latest revision as of 13:59, 28 May 2017