Iris2.de
http://iris2.de/forum/

HOWTO compile Iris2 in Linux (OpenSUSE 10.2)
http://iris2.de/forum/viewtopic.php?f=15&t=1107
Page 1 of 1

Author:  melchoir [ Tue Aug 14, 2007 7:55 am ]
Post subject:  HOWTO compile Iris2 in Linux (OpenSUSE 10.2)

Well I just spent a ridiculous amount of time getting Iris2 to run on my openSUSE 10.2 install so I thought I'd write up a little howto and help out others that may be having similar troubles. Mind you some of this I'm pulling from memory so I don't promise accuracy.

Preparation
You'll of course want to get UO installed on your system. There's links on the Wiki to download it and the installer and the game itself run flawlessly under Wine.
Next you'll want to open YaST (or whatever package manager you use) and get the following packages. For every package you'll want the devel as well, if applicable.
ogre 1.4.0+
ogre-plugin-cg
ois
freeimage
boost
SDL-1.2.11+
libogg
libvorbis
openal
freealut
(one could argue you don't need openal and freealut but just to avoid it complaining.)
libjpeg
libtiff

Other Software
Lua 5.0
The lua files from my distribution were not recognized at all by the configure script. I downloaded 5.0 source from http://www.lua.org (I'd imagine any 5+ version would work).
tar xzvf lua*.tar.gz
./configure --prefix=/usr
(I had some problems with the default /usr/local and had to export the path, your mileage may vary)
make
(as root)
make install
make so
make soinstall

SDL_image 1.2.5+
the configure script complained about some option not being enabled in my SDL_image package, I don't recall which. I downloaded the source from http://www.libsdl.org/projects/SDL_image/. In my case libjpeg and libtiff were not installed, which is why I mentioned them in the requirements. Other than that the generic install worked fine for me.
./configure --prefix=/usr
make
(as root)
make install

FMod 4.x
This is directly from the INSTALL file.
download FMOD Ex 4.x Programmers API for linux from http://www.fmod.org/
tar xfz fmodapi40622linux.tar.gz
cd fmodapi40622linux
su
make install

Preparing Iris2 for compilation.
I couldn't get this to compile at all with openal, as is a common problem it would seem. I got the solution for that from this post http://iris2.de/forums/viewtopic.php?t=1072&start=15 .
So unpack your Iris2 tarball where ever you want to build it and edit these files in the src directory
Makefile.am
On line 25 for me I changed
Code:
      sound_openal.cpp\
      //sound_openal.cpp\

sound.cpp
Right near the top, line 4 make sure these entries look like this
Code:
      define USE_FMOD                        1
      //#define USE_OPENAL                   1


Compiling Iris2
From the main Iris2 directory.
sh bootstrap && sh configure && make
(Hopefully that will compile correctly. If not it's ok to cry)

Running Iris2
Once you are finished you can call Iris2 from start.sh in the main directory of where you untarred it. You'll of course want to finish configuring it as per the instructions on http://www.iris2.de/index.php/InstallationManual .
I personally was unable to get focus on the window in fullscreen mode, if you have the same issue you can run it in windowed mode, that solves the problem.
Also my last bit of advice, assuming you installed UO with wine it's probably some unwieldy path. I just did a symbolic link for simplicity.
ln -s ~/.wine/drive_c/Program\ Files/EA\ Games/Mondain\'s\ Legacy ~/uo

Well I think that's about it, I hope someone finds that useful.

Author:  hagish [ Tue Aug 14, 2007 8:56 am ]
Post subject: 

thanks for sharing

Author:  ghoulsblade [ Tue Aug 14, 2007 11:37 am ]
Post subject: 

yeah, thank you very much, that'll help many people.
i also put a link to this thread in the wiki : http://www.iris2.de/index.php/Building_From_Source

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/