[21:16] <natosha> bschaefer, I am trying to get the X11 Mir platform up and running, I keep getting http://pastebin.com/raw/ak2asHBf Does it seem familiar?
[21:17] <natosha> The error of course also occurs when trying to set up the TTY KMS Mir platform.
[21:17] <natosha> (This is with a fresh install of 16.04 with latest updates.)
[21:27] <natosha> Oh, and using the intel open source driver.
[21:28] <bschaefer> o good intel is needed!
[21:28]  * bschaefer looks
[21:29] <bschaefer> yeah it looks like a dependency didnt get pulled in
[21:29]  * bschaefer checks which ones you need
[21:31] <bschaefer> mir-platform-graphics-mesa-x9 mir-platform-input-evdev5 mir-client-platform-mesa5
[21:31] <bschaefer> natosha, try installing those packages ^
[21:31] <bschaefer> theres an issue with us hard depending on different platforms depending on the device
[21:32] <bschaefer> if you want the kms as well
[21:32] <bschaefer> mir-platform-graphics-mesa-kms9
[21:33]  * bschaefer updates doc
[21:45] <bschaefer> o turns out: mir-graphics-drivers-desktop
[21:45] <bschaefer> should install all the desktop platforms!
[21:49] <natosha> bschaefer, Hmm, I only see mir-platform-graphics-mesa-x8 in apt
[21:50] <natosha> However, that seems to work
[21:50] <bschaefer> natosha, yeah i have a newer one... but mir-graphics-drivers-desktop should get all you need
[21:50]  * bschaefer has a totally messed up system with to many ppas :)
[21:54] <natosha> Hmm, Ok, so I have Mir running, and when I run the demo client, it shows some red wavy background in the Mir server window. (Success?)
[21:55] <bschaefer> natosha, yay yup
[21:55] <bschaefer> thats the client running on the mir server
[21:55] <bschaefer> (q to quit)
[21:56] <natosha> Ok, cool.
[21:56] <natosha> When I try to run the Unity/SDL2 test app, I don't get anything showing up, so need to figure out how exactly to debug, but at least we have something to start with now.
[21:57] <bschaefer> right, soo for that depending on the issue stdout/stderr is the main help
[21:57] <bschaefer> SDL_VIDEODRIVER=mir is required for X11 platform
[21:57] <natosha> Yeah, have that.
[21:58] <bschaefer> any output such as "Unable to find xxx platform?"
[21:58] <bschaefer> err mir platform?
[21:58] <bschaefer> or is it running as expected but no image?
[21:58] <natosha> (Got tricked by that when working on Wayland support; totally thought it was working long before it was *actually* working due to that darn, all-too-helpful fall-back-to-X behavior.)
[21:58] <bschaefer> :)
[21:58] <bschaefer> yeah
[21:59] <bschaefer> natosha, i suppose a simpler test would be to install 7kaa (it'll crash when it closes on the SDL2 mir platform)
[21:59] <bschaefer> and attempt to run that game on the server to show SDL2 is working on mir
[21:59] <natosha> Nah, the Unity logs indicate that it's not able to correctly create a gfx context.  Seems like our problem.
[22:00] <bschaefer> yeah, though if it works for wayland it *should* work for mir
[22:00] <natosha> Though I guess I could also try with the TTY Mir setup as well, just to be sure.
[22:00] <bschaefer> yeah not a bad idea
[22:00] <natosha> Yes, this player works on Wayland, though I'm going to install another native instance using Wayland so I can compare behavior on the same hardware.
[22:01] <bschaefer> as they both use the SDL_egl backend
[22:01] <natosha> The computer I was using before for testing was using Wayland with the nouveau driver; this one is using the Intel driver, so that could be it as well (though it works fine in normal X11 mode).
[22:02] <bschaefer> natosha, hmm just to be on the safe side would be nice to get a different SDL app up and running to confrim
[22:02] <bschaefer> SDL2 issue or unitys
[22:02] <bschaefer> the version of SDL2 is 2.0.4 right?
[22:04] <natosha> Unity statically links SDL2
[22:05] <natosha> It's currently using what was latest upstream a couple weeks ago, which was newer than 2.04
[22:05] <natosha> *2.0.4
[22:05] <bschaefer> o thats even better
[22:05] <natosha> In fact, there was some problem with 2.0.4 specifically that I couldn't use the official release
[22:05] <natosha> bschaefer, So trying to set up the TTY Mir session gives http://pastebin.com/raw/tMUM63LC
[22:06] <bschaefer> right you'll need the kms platform hmm
[22:06] <bschaefer> which you said you couldnt find?
[22:06] <bschaefer> did installing: mir-graphics-drivers-desktop
[22:06] <bschaefer> work? Im not sure if thats a new package
[22:07] <natosha> Oh, missed that.
[22:08]  * bschaefer finds the platform packaging a mess but there doesnt seem to be a good solution :(
[22:13] <natosha> The TTY Mir sessoin starts successfully.  And I get the same behavior there.
[22:13] <bschaefer> natosha, also here is a simple SDL application: http://paste.ubuntu.com/16906817/
[22:13] <bschaefer> that you can attempt to test on TTY/X11
[22:13] <bschaefer> to check the SDL2 vs unity issue
[22:13] <bschaefer> LD_LIBRARY_PATH=/path/to/your/sdl2/ when compiling
[22:14] <bschaefer> should just be a bright green screen
[22:19] <bschaefer> the other thing to check... is possibly the SDL2 doesnt have mir built in with it (not sure the when it was built or if you have the required libraries to build SDL2 for Mir support)
[22:20]  * bschaefer writes down what you'll need to compile SDL2 with Mir support
[22:20] <natosha> The sample SDL program works, it seems.
[22:20] <natosha> The SDL library Unity links should have Mir and Wayland support both enabled . . . . I think.
[22:20] <natosha> In any case, it seems we have a reasonable test setup now.  Will just need to debug.
[22:21] <natosha> Thanks. :-)
[22:21] <bschaefer> yup!
[22:21] <natosha> I'll be back if we have further issues with it.
[22:21] <bschaefer> natosha, np! I enjoy debugging so if you've any questions just poke me!
[22:21]  * bschaefer still around for ~3 or so hours
[22:22] <natosha> It's past midnight, so I'm going to bed :-) But I'll probably get to debugging this in the next few days.
[22:22] <bschaefer> o dang yeah, have a good night!