How to manually install openmw-49 (Morrowind open-source engine)

I want to install openmw version 0.49 and struggle. I want version 0.49 in particular because I want to install a mod that requires this version.

I am aware that openmw is in the official repository, Installing that has worked perfectly using
pacman -S openmw and the game is running fine. I am also aware of AUR packages. However, they are all using the stable branch of the game, which is version 0.48. I need 0.49 for a mod though, hence convenient package installation seems not an option.

So what I believe is the way to get there is installing from source, where I already fail with the download.

git clone https://gitlab.com/OpenMW/openmw

takes the master branch (version 0.48). How do I change this to the development branch openmw-49? altering the URL to

git clone https://gitlab.com/OpenMW/openmw-49

or

git clone https://gitlab.com/OpenMW/openmw/-/tree/openmw-49

does not work as it requests login credentials.
So I tried to skip that and instead manually downloading the archive
“openmw-openmw-49.tar.gz” from gitlab, which I unpacked to folder “openmw-openmw-49”. Looking in there I see a cmake directory, so I assume I have to do a make file somehow. Next steps therefore are:

go to the folder

cd openmw-openmw-49

create directory for the build

mkdir build

go into that directory

cd build/

create a make file

cmake ../

this however does not work. This triggers warnings of “collada_dom-config.cmake” not being present and a build error stating incompatibility with CMake <3.5

I am inexperienced with cmake and do not really know whether I am on the right path with this at all, so I am asking for help.

openmw on gitlab: https://gitlab.com/OpenMW/openmw
mod I want to install afterwards: https://www.nexusmods.com/morrowind/mods/54137

You can have a look at the branches of a git repository using git branch and there may be one for 49 and you can change to that branch using git checkout branchname.

As for the error you are getting, it’s just a guess but try installing collada-dom from the aur.

1 Like

Thank you, with this I came a bit further.

as for copying from the correct branch, your suggestion works. In this case I can clone the openmw-49 branch like this:

git clone -b openmw-49 https://gitlab.com/OpenMW/openmw

I have also installed collada-dom from AUR and got rid of the warning.

The error about incompatibility with CMake <3.5 is still there.

What does cmake --version show?

Also how did you install cmake?

cmake --version shows cmake version 4.0.3-dirty
I am honestly not sure when and how I installed cmake, I needed it a year ago to for another game (OpenGothic).

I tried enforcing the older version using:

cmake ../ -DCMAKE_POLICY_VERSION_MINIMUM=3.5

which also did not work.

I was going to suggest something similar. Maybe there were breaking changes with 3.5. All I can think of is uninstalling the installed version of cmake and installing cmake3-bin from the aur and seeing if that works. It installs 3.31.3-1

image
I apparently had a conflict in a dependency that could be fixed by installing a newer version of mygui-openmw. After this, the cmake using 3.5 worked.

cmake then worked as such:

cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DMYGUI_RENDERSYSTEM=1 -DMYGUI_BUILD_DEMOS=OFF -DMYGUI_BUILD_TOOLS=OFF -DMYGUI_BUILD_PLUGINS=OFF

and then

make -jgetconf _NPROCESSORS_ONLN

seems to work.