=== chihchun is now known as chihchun_afk === no_mu is now known as Nothing_Much === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === ara is now known as Guest73317 === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader === chihchun is now known as chihchun_afk [16:06] dandrader: hi. is clipboard support only available through u8 and not mir? [16:06] attente_, yes [16:08] dandrader: that means toolkit support for clipboard then depends on u8, isn't that a problem? [16:09] attente_, current clipboard architecture is not the final one [16:09] dandrader: oh ok, so there is some plan to move it back down to the mir level? [16:09] attente_, I don't think so. if I'm not mistaken the plan is to move it to content hub [16:10] attente_, consensus seems to be that system clipboard != display server [16:10] attente_, tvoss knows the details [16:12] dandrader: ok, thanks [17:01] bschaefer: hi! I'm trying to run a SDL2.0 game on the nexus 4 [17:01] mardy, awesome, hows that going? [17:01] bschaefer: SDL_CreateWindow fails: [17:01] :( [17:01] mardy, are you trying to run this on unity8? [17:01] Could not create window: Failed to created a window surface 0x1 [17:02] or on a standalone mir server? [17:02] bschaefer: looks like the message comes from here: http://hg.libsdl.org/SDL/file/2b2cfda26085/src/video/mir/SDL_mirwindow.c#l133 [17:02] bschaefer: unity8 [17:02] oooo ... haha yeah i think thats my fault [17:02] for not patching SDL2 yet... [17:02] i think sdl2 still has opengl compiled with it on the phone [17:03] mardy, sooo you'll need to recompile SDL2 with --disable-video-opengl [17:03] IIRC [17:03] bschaefer: I had to rebuild libsdl2 myself, because of https://bugs.launchpad.net/bugs/1402753 [17:03] Launchpad bug 1402753 in libsdl2 (Ubuntu) "Mir backend doesn't work, rebuild needed" [Undecided,New] [17:03] eeek, i've not seen that yet! [17:03] bschaefer: ok, I'll try [17:03] mardy, thanks! let me know if that works [17:22] bschaefer: after rebuild with --disable-video-opengl, the window is created and the app runs, but nothing is visible on the screen [17:22] bschaefer: it's not just black, it's completely transparent [17:22] mardy, what app are you testing? [17:22] bschaefer: https://github.com/mardy/trg2/tree/sdl2.0 [17:23] bschaefer: the SDL code is in src/main-sdl2.cpp [17:23] mardy, o haha yeah i was about to say looks like 1.2 [17:24] bschaefer: what happens if the window size does not match the screen? could this be the problem? [17:24] mardy, try to confirm its getting the correct window size [17:24] yeah [17:24] if its 0,0 [17:24] that would be an issue :), you can also try to force a size to confirm is an issue on my end [17:25] bschaefer: SDL_GetWindowSize() returns the same size I used to create it: 854x480 [17:25] bschaefer: I didn't understand: should I specify 0,0 as size? [17:26] mardy, no, i was thinking if it get 0,0 [17:26] it would be an issue but mir doesn't support resize :) [17:26] mardy, is it still ... working besides no image? [17:27] bschaefer: yes, the music plays [17:27] mardy, alright...whats the res on the n4? [17:28] also, if you want to you can get some errors [17:28] printf("ERROR:\n%s", SDL_GetError()); [17:28] IIRC [17:30] mardy, let me get a phone running for me to attempt to run the game! [17:31] mardy, also you made a desktop file to launch the app right? [17:37] * bschaefer waits for phone to not be dead [17:38] bschaefer: sure, I have a click dir, let me push it somewhere [17:38] click dir? you've made a click package? [17:38] man i need to learn how to make one of those haha [17:40] bschaefer: https://github.com/mardy/trg2/tree/click [17:41] bschaefer: so, to build the app: [17:41] bschaefer: mkdir build && cd build && cmake .. && make [17:41] bschaefer: then, once the executable is build: cd ../click && cp ../build/trg2 . && click build . [17:41] cool, and do you get any errors after you init [17:41] or after you create the window? [17:42] bschaefer: nope [17:42] ie. after you do an SDL_Init do a print on SDL_GetError() [17:42] o, dang [17:42] hmm [17:42] bschaefer: If I print SDL_GetError() I can see some error, but it varies; I think that I shouldn't call SDL_GetError() if the functions return success [17:43] bschaefer: anyway, I added a SDL_WINDOW_FULLSCREEN flag, and if I specify a size of 768x1222 (like other QML apps), I see that the returned size is 768x1280, which is really fullscreen [17:43] mardy, yeah just call it anytime [17:44] bschaefer: I get this: Failed loading eglChooseConfig: /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0: undefined symbol: _eglChooseConfig [17:44] if theres no error, its empty [17:44] hmm IIRC thats not really an error but still happens [17:44] bschaefer: or maybe they forget to clear it? [17:44] possibly that [17:45] mardy, i also have an sdl1.2 branch as well [17:46] https://github.com/BrandonSchaefer/SDL1.2-Mir [17:46] mardy, and you app works fine on X11? [17:46] your* [17:47] bschaefer: yep [17:47] cool, just want to double check :) [17:50] mardy, another thing you could test [17:50] in SDL/tests/ [17:50] bschaefer: now I added a probably useless SDL_GL_MakeCurrent, and it returns 0 (no error) [17:50] theres a few tests that are a good to check things are working [17:50] hmm [17:50] mardy, no you do need that [17:51] well... [17:51] mardy, you should also store the SDL_GLContext [17:51] so you can do [17:51] SDL_GL_DeleteContext(context); [17:52] bschaefer: that shouldn't have an impact, right? [17:52] nope [17:52] bschaefer: ops, I have to leave now [17:52] none at all :) [17:52] alright, do you have an email? [17:53] err [17:53] bschaefer: if you can find some time to play with it, I'd be grateful [17:53] yup [17:53] bschaefer: alberto.mardegan@canonical.com [17:54] mardy, cool, ill take a look. Thanks! === alan_g is now known as alan_g|EOD