ArchLinux: Getting 1.5.0 to work

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
User avatar
bwrsandman
Posts: 45
Joined: 25 Sep 2011, 05:30
Location: Montreal
Contact:

ArchLinux: Getting 1.5.0 to work

Post by bwrsandman »

Since at least 1.3.0, I have not been able to compile openmw properly in the AUR and I know a lot of the community has been having the same problems. This was probably due to the quick update to ogre 1.8.0.
I finally got 1.5.0 to compile from source by modifying the PKGBUILD and extracting a patch from github.

Firstly, since openmw 1.5.0 is tuned to ogre 1.8.0 now, it is necessary to specify this in the depends section.
I had a previous install already on my box with ogre1.7 as a dep and it did not upgrade. I was unable to compile past ~2%. To fix this, I changed the depends to look like this:

Code: Select all

depends=('openal' 'ogre>=1.8.0' 'mygui' 'bullet>=2.8.0' 'mpg123' 'libsndfile' 'qt')
At this point I was able to compile up to the linking portion, at which point it stalled at ~92% with the following errors:

Code: Select all

CMakeFiles/openmw.dir/mwrender/terrain.cpp.o: In function `~Singleton':
/usr/include/OGRE/OgreSingleton.h:89: undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
/usr/include/OGRE/OgreSingleton.h:89: undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
/usr/include/OGRE/OgreSingleton.h:89: undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
/usr/include/OGRE/OgreSingleton.h:89: undefined reference to `Ogre::Singleton<Ogre::TerrainGlobalOptions>::msSingleton'
I looked up terrain.cpp in the git repo and found this beautiful commit:
https://github.com/zinnschlag/openmw/co ... d87#diff-0

From that, I was able to create a simple patch: http://pastebin.com/7YkXWED5

And from then on, I was finally able to compile fully and run openMW 1.5.0!

Here is my PKGBUILD: http://pastebin.com/0ULXn8wX

Note that, because I am using pastebin, I had to download from pastebin and strip off the \r from the file:

Code: Select all

  (sed 's/\r//g' ../download.php\?i\=7YkXWED5 && echo) > ../ogre1.8.patch
If you can add this to the AUR, you can take out that line as well as "http://pastebin.com/7YkXWED5" from sources

I hope this helps!
Feel free to contact me if you have questions or corrections for me.
User avatar
pvdk
Posts: 528
Joined: 12 Aug 2011, 16:34

Re: ArchLinux: Getting 1.5.0 to work

Post by pvdk »

Thanks bwrsandman!
This helps a lot, I will test this PKGBUILD and upload it to AUR.
Locked