Page 1 of 3

Ubuntu 14.04, Mir, and OpenMW.

Posted: 11 Apr 2014, 16:53
by Sslaxx
So, with Ubuntu 14.04 stuff has changed (due to the Mir display manager libraries) and it is (as of right now) falling over with:
In file included from /home/stuart/CVS/OpenMW/Source/extern/sdl4ogre/sdlinputwrapper.cpp:2:0:
/usr/include/SDL2/SDL_syswm.h:97:44: fatal error: mir_toolkit/mir_client_library.h: No such file or directory
#include <mir_toolkit/mir_client_library.h>
As far as I can tell, I have all relevant Mir development libraries installed, but throwing this up here in case anyone else has had this happen to them yet, and if so if there's any workaround.

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 11 Apr 2014, 18:49
by pvdk
Sslaxx wrote:As far as I can tell, I have all relevant Mir development libraries installed, but throwing this up here in case anyone else has had this happen to them yet, and if so if there's any workaround.
Are you sure? That header file should come with the libmirclient-dev package.

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 11 Apr 2014, 21:24
by maqifrnswa
ha - i've been fighting this all day, might as well share what I learned...

trusty just enabled MIR with sdl2. However, MIR installs headers in /usr/include/mirclient and requires that to be added to the include path, which by defauly does not. Therefore, it practically requires pkgconfig to tell build systems what include path to -I, and SDL2 doesn't require mir nor includes headers in their pkgconfig file. In addition to all this, FindSDL2.cmake doesn't know anything about mir.

It's too close to a LTS release to implement this change, and this will cause FTBFS all over the archive. Our daily builds caught it, and I've filed a bug with ubuntu asking them to roll back Mir support for SDL2 in trusty since it won't be fully ready in a few days:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1306629

from this project's point of view - I'd suggest waiting until Ubuntu decides what to do.


WORKAROUND:

Code: Select all

Index: openmw/CMakeLists.txt
===================================================================
--- openmw.orig/CMakeLists.txt	2014-04-13 16:17:04.828019705 -0400
+++ openmw/CMakeLists.txt	2014-04-13 21:56:26.832034648 -0400
@@ -278,6 +278,8 @@
 ENDIF(OGRE_STATIC)
 include_directories("."
     ${OGRE_INCLUDE_DIR} ${OGRE_INCLUDE_DIR}/Ogre ${OGRE_INCLUDE_DIR}/OGRE ${OGRE_PLUGIN_INCLUDE_DIRS}
+    /usr/include/mirclient
+    /usr/include/mircommon
     ${SDL2_INCLUDE_DIR}
     ${Boost_INCLUDE_DIR}
     ${PLATFORM_INCLUDE_DIR}

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 12 Apr 2014, 00:42
by psi29a
I noticed the daily builds failing, but was busy at work and haven't much time to go through it.

I find it strange that they would do something like this so close to release. It isn't as if Mir is default or anything. I find it really strange.

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 13 Apr 2014, 20:01
by maqifrnswa
The daily build PPA has been patched to use Mir in trusty. Please test it, it should be built in an hour or so:
https://code.launchpad.net/~openmw/+arc ... enmw-daily

really strange that they enabled it days before release... especially since 14.04 is an LTS release

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 14 Apr 2014, 22:19
by maqifrnswa
Here's a quick patch for those that want a workaround:
http://bazaar.launchpad.net/~openmw/ope ... port.patch

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 14 Apr 2014, 23:02
by psi29a
maqifrnswa wrote:Here's a quick patch for those that want a workaround:
http://bazaar.launchpad.net/~openmw/ope ... port.patch
Are we going to need these for 0.30 on Debian, or generic enough to include in openmw itself or will this be a Ubuntu specific patch?

I only say this because I can't see the patch:
503 Service Unavailable

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 14 Apr 2014, 23:06
by maqifrnswa
BrotherBrick wrote:
maqifrnswa wrote:Here's a quick patch for those that want a workaround:
http://bazaar.launchpad.net/~openmw/ope ... port.patch
Are we going to need these for 0.30 on Debian, or generic enough to include in openmw itself or will this be a Ubuntu specific patch?

I only say this because I can't see the patch:
503 Service Unavailable
won't need it on debian, just trusty+
the patch is here:
viewtopic.php?f=8&t=2131&p=23682#p23682

we can make it generic, use cmake's find_file to see if mir is present and define the variable if so.

Ideally, I'd like ubuntu or mir to fix itself, but this has been reported twice before and the mir devs disregarded it.

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 19 Apr 2014, 14:03
by Sslaxx
I'm going to assume it's because of Ubuntu planning on switching to Mir in the near future, so I would not expect them to either remove the dependency or to consider this a bug. With this in mind, the source code needs to be patched in order to compile under Trusty (and/or later Ubuntu versions).

Re: Ubuntu 14.04, Mir, and OpenMW.

Posted: 19 Apr 2014, 22:38
by maqifrnswa
Could someone with trusty try:
https://github.com/maqifrnswa/openmw

it needs to be rebased, but it's a simple fix
https://github.com/maqifrnswa/openmw/co ... 661e9fc8e7