Downloading and Compiling: Difference between revisions
Line 62: | Line 62: | ||
You have to change the pak files to small cases. SFX.pak => sfx.pak. | You have to change the pak files to small cases. SFX.pak => sfx.pak. | ||
If you are using the open-source mesa graphics driver stack (intel, radeon, nouveau) and get graphical corruptions (upside-down image, black frames) you might need to set <code>HKCU\Software\Wine\Direct3D\ | If you are using the open-source mesa graphics driver stack (intel, radeon, nouveau) and get graphical corruptions (upside-down image, black frames) you might need to set <code>HKCU\Software\Wine\Direct3D\OffscreenRenderingMode</code> to <code>backbuffer</code> in <code>regedit</code>. (see http://wiki.winehq.org/UsefulRegistryKeys) | ||
For running arx in a debugger, see [[Debugging]] | For running arx in a debugger, see [[Debugging]] |
Revision as of 21:27, 15 March 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 the Build Enviroment
Your system must have the following dependencies installed:
git
cmake
(version 2.8 or later)- a
gcc
toolchain (withmultilib
support if you are using a 64-bit system) wine
with development headerszlib
development librarieslibjpeg
development libraries (version 6.2)DevIL
(http://openil.sourceforge.net/)- On a 64-bit system, 32-bit development libraries
Your distribution's default repository might not have the DevIL package, so you may need to use a custom repository or build DevIL manually. See the project's Web site for details about obtaining it.
Example for apt
-Based Systems
On an apt
-based system such as Debian or Ubuntu, use:
sudo apt-get install git cmake g++ g++-multilib wine wine-dev zlib1g-dev lib32z1-dev libjpeg62-dev
Or, as root:
apt-get install git 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.
Cloning the code repository
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 -j`getconf _NPROCESSORS_ONLN`
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.
If you are using the open-source mesa graphics driver stack (intel, radeon, nouveau) and get graphical corruptions (upside-down image, black frames) you might need to set HKCU\Software\Wine\Direct3D\OffscreenRenderingMode
to backbuffer
in regedit
. (see http://wiki.winehq.org/UsefulRegistryKeys)
For running arx in a debugger, see Debugging