[09:29] Hello. Could someone please help me out with my QML project. This is one of the files: http://paste.ubuntu.com/14456672/ and for some reason this code: connection_detail.console_out += "→ " + type + "(" + num + ")" + "\n"; is called more times than how many items are present in the connection_trains_detail_info_model. More precisely if there are n items in the model then the components in the delegate are called n fac [09:29] So if I mark model items as "1","2","3" ... then this is what is called in the delegate: "1","2","3","2","3","3" - and although I've been wondering about that for the whole day now I haven't figured it out. [09:33] The odd thing is that it renders correctly, there are only connection_trains_detail_info_model.count items in the listview visible - but it destroys my text output + it is not much efficient if it has to call some items multiple times. [10:10] Huh, ok, using Repeater helped ... not that I like it, but it works :) [15:16] popey: didn't you look at running the ubuntu sdk on arch a while back? [15:18] ya [15:18] did you get it running? [15:18] not quite [15:18] it's in progress [15:18] well, at least adding a second core to my ubuntu vm seems to have helped [15:20] I finally have time to look at the terminal emulator again [15:20] so let's see if I can find a codepath that is run both on a physical and an on-screen keyboard [15:26] actually, can I run the osk on the desktop? [15:29] bartbes, been playing with sdk in docker, DanChapman has a dockerfile which works on ubuntu, not tried on arch yet [15:29] docker should work, got a link? [15:29] lemme push what i have [15:30] this is fun, the desktop version's saying it can't load the xcb qt platform plugin [15:30] https://github.com/popey/ubuntu-sdk-docker [15:30] i just took what DanChapman had done and stripped it down a bit, as it had lots of extra bits for dekko [15:30] i just wanted a bare docker container [15:31] that might be ubuntu specific (I mean, the host) so if it doesn't work on arch, let me know, not tried it there yet [15:31] will do later when kids in bed [15:31] should be lighter weight than a full vm [15:32] what would be ubuntu-specific about it? [15:32] dunno, user ids and stuff in the launch line [15:34] you can get the xauthority path from $XAUTHORITY, I'm fairly sure, but I've never seen a system that didn't have it in $HOME [15:36] having qt creator running on my own x session will probably make for a much nicer experience, let's see [15:37] http://imgur.com/yMY1wHl [15:37] works on my local machine - as you can see I don't have ubuntu-sdk / qtcreator installed at all, so it's running from docker image [15:37] it's building now [15:39] patches welcome :) [15:39] be nice to be able to mount some part of your host filesystem (like ~/source) inside the docker container, not looked at that [15:42] you mount your home [15:42] just look at /home/popey ;) [15:42] or /home/alan, I guess [15:43] well yeah. [15:43] but I didn't know how to do that :) [15:43] your current script does mount it [15:43] oh, doesn't for me [15:43] well, it claims to, I haven't actually run it yet [15:44] oh, i lie [15:44] it does [15:44] :D [15:44] * popey marks fixed ;) [15:45] so many deps! [15:47] I guess the next step is having an armhf click thing ready inside of it [15:47] that would be handy [15:48] but I'm find with providing the minimal necessary to get started, the script _could_ also do the "click chroot create" bit too [15:48] especially since you pass --rm, so you'd have to create a new one every time [15:48] so when you first launch the container, all the stuff is just there [15:48] good point [15:48] yeah, it wouldn't be too difficult to have a second Dockerfile which uses the first as a base [15:49] or you could of course mount the chroot in [15:50] I think I'd rather keep it all inside the container.. [15:50] so it's basically 1) install docker, 2) run script, 3) wait, 4) win [15:51] hey [15:51] :D [15:54] bartbes, have added the click chroot create step to mine which is running now [15:59] oh, btw, is there a way to run the osk on the desktop? [16:01] possibly [16:01] Elleo may know [16:02] creating the click chroot barfs... [16:03] http://paste.ubuntu.com/14459138/ [16:03] aha http://stackoverflow.com/questions/33235395/run-chroot-within-docker [16:07] or, since you seem to have 10 minutes, just port click to docker :P [16:07] hah [16:07] ITYM snappy [16:08] how does the chroot work anyway, does it just come with a statically linked qemu? [16:08] yeah [16:08] the --privileged seems to only work with docker run, not docker build [16:08] which is somewhat less useful [16:08] might have to just let the user do the click chroot create on first run as usual [16:08] and remove the --rm? [16:09] rather than try and second guess it in the dockerfile [16:11] does running take a while for you, or is it failing? [16:13] I'm guessing it might be because I use nvidia drivers [16:13] considering the gl errors I'm getting [16:13] which bit? [16:14] the run click window which builds the armhf chroot seems to hang [16:14] no, just launching the container [16:14] libGL error: failed to open drm device: Permission denied [16:14] libGL error: failed to load driver: i965 [16:14] couple of them in the output [16:14] intel laptop here [16:14] http://hastebin.com/tirosefete.txt [16:16] oof [16:21] welp, back to the vm I go [16:22] has anybody gotten an error similar to this? http://pastebin.ubuntu.com/14459067/ [16:23] only occurs when building for the phone, not for desktop builds [16:24] it is the output of QtCreator, when building a "QML app with simple UI (cmake)" [16:24] I am experimenting with the CurrencyConverter demo project from here: https://developer.ubuntu.com/en/apps/qml/tutorials/building-your-first-qml-app/ [16:26] farad: hmm, seems to be a bug. the arm moc binary can't be run anyway for cross compiling, because it's not building under qemu. i'm not sure why whatever is pointing to that specific binary is doing so. it should be using /usr/bin/moc instead [16:27] it built fine exactly once, all consecutive builds failed [16:27] so, back to this qt xcb platform plugin issue [16:31] I tried to link this moc path to /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/bin/moc but the error message persists, which is quite strange, as the file is definitely existing in that case [16:38] farad: how did you link it exactly? [16:39] well, I did not really change anything specific in the default configuration [16:39] I created a Kit for armhf, and connected the phone [16:40] the only thing I changed after the first (successful) build was the project description [16:40] i mean, i presume you ran ln -s to create a symlink yes? [16:40] what was the exact command you ran? [16:40] yes [16:41] I first tried to link against the path I gave some messages before, and now I also tried to create a symbolic link to /usr/bin/moc [16:41] same result [16:41] ln -s /usr/bin/moc /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/bin/moc [16:41] is what should have been run [16:41] if you were creating the link from the host OS [16:42] if you are creating the link inside the chroot using the "Maintain" button in the settings page in qtcreator, then you need "ln -s /usr/bin/moc /usr/lib/arm-linux-gnueabihf/qt5/bin/moc" [16:43] I did it using the terminal on the host and used the first command [16:43] then at least you should not get the same error [16:44] beyond that, i'm not sure why it would want to use that file in the first place [16:45] only thing further i can really recommend for you, is to file a bug against the sdk at https://bugs.launchpad.net/ubuntu-sdk-ide [16:47] OK, thank you dobey! [16:49] is there a way I can start an app from the command line and/or get its output? [16:54] bartbes: for using the OSK on the desktop just install ubuntu-keyboard and whichever languages you need (e.g. ubuntu-keyboard-english, ubuntu-keyboard-emoji, etc.), then run maliit-server and start a Qt application with the environment variable 'QT_IM_MODULE=maliitphablet' set, but you'll get double input on all keys unless you're running xenial as there was a bug in qt resulting in multiple presses on multi-touch areas from mice [16:54] still beats not being able to find the touch control flow [16:56] hmm, doesn't seem to be working [16:57] oh, maliit-server does say '"libubuntu-keyboard-plugin.so" "en" is not enabled' [17:56] Elleo: got it working, totally forgot the console doesn't open the osk on startup [17:58] bartbes: great :) [18:00] turns out, the osk not only sends the double keypresses, as you suggested, it also sends each keypress twice? [18:00] that might explain the behaviour I was seeing [18:23] I'd never have figured this out without the osk on the desktop [18:23] popey: I think I finally got it working [19:15] bartbes, docker? [19:24] @dobey: my issue was fixed by rebuilding the armhf kit [19:25] popey: no, a control key in the terminal emulator [19:25] oh, yay! [19:26] this time actually tested on my phone, too ;) [19:26] shall I mail the patch again? [19:33] could you propose a merge? [19:33] oh, you mailed already, cool [19:33] will take a look, thanks bartbes [19:34] yeah, I never did figure bzr/launchpad out [21:22] dobey, you use a chroot on a device? I found via https://lists.launchpad.net/ubuntu-phone/msg12190.html and mentions here... [21:22] do you make the phone R/W to put debootstrap on it? [21:22] I was hoping to run debootstrap without actually going RW and using apt [21:22] popey: i do have chroots on my device [21:23] no need for debootstrap [21:23] oh, how did you set them up?> [21:23] https://askubuntu.com/questions/620740/recommended-way-to-install-regularcli-deb-packages-on-ubuntu-phone/623311#623311 [21:23] i want to use one for building stuff [21:23] grab the daily-preinstalled image and unpack it [21:23] magic, ta [21:23] sweet! [21:23] * popey upvotes [21:25] whee. 349 more of those and i'll have the last privilege tier unlocked :) [21:28] popey: remember if you want to debootstrap for a device which doesn't have it, you can run it on a normal machine with the "--foreign" parameter, copy the files across to your chroot, chroot in and run the "debootstrap/debootstrap" script with the "--second-stage" parameter to complete the process. But a pre-rolled chroot is nicer ;) [21:32] fancy [21:33] I do like debootstrap [22:06] is there a recommended way of rotating a camera preview, so that you see through the camera preview what you would see without the phone in front of your face? Setting "autoOrientation" to true leaves me with a preview, rotated by a quarter clockwise or anti-clockwise - depending on the orientation of the phone [22:07] do I have to do this manually, using the orientation sensor, or is there a simpler way? [22:22] isn't that just a case of not rotating? [22:22] seeing as the camera has the same rotation as the phone itself [22:23] yes, but the screen is rotating as well [22:23] yes, so disable screen rotation [22:24] unless you want to rotate your ui, in which case you have to do the inverse rotation on the picture [22:24] hmmm, this will block the title bar from moving to the top, won't it? [22:24] OK [22:25] I just tried the default camera app and it seems to rotate its ui, I'm not sure if it manually "unrotates" the image, or manually rotates the ui [22:25] but you basically want to make sure the image isn't rotated [22:27] hmm, I guess it manually rotates its UI and fixes the preview [22:27] good idea! I will proceed with that. [22:27] thank you [22:54] I thought setting "automaticOrientation" of the MainView to false would block the rotation, but I cannot see any changes in the behaviour [22:55] the screen still rotates if the phone is rotated