/srv/irclogs.ubuntu.com/2015/09/25/#ubuntu-mir.txt

RAOFOh, great. It's a racy test.01:18
dufluUmm what is r2962? :)01:38
dufluA bit of a mess it seems01:39
dufluRAOF: ^ that's not the proposal I remember from yesterday01:39
RAOFNot my proposal :)01:40
RAOFOr, rather, mine plus a bunch of other things to make it pass CI, I presume.01:40
=== marcusto_ is now known as marcustomlinson
=== chihchun_afk is now known as chihchun
dufluOh for the days when the display server was a different process to the shell08:36
alan_gburn the heretic!08:49
alan_g;)08:49
davmor2alan_g: ah bless you must be new to the whole heretic thing, we don't burn them now it's ecologically unsound, that's what the dunking stall is for, if they drown they were good, if they float they are heretics and you drive a stake through their heart08:53
alan_gduflu: do you want to leave lp:~alan-griffiths/mir/fix-1496849 pending API rework, or shall we land it as a bugfix?09:48
duflualan_g: Not worth blocking09:48
anpok_oh another chapter in the book of module_deleter..10:31
=== alan_g is now known as alan_g|lunch
=== chihchun is now known as chihchun_afk
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|afl
=== dandrader|afl is now known as dandrader|afk
Saviqhey folks, I was able to upgrade qtmir without adding some new needed packages15:00
Saviqso ended up with broken unity8:15:00
SaviqERROR: /build/mir-MEFZIJ/mir-0.16.0+15.10.20150921.1/src/platform/graphics/platform_probe.cpp(59): Throw in function std::shared_ptr<mir::SharedLibrary> mir::graphics::module_for_device(const std::vector<std::shared_ptr<mir::SharedLibrary> >&, const mir::options::ProgramO15:00
Saviqption&)15:00
SaviqDynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >15:00
Saviqstd::exception::what: Failed to find platform for current system15:00
Saviqthere seems to be some dependency missing, as apt was happy with that situation15:00
Saviqdist-upgrade resolved it fortunately15:00
Saviqbut still, sounds like there's some link missing15:00
Saviqand will cause boottest failures15:07
Saviqbecause boottest is stuck on an image pre-mir-0.16 due to a broken NM15:08
AlbertASaviq: yeah.. it's because of the drivers15:54
AlbertASaviq: they are pulled by the seeds...15:54
AlbertASaviq: the issue is different platform need different drivers... and that's not exactly expressible in debian packaging deps15:56
=== dandrader|afk is now known as dandrader
alan_gAlbertA: the assumption that cursors have contiguous buffers is spread over a lot of our code. @https://code.launchpad.net/~alan-griffiths/mir/fix-nested-cursor/+merge/272011/comments/68674616:33
AlbertAalan_g: It's not the cursor but the underlying buffer stream buffer. in android you may get a stride that is bigger than the width of the image16:44
AlbertAalan_g: but I see it's pre-existing... ummm I guess it may not work correctly in some phones16:45
alan_gAlbertA: I'm willing to log it and fix it. Just think its wider than the code this MP touches.16:46
=== alan_g is now known as alan_g|EOW
=== dandrader is now known as dandrader|afk
BlackJohnnybschaefer, hi18:38
BlackJohnnybschaefer, about the compiling of the cocos2d engine with mir for ubuntu touch18:39
BlackJohnnybschaefer, i get this message "OpenGL version too old ..." and i suspect is an EGL message18:41
BlackJohnnybschaefer, do i need also an EGL build with mir support?18:44
BlackJohnnybschaefer, i also get this GLFW error GLFWError #65542 Happen, EGL: Failed to initialize EGL: EGL is not or could not be initialized18:48
bschaeferBlackJohnny, well thats a good start18:49
bschaeferBlackJohnny, not sure about the OpenGL version to old bit though18:50
BlackJohnnyi think egl gets somehow initialized later and not with gles... but lets ignore that18:50
bschaeferBlackJohnny, but everything is compiling?18:53
bschaeferyou could try to run a GLFW3 example to make sure GLFW3 is working on mir18:53
BlackJohnnyyes18:53
BlackJohnnydid not compile samples, but I will do that thank you18:53
BlackJohnnybschaefer, -- NOTE: Examples and tests require OpenGL18:58
BlackJohnnybschaefer, not possible to link against GLES?18:58
BlackJohnnybschaefer, actually i have compiled them and got the libGL not found msg18:58
BlackJohnnybschaefer, compiled and executed18:59
* bschaefer thought it ran through egl19:00
BlackJohnnybschaefer, for the record, i do not use the latest code because I had to revert to the version of mir that is installed with ota 7 (0.12?)19:00
bschaefermaybe it just uses EGL to get a gl context19:00
BlackJohnnyota619:00
bschaeferBlackJohnny, yeah it looks like it using EGL to get a GL context19:01
bschaefersoo opengl can be used :(19:01
bschaeferfor those examples, maybe we can disable opengl19:01
bschaeferin glfw when compiling19:01
bschaeferGLFW_USE_EGL=ON19:02
bschaeferBlackJohnny, but that should be turned on when you do -DGLFW_USE_MIR=ON19:02
* bschaefer wonders how he got the examples working on mir now looking at the cmake19:02
BlackJohnnybschaefer, it is, i have checked19:02
bschaefersince EGL=ON means no tests19:02
bschaeferor examples19:02
bschaeferactually19:03
bschaefer    if (${GLFW_CLIENT_LIBRARY} STREQUAL "opengl")19:03
bschaefererr19:03
BlackJohnnyi have changed that to gles219:03
bschaefero i see19:03
bschaeferBlackJohnny, yeah then the examples wont work hmm19:03
BlackJohnnybschaefer, at runtime you mean because they get compiled19:04
bschaeferBlackJohnny, this is a compile time check19:04
BlackJohnnybschaefer, hmm i understand why u say that19:04
bschaeferyou can only have OPENGL OR glesv2 OR glesv119:04
BlackJohnnymaybe those binaries ar from a previous build :S19:04
BlackJohnnysorry19:04
bschaeferBlackJohnny, check: src/glfw_config.h:80:/* #undef _GLFW_USE_GLESV2 */19:05
bschaeferbuild/src/glfw_config.h19:05
bschaeferto see what was selected19:05
* bschaefer does not have glesv2 selected19:05
BlackJohnnybschaefer, you are right19:05
BlackJohnnybschaefer, with glesv2 the samples are not built19:05
bschaeferright, which is expected since the examples use OpenGL19:06
bschaeferBlackJohnny, but you had that already right?19:06
BlackJohnnybschaefer, i guess so ... with ldd i see the deps on mir19:06
bschaeferi think you need19:06
bschaefer-DGLFW_CLIENT_LIBRARY=glesv219:06
* bschaefer tries19:07
BlackJohnnybschaefer, i have changed this line: set(GLFW_CLIENT_LIBRARY "glesv2" CACHE STRING19:07
BlackJohnnybschaefer, is the define a better way?19:07
bschaefercmake .. -DCMAKE_INSTALL_PREFIX=<PREFIX> -DGLFW_USE_MIR=ON -DGLFW_CLIENT_LIBRARY=glesv219:07
bschaeferBlackJohnny, now the issue, i've glesv2 built... but how do i test it hmm19:08
BlackJohnnybschaefer, i've missed this error msg "libEGL warning: DRI2: xcb_connect failed"19:11
bschaefero... hmm try19:11
bschaeferEGL_PLATFORM=mir19:11
BlackJohnnybuilding glfw?19:11
bschaeferBlackJohnny, when you run it19:12
bschaeferor just export EGL_PLATFORM=mir (env var)19:12
=== dandrader|afk is now known as dandrader
BlackJohnnyis it ok to modify the EXEC line in the desktop file with this? Exec=export EGL_PLATFORM=mir && bin/hexpuzzle19:13
bschaeferBlackJohnny, you can make the exec in the desktop file point to an exe wrapper19:14
bschaeferie. hexpuzzle.sh19:14
bschaeferwhich will run the export + bin/hexpuzzle19:14
BlackJohnnyok19:14
BlackJohnnybschaefer, Segmentation fault (core dumped) :)19:18
bschaeferBlackJohnny, nice, soo hmm now why19:19
BlackJohnnybschaefer, i will check wihtout the export to check if that is the real reason19:19
bschaeferyou can also just try19:20
bschaeferEGL_PLATFORM=mir bin/hexpuzzle19:20
bschaeferbut hmm19:20
BlackJohnnybschaefer, without that is gives the same errors as before19:20
bschaeferwell we will need to batch gdb19:20
BlackJohnnybschaefer, but it might be that it works but then i implemented wrongly the mir connection or something19:20
BlackJohnnybschaefer, same error as before = OpenGL related19:21
bschaeferBlackJohnny, http://paste.ubuntu.com/12558073/19:21
bschaeferBlackJohnny, well the mir connection is glfw3 doing19:21
BlackJohnnybschaefer, i also do that with cocos2d to get the display parameters19:22
bschaefer --args  /usr/games/hexpuzzle $ARGS19:22
bschaeferBlackJohnny, o open the mir sever?19:22
bschaefertry to remove all that extra stuff for now (or just dont do anything)19:23
bschaeferlets just try to get glfw main loop spinning19:23
bschaefereven if it doesnt display anything19:23
BlackJohnnybschaefer, /opt/click.ubuntu.com/hexpuzzle/0.1/bin/hexpuzzle: error while loading shared libraries: libglfw.so.3: cannot open shared object file: No such file or directory19:27
bschaeferhmmm19:27
BlackJohnnybschaefer, probably it does not check the lib path?19:27
bschaeferBlackJohnny, you can force the path with export LD_LIBRARY_PATH in the *.sh19:28
bschaeferbut im not super good with clicks :)19:28
BlackJohnnybschaefer, ok19:28
BlackJohnnysec19:28
BlackJohnnybschaefer, my .sh, is it correct?http://paste.ubuntu.com/12558221/19:31
bschaefer BlackJohnny as long as thats where the libglfw lib lives :)19:32
bschaeferBlackJohnny, if it still fails, we'll have to use strace to check *where* its looking for the lib19:33
BlackJohnnybschaefer, it is ok, I will continue myself because u did more than enough19:33
BlackJohnnybschaefer, i will ask you when I get really stucked19:33
bschaeferBlackJohnny, good luck!19:34
BlackJohnnybschaefer, i suspect a missing dep19:34
BlackJohnnywill check19:34
BlackJohnnybschaefer, nope ldd says everything is ok19:35
bschaefer:(19:35
bschaeferBlackJohnny, you can try ldd when you run it :)19:35
bschaeferotherwise check strace when you run it19:35
BlackJohnnybschaefer, hmm and it is not linked to libGL directly19:35
bschaeferstrace <exe>19:35
bschaeferit shouldnt use libGL anymore (should be using gles219:36
bschaefer)19:36
BlackJohnnybschaefer, that is ok but then the libGL is ref by EGL19:36
BlackJohnnybschaefer, thank you and have a good day19:37
bschaeferBlackJohnny, np, and you as well19:38

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!