/srv/irclogs.ubuntu.com/2016/01/10/#ubuntu-app-devel.txt

zubozroutHello. 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 fac09:29
zubozroutSo 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:29
zubozroutThe 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.09:33
zubozroutHuh, ok, using Repeater helped ... not that I like it, but it works :)10:10
bartbespopey: didn't you look at running the ubuntu sdk on arch a while back?15:16
popeyya15:18
bartbesdid you get it running?15:18
popeynot quite15:18
popeyit's in progress15:18
bartbeswell, at least adding a second core to my ubuntu vm seems to have helped15:18
bartbesI finally have time to look at the terminal emulator again15:20
bartbesso let's see if I can find a codepath that is run both on a physical and an on-screen keyboard15:20
bartbesactually, can I run the osk on the desktop?15:26
popeybartbes, been playing with sdk in docker, DanChapman has a dockerfile which works on ubuntu, not tried on arch yet15:29
bartbesdocker should work, got a link?15:29
popeylemme push what i have15:29
bartbesthis is fun, the desktop version's saying it can't load the xcb qt platform plugin15:30
popeyhttps://github.com/popey/ubuntu-sdk-docker15:30
popeyi just took what DanChapman had done and stripped it down a bit, as it had lots of extra bits for dekko15:30
popeyi just wanted a bare docker container15:30
popeythat might be ubuntu specific (I mean, the host) so if it doesn't work on arch, let me know, not tried it there yet15:31
popeywill do later when kids in bed15:31
popeyshould be lighter weight than a full vm15:31
bartbeswhat would be ubuntu-specific about it?15:32
popeydunno, user ids and stuff in the launch line15:32
bartbesyou can get the xauthority path from $XAUTHORITY, I'm fairly sure, but I've never seen a system that didn't have it in $HOME15:34
bartbeshaving qt creator running on my own x session will probably make for a much nicer experience, let's see15:36
popeyhttp://imgur.com/yMY1wHl15:37
popeyworks on my local machine - as you can see I don't have ubuntu-sdk / qtcreator installed at all, so it's running from docker image15:37
bartbesit's building now15:37
popeypatches welcome :)15:39
popeybe nice to be able to mount some part of your host filesystem (like ~/source) inside the docker container, not looked at that15:39
bartbesyou mount your home15:42
bartbesjust look at /home/popey ;)15:42
bartbesor /home/alan, I guess15:42
popeywell yeah.15:43
popeybut I didn't know how to do that :)15:43
bartbesyour current script does mount it15:43
popeyoh, doesn't for me15:43
bartbeswell, it claims to, I haven't actually run it yet15:43
popeyoh, i lie15:44
popeyit does15:44
popey:D15:44
* popey marks fixed ;)15:44
bartbesso many deps!15:45
bartbesI guess the next step is having an armhf click thing ready inside of it15:47
popeythat would be handy15:47
popeybut I'm find with providing the minimal necessary to get started, the script _could_ also do the "click chroot create" bit too15:48
bartbesespecially since you pass --rm, so you'd have to create a new one every time15:48
popeyso when you first launch the container, all the stuff is just there15:48
popeygood point15:48
bartbesyeah, it wouldn't be too difficult to have a second Dockerfile which uses the first as a base15:48
bartbesor you could of course mount the chroot in15:49
popeyI think I'd rather keep it all inside the container..15:50
popeyso it's basically 1) install docker, 2) run script, 3) wait, 4) win15:50
ilhamihey15:51
ilhami:D15:51
popeybartbes, have added the click chroot create step to mine which is running now15:54
bartbesoh, btw, is there a way to run the osk on the desktop?15:59
popeypossibly16:01
popeyElleo may know16:01
popeycreating the click chroot barfs...16:02
popeyhttp://paste.ubuntu.com/14459138/16:03
popeyaha http://stackoverflow.com/questions/33235395/run-chroot-within-docker16:03
bartbesor, since you seem to have 10 minutes, just port click to docker :P16:07
popeyhah16:07
popeyITYM snappy16:07
bartbeshow does the chroot work anyway, does it just come with a statically linked qemu?16:08
popeyyeah16:08
popeythe --privileged seems to only work with docker run, not docker build16:08
popeywhich is somewhat less useful16:08
popeymight have to just let the user do the click chroot create on first run as usual16:08
popeyand remove the --rm?16:08
popeyrather than try and second guess it in the dockerfile16:09
bartbesdoes running take a while for you, or is it failing?16:11
bartbesI'm guessing it might be because I use nvidia drivers16:13
bartbesconsidering the gl errors I'm getting16:13
popeywhich bit?16:13
popeythe run click window which builds the armhf chroot seems to hang16:14
bartbesno, just launching the container16:14
popeylibGL error: failed to open drm device: Permission denied16:14
popeylibGL error: failed to load driver: i96516:14
popeycouple of them in the output16:14
popeyintel laptop here16:14
bartbeshttp://hastebin.com/tirosefete.txt16:14
popeyoof16:16
bartbeswelp, back to the vm I go16:21
faradhas anybody gotten an error similar to this? http://pastebin.ubuntu.com/14459067/16:22
faradonly occurs when building for the phone, not for desktop builds16:23
faradit is the output of QtCreator, when building a "QML app with simple UI (cmake)"16:24
faradI am experimenting with the CurrencyConverter demo project from here: https://developer.ubuntu.com/en/apps/qml/tutorials/building-your-first-qml-app/16:24
dobeyfarad: 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 instead16:26
faradit built fine exactly once, all consecutive builds failed16:27
bartbesso, back to this qt xcb platform plugin issue16:27
faradI 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 case16:31
dobeyfarad: how did you link it exactly?16:38
faradwell, I did not really change anything specific in the default configuration16:39
faradI created a Kit for armhf, and connected the phone16:39
faradthe only thing I changed after the first (successful) build was the project description16:40
dobeyi mean, i presume you ran ln -s to create a symlink yes?16:40
dobeywhat was the exact command you ran?16:40
faradyes16:40
faradI 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/moc16:41
faradsame result16:41
dobeyln -s /usr/bin/moc /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/bin/moc16:41
dobeyis what should have been run16:41
dobeyif you were creating the link from the host OS16:41
dobeyif 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:42
faradI did it using the terminal on the host and used the first command16:43
dobeythen at least you should not get the same error16:43
dobeybeyond that, i'm not sure why it would want to use that file in the first place16:44
dobeyonly thing further i can really recommend for you, is to file a bug against the sdk at https://bugs.launchpad.net/ubuntu-sdk-ide16:45
faradOK, thank you dobey!16:47
bartbesis there a way I can start an app from the command line and/or get its output?16:49
Elleobartbes: 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 mice16:54
bartbesstill beats not being able to find the touch control flow16:54
bartbeshmm, doesn't seem to be working16:56
bartbesoh, maliit-server does say '"libubuntu-keyboard-plugin.so" "en" is not enabled'16:57
bartbesElleo: got it working, totally forgot the console doesn't open the osk on startup17:56
Elleobartbes: great :)17:58
bartbesturns out, the osk not only sends the double keypresses, as you suggested, it also sends each keypress twice?18:00
bartbesthat might explain the behaviour I was seeing18:00
bartbesI'd never have figured this out without the osk on the desktop18:23
bartbespopey: I think I finally got it working18:23
popeybartbes, docker?19:15
farad@dobey: my issue was fixed by rebuilding the armhf kit19:24
bartbespopey: no, a control key in the terminal emulator19:25
popeyoh, yay!19:25
bartbesthis time actually tested on my phone, too ;)19:26
bartbesshall I mail the patch again?19:26
popeycould you propose a merge?19:33
popeyoh, you mailed already, cool19:33
popeywill take a look, thanks bartbes19:33
bartbesyeah, I never did figure bzr/launchpad out19:34
popeydobey, you use a chroot on a device? I found via https://lists.launchpad.net/ubuntu-phone/msg12190.html and mentions here...21:22
popeydo you make the phone R/W to put debootstrap on it?21:22
popeyI was hoping to run debootstrap without actually going RW and using apt21:22
dobeypopey: i do have chroots on my device21:22
dobeyno need for debootstrap21:23
popeyoh, how did you set them up?>21:23
dobeyhttps://askubuntu.com/questions/620740/recommended-way-to-install-regularcli-deb-packages-on-ubuntu-phone/623311#62331121:23
popeyi want to use one for building stuff21:23
dobeygrab the daily-preinstalled image and unpack it21:23
popeymagic, ta21:23
popeysweet!21:23
* popey upvotes21:23
dobeywhee. 349 more of those and i'll have the last privilege tier unlocked :)21:25
mcphailpopey: 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:28
bartbesfancy21:32
bartbesI do like debootstrap21:33
faradis 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 phone22:06
faraddo I have to do this manually, using the orientation sensor, or is there a simpler way?22:07
bartbesisn't that just a case of not rotating?22:22
bartbesseeing as the camera has the same rotation as the phone itself22:22
faradyes, but the screen is rotating as well22:23
bartbesyes, so disable screen rotation22:23
bartbesunless you want to rotate your ui, in which case you have to do the inverse rotation on the picture22:24
faradhmmm, this will block the title bar from moving to the top, won't it?22:24
faradOK22:24
bartbesI 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 ui22:25
bartbesbut you basically want to make sure the image isn't rotated22:25
faradhmm, I guess it manually rotates its UI and fixes the preview22:27
faradgood idea! I will proceed with that.22:27
faradthank you22:27
faradI thought setting "automaticOrientation" of the MainView to false would block the rotation, but I cannot see any changes in the behaviour22:54
faradthe screen still rotates if the phone is rotated22:55

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