Running Mir apps on latest Snappy

Darren Landoll darren.landoll at gmail.com
Mon Oct 19 01:56:12 UTC 2015


On Fri, Oct 16, 2015 at 7:21 AM, Darren Landoll
<darren.landoll at gmail.com> wrote:
>>
>> Is this the classic problem caused by removing the runtime dependencies from the Mir packaging and requiring them to be
>> pre-seeded in the system images?
>>
>> Darren, if you add the mir-graphics-drivers-desktop package (eg. to your oem snap) does it work?
>
>
>  It doesn't look like there is a way to add mir-graphics-drivers-desktop to the oem snap, but it is already included in the mir server snap.


I finally found a way to get a working combination using the existing
mir.mvp-demo snap available in the store. When I build a mir client
*.snap (still using deb2snap for now) it includes all of the mir
client libraries needed at runtime. However, the
/apps/mir/*/bin/mir-run script results in the mir client running
against the client lib included in the mir server application
(/apps/mir/*/debs/usr/lib/*/mir/client-platform).

This appears to not be compatible with snaps created against the
latest versions of 15.04 packages. If I make the following change to
/apps/mir/*/bin/mir-run I can successfully run the Qt example
application.

- export MIR_CLIENT_PLATFORM_PATH="$(ls -d
/apps/mir/snap1.1/debs/usr/lib/*/mir/client-platform)"
+ export MIR_CLIENT_PLATFORM_PATH="$(ls -d
$SNAP_APP_PATH/debs/usr/lib/*/mir/client-platform)"

If I create a custom mir server snap (including the change above)
instead of using the older mir-mvp-demo snap, I still get the original
error I ran into so it's looking like there might be an issue in the
latest mir client and/or server.

Here's the original error for reference:

$ qtdeclarative5-examples-amd64.clocks
Loading module: 'libubuntu_application_api_desktop_mirclient.so.2.9.0'
[1444485571.860493] Loader: Loading modules from:
/apps/mir/current/debs/usr/lib/x86_64-linux-gnu/mir/client-platform
[1444485571.861038] Loader: Loading module:
/apps/mir/current/debs/usr/lib/x86_64-linux-gnu/mir/client-platform/mesa.so.2
Fontconfig error: Cannot load default config file
UbuntuWindow - regular geometry
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error>
>'
  what():  Unexpectedly received fds
Aborted



More information about the Mir-devel mailing list