=== chriadam|away is now known as chriadam === shuduo is now known as shuduo_afk === chihchun_afk is now known as chihchun [05:01] I have an app with C++ backend which tries to access the screen service to change brightness via the system DBus, but I get apparmor errors. Does anyone know how to write the click apparmor file to get around this? [05:01] appdevs ? [05:09] Are any appdevs here? [07:16] good morning === _morphis is now known as morphis === shuduo_afk is now known as shuduo [08:07] Hello guys [08:07] I've ear than some expert are here in european office hours [08:07] I need help with my application [08:09] If some appdevs can help me, I will be very honoured [08:22] Nymerea, hi, blocking on something with your app? [09:29] davidcalle, yep I have some trouble [09:30] 1) my application doesn't work on smartphone but work on desktop [09:30] 2) my camera is rotated by 90° by default [09:31] I want create a simple application that read barcode [09:31] https://github.com/Nymerea/uBarcodeReader/tree/feature/autoCapture [09:32] Is there a way to make QApplication work on the device? I want to skip QML and use the graphics view framework... [09:32] Or... any non-horrible way to do qtquick on c++ entirely? :P [09:33] Nymerea, let me give it a try [09:34] brunch875, http://doc.qt.io/qt-5/qtqml-cppintegration-topic.html ??? [09:34] davidcalle, dont forget to use feature/autoCapture branch [09:35] davidcalle, The application run on smartphone, but when I click on image I have a referenceError [09:35] I've considered that, but I thought it might be a pretty bad idea [09:35] but I'm glad someone has the same second-opinion! [09:35] this error doesn't occur in desktop [09:35] brunch875, personnaly I think QML is much better than C++ for writing UI [09:36] thing is I want to port one of my games from scratch [09:36] feels like QML gets on the way [09:37] the graphics view framework seems perfect for the job, but I can't get it to work on utouch [09:37] maybe I should wait a bit for mir and convergence? :) [09:38] brunch875, scope are entierly written in c++ [09:38] so it shouldn't be a problem [09:38] (use only c++) [09:39] is there some source code I can peek at? [09:39] I sank in information yesterday... so extense [09:41] If you run ubuntu-sdk [09:41] you have some auto-generate source code that use c++ [09:45] Nymerea, sorry, I'm having an issue with my QtCreator, I can't add a device kit at the moment to test on my phone. I'll get back to you if I manage to fix that and test today :) [09:46] davidcalle, lot of problem with qt creator [09:48] Nymerea, in my case that's mostly a case of bleeding edge packages and SDK ones not being recent enough [09:48] But [09:49] Maybe you can help me with the error [09:49] I know exactly what happen [09:49] but I don't understand why [09:49] Nymerea, I can try [09:50] Okay, look my main.cpp : extense [09:50] https://github.com/Nymerea/uBarcodeReader/blob/feature/autoCapture/OpenFoodFacts/main.cpp ** [09:51] I give to my Qml file a reference : view.rootContext()->setContextProperty("qDecoder", &decoder); [09:51] In my Main.qml file, I use this reference [09:52] On desktop it's work properly but in smartphone i have : ReferenceError with qDecoder [09:52] davidcalle, any idea why it's happen ? [09:53] ReferenceError : qDecoder is not defined [09:58] Nymerea, that's odd. I don't see anything wrong with it. I guess someone with more cpp experience on the device can help, mzanetti? ^ [09:58] * mzanetti reads scrollback [09:59] view.rootContext()->setContextProperty("qDecoder", &decoder); [10:00] should be: [10:00] view.engine()->rootContext()->setContextProperty("qDecoder", &decoder); [10:00] not sure why the first works at all [10:00] hum [10:00] maybe it's the same... dunno [10:01] Nymerea, what does this better than Tagger? [10:01] The barcorde reader is just the proof of concept [10:02] OpenFoodFacts is read barcode from food a get nutritional information [10:02] I cannot use tagger as "provider of barcode" [10:02] mhm... [10:02] and barcode reader is to hard to use when you haven't a lot of experience in c++ developpement [10:02] Authenticator does [10:03] what is authenticator ? [10:03] It's not installed by default on my device [10:03] https://uappexplorer.com/app/com.ubuntu.developer.mzanetti.ubuntu-authenticator [10:04] I don't want login by using qrcode [10:06] you do want a QR code scanner, no? [10:06] mzanetti, do you know why my camera is rotated by 90° by default ? [10:06] mzanetti, no, EAN8/13 scanner [10:06] yeah well... that's the *same* [10:06] from the scanner POV. it reads all [10:09] let me try [10:09] the problem is : authentificator is not installed by default [10:11] there is any way to install a third application as dependences ? [10:12] clicks don't have dependencies [10:15] popey thank you [10:20] mzanetti, I've just looked your code source on launchpad [10:20] I didn't understand how you provide your QZBar dependences [10:21] because I use ZXing but it has very poor performances compare to Zbar [10:25] Nymerea, I use static linking [10:25] If I kew it before [10:26] I spent like 1 month with fuckin ZXing library [10:26] and tagger cmake was too complicated for me [10:27] (I mean qMake is so easy to read compare to cmake) [10:30] authenticator uses qmake [10:44] mzanetti, is it normal the camera is rotated by default ? [10:44] dunno [10:46] Nymerea, seems yes: http://bazaar.launchpad.net/~mzanetti/authenticator/trunk/view/head:/app/qml/ubuntu-authenticator.qml#L444 [10:47] mzanetti, no, if the smartphone is in portrait mode you rotate by 90° [10:47] that normal [10:48] but for me, by default it's rotated by 90° [10:48] I rotate -90, to compensate the 90 [10:49] yes, if it's in portrait mode [10:49] but by default i'm in "normal" mode [10:49] isn't ? [10:49] isn't portrait the normal one? [10:50] hum [10:50] maybe my english the problem :-D [10:51] mzanetti, you're rith : http://www.geckogeek.fr/wp-content/uploads/2010/09/LandscapePortrait.png [10:51] I'm very sorry [10:51] :) [10:51] no problem [10:51] I will check you're trick this afternoon [10:51] Thank you for you're help [10:52] Maybe I will re-use your code for reading barcode [10:52] because I didn't success to use zbar [10:56] mzanetti, I just tryed -90° [10:56] device.naturalOrientation === "portrait" ? -90 : 0 [10:57] and now it's rotated by -90° [10:58] urrrgh I'm still unable to paint a qtquick rectangle entirely on c++ [10:58] this api is harsh [10:58] actually, what ever the number is, the screen is rotated -90° [11:03] brunch875, not sure what you're trying to do [11:04] but wouldn't it just be subclassing QQuickPaintedItem and then just painRect() inside the paint() or update() method? [11:05] that's a great hint, thanks! I'm kinda lost [11:05] mzanetti, Okay I got it, I have "ReferenceError : screen is not defined" [11:05] you're missing an import I guess [11:08] mzanetti, you're right [11:08] Thank you for you're precious help [11:08] you're always right === chriadam is now known as chriadam|away [11:14] :D [11:14] no problem, you're welcome === _salem is now known as salem_ === om26er_ is now known as om26er [12:18] davidcalle, how are things in the deployment department? :) [12:40] dholbach, reverted everything to r122 :( Sent an email for help. [12:40] r122 because it's the one that deploys. [12:41] :-/ [12:41] davidcalle, r122 is without the mojo changes? [12:44] dholbach, yep, but it also has a bunch of extra files, like a db dump (it's not a clean pull from trunk at r122). Ideally, I should try to extract it, merge manually evertyhing we have done and try again with a tarball based on it. Haven't found time to do it yet. [12:46] davidcalle, can Caio or anyone from webops help? [12:47] it looks a bit like we're fishing in the dark :-( [12:48] dholbach, I know. Emailed caio, mike and jacek [12:50] cool *crossing fingers* === om26er_ is now known as om26er [13:48] jhodapp: I think I'm going to have to give up chasing that media-hub bug with the # symbols in the path [13:49] mcphail, alright no worries, just make sure all of what you discovered is on the comment log for that bug [13:49] mcphail, learned a few things I'm sure :) [13:50] jhodapp: absolutely :) Most of all, I learned that C++ and debuggers are a deadly mix :) [13:50] lol [13:50] indeed, C++ feels very insane at times === charles_ is now known as chalres === chalres is now known as charles === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [15:42] Helo, how can I detect screen rotation with QML? [15:42] (if it is vertical or horizontal) [15:43] https://developer.ubuntu.com/api/apps/qml/sdk-15.04/QtSensors.OrientationReading/ or just measure the width vs height of the page [15:43] thx [15:59] uhm [15:59] my app crashes, when i add the code from this page [16:00] isn't it possible to use accelerometer and OrientationSensor at the same time? [16:01] ubik__, what is the error it crashes with ? [16:02] Sdk-Launcher> Application started: 947 [16:03] Sdk-Launcher> Received a failed event [16:03] Sdk-Launcher> The Application exited, cleaning up [16:03] Sdk-Launcher> Finished [16:03] ubik__, there should be the actual apps output somewhere, maybe in one of the other panels [16:04] you have .. import QtSensors 5.0 .. at the top of the file right? [16:04] I have import QtSensors 5.2 [16:05] yup that should be ok [16:05] i try to uncomment my accelerometer [16:05] ubik__, if its a pure qml app have you tried running $ qmlscene path/to/app.qml ? [16:07] nope [16:10] I dont know how to debug [16:10] because im a newbie to ubuntu-sdk [16:10] but maybe my code is just wrong [16:11] if your using Qt Creator is there anything in the "application output" panel at the bottom? [16:11] http://pastebin.com/BYztNsED [16:11] yes, thats what i posted already [16:12] hmm you'd usually get something more useful than that [16:13] I just need to set colums = 1 and rows = 2 of the Grid when I rotate my device [16:13] It's something stupid, but I don't know how to do it [16:14] ubik__, when running the code you provided me... property string teststring: 0 .. fails with Invalid property assignment: string expected [16:14] oh [16:14] lol [16:14] :D [16:15] :-) [16:15] now my application starts [16:15] thx [16:15] yey no problem === fred_ is now known as Guest58567 === karni is now known as karni-away [20:23] mzanetti cool update for kodimote. Would it be possible to put a next playing on this screen? http://i.imgur.com/h1hmm51.png it would be nice to have this info here. [20:52] taiebot, longpress [20:52] mzanetti: i already know for this is just it would be intersting to know what will play next on this screen. [20:53] ah, i see [20:53] ok, will think about it [20:56] mzanetti: yeah the long press shows me what play next but it starts a day in the past for me [20:57] taiebot, right... that's a bit odd. I can't really know where to scroll the list to without lots of fancy maths and I never found the motivation to do that [21:00] mzanetti: yeah i do understand. If i had the skills would do a tvheadend scope (backend PVR for Kodi) it would be much more appropriate for TV channels === karni-away is now known as karni === salem_ is now known as _salem