On Mon, Oct 12, 2015 at 6:00 PM, Kevin Gunn <kevin.g...@canonical.com>
wrote:

> Hey Darren - it just dawned on me, what's your host development machine on
> ? 15.04 or 15.10 ? There is a c++ abi break between 15.04 and 15.10, so you
> wouldn't be able to use mir or qt components built on 15.10 on these 15.04
> core images.
> br,kg
>
>

The host machine I build all the snaps and create system images on is 15.04.



> On Mon, Oct 12, 2015 at 4:52 PM, Kevin Gunn <kevin.g...@canonical.com>
> wrote:
>
>> Hey Darren -
>> so I was able to run the Qt clock demo on top of the mir snap. Here's a
>> quick list of what I did, so maybe we can figure out a possible difference
>> in what you and I both attempted.
>>
>> The image...
>> for the Ubuntu Core image I followed the instructions at
>> https://developer.ubuntu.com/en/snappy/start/ under the heading "Getting
>> started with an x86 device". iiuc, you actually created an image from the
>> ubuntu-device-flash tool ? this might be one difference.
>>
>

Yes, I've been creating my own images using the ubuntu-device-flash tool...
but I've also tried using the official, stable 15.04 image referenced at
https://developer.ubuntu.com/en/snappy/start/ with no luck.



>
>> Mir snap...
>> i installed the mir snap from the store, snappy install mir.mvp-demo
>> which auto launched mir server just fine.
>> It was built a few months ago using the exact same instructions in the
>> post you were trying to follow.
>>
>> Qt clock snap...
>> I actually scp'd an old Qt snap i had lying around, again, it had been
>> built using the exact same instructions in the post.
>> $ scp *.snap ubu...@xxx.xxx.xxx.xxx:/home/ubuntu
>> $ sudo snappy install --allow-unauthenticated qtdec*.snap
>> $ export LC_ALL=C.UTF-8
>> $ sudo qtdeclarative5-examples-amd64.clocks
>>
>> Note, don't forget to set the LC_ALL, that'll result in an error.
>>
>> br,kg
>>
>>

I've been using a mir snap that is built on my host machine (15.04 with all
the latest updates) and then automatically installed in the Snappy OS image
I build. I did forget to mention that I had this working at some point back
in the mid-August timeframe (for initial proof of concept), but after a
combination of updating my host machine and using the latest Snappy/Mir
versions it no longer worked.

My environment is also different in that I'm building the Qt clock snap
against the latest version of 15.04, which is what I would need to do for
my own custom application that will eventually be installed on Snappy.

For a test, I tried removing my custom mir snap and installed the
mir.mvp-demo snap from the store. When I try to run my custom snaps (built
against the latest 15.04 mir client libs) with the older server
(mir.mvp-demo), I get the following error instead...

$ sudo qtdeclarative5-examples-amd64.clocks
Bad system call
Loading module: 'libubuntu_application_api_desktop_mirclient.so.2.9.0'
[1444693723.318984] Loader: Loading modules from:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform
[1444693723.320623] Loader: Loading module:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform/mesa.so.2
[1444693723.326652] <WARNING> Loader: Failed to load module:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform/mesa.so.2
(error was:libmircommon.so.4: cannot open shared object file: No such file
or directory)
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir
server is
running, and the correct socket is being used and is accessible. The shell
may have
rejected the incoming connection, so check its log file
Aborted

$ sudo mir-demos.mir-demo-client-display-config
Bad system call
[1444693756.375331] Loader: Loading modules from:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform
[1444693756.376586] Loader: Loading module:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform/mesa.so.2
[1444693756.377364] <WARNING> Loader: Failed to load module:
/apps/mir/snap1.1/debs/usr/lib/x86_64-linux-gnu/mir/client-platform/mesa.so.2
(error was:libmircommon.so.4: cannot open shared object file: No such file
or directory)
Can't get connection
A demo client that allows changing the display configuration. While the
client
has the focus, use the following keys to change and get information about
the
display configuration:
 c: clone outputs
 h: arrange outputs horizontally in the virtual space
 v: arrange outputs vertically in the virtual space
 1-9: enable only the Nth connected output (in the order returned by the
hardware)
 p: print current display configuration
-- 
Mir-devel mailing list
Mir-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/mir-devel

Reply via email to