[07:35] <justCarakas> Hello, I've got a question
[07:36] <justCarakas> I got a freshly installed ubuntu 14.04 and I'm trying to create a html5 app
[07:36] <justCarakas> I created one in the sdk targetting 15.04 (couldn't see 15.10) but when I try to start it I get errors
[07:37] <justCarakas> Starting /usr/bin/ubuntu-html5-app-launcher...
[07:37] <justCarakas> This application failed to start because it could not find or load the Qt platform plugin "xcb".
[07:37] <justCarakas> Reinstalling the application may fix this problem.
[07:37] <justCarakas> The program has unexpectedly finished.
[07:37] <justCarakas> /usr/bin/ubuntu-html5-app-launcher crashed
[07:37] <justCarakas> that is for the desktop one
[07:38] <justCarakas> when I target one of my kits I get the following errors
[07:38] <justCarakas> :-1: warning: desktop:Exec:MobileVikings: found unexpected Exec with architecture 'all': ./qtc_device_debughelper.py
[07:39] <justCarakas> :-1: warning: security:policy_groups_safe:MobileVikings:debug: (REJECT) reserved policy group 'debug': not for production use
[07:39] <justCarakas> The debug policy group is automatically injected and should only be used for development.
[07:39] <justCarakas> Please use the publish mode to create a package for the store!
[07:39] <justCarakas> :-1: warning: security:policy_groups_webapp:MobileVikings.apparmor: found unusual policy groups: debug
[07:39] <justCarakas> Does anyone got an idea how to get past these ?
[07:39] <justCarakas> I looked on google but couldn't find a solution
[08:16] <justCarakas> anyone ?
[09:17] <maxed> Hi again! I managed to get my chroots sorted, and build by project for Ubuntu Touch. However, now I can't run it on device. The error is "Selected architecture arm is not compatible with reported target architecture i386:x86-64". I don't quite understand what is "target" arch, and what is "selected" arch here, but anyway, I'm buidling app using armhf Kit and running on real device, not...
[09:17] <maxed> ...emulator (it is selected for kit). Why doesn't it work?
[09:17] <omar_> hi
[09:26] <maxed> Also, I'm a bit nervous about "WARNING:root:Ignoring missing framework "ubuntu-sdk-15.04"" during install step. I wonder if any of appdevs could help me?
[09:27] <nik90> maxed, don't worry about the WARNING..I get it as well for some reason, but the app still works fine.
[09:27] <nik90> maxed, I will inform the SDK devs on Tuesday (hols due to Easter)
[09:28] <maxed> nik90, OK. Heh, we have Easter of 1st of May this year in Russia, so I didn't know of holidays :)
[09:28] <nik90> maxed, Can you take a screenshot of Qtcreator and paste here? That would help me check if your run configuration is good.
[09:29] <maxed> nik90, which pages?
[09:29] <nik90> maxed, just the overall qtc would do...in the bottom left corner there should be a indication of which device you're targetting and if everything is good
[09:29] <nik90> there should be a green circle.
[09:30] <nik90> if it isn't green, either you're using the wrong kit or the phone isn't detectd
[09:32] <maxed> nik90, it is green, and reporting the right kit and that it will deploy to device
[09:33] <nik90> hmmm strange..and you still get the arch issue.
[09:33] <nik90> target arch is the arch of the device you're deploying to
[09:34] <nik90> while selected arch is the arch of the chroot you're using
[09:34] <maxed> A-ha. So the chroot is correct, but it is trying to run on desktop instead of device.
[09:35] <maxed> Is there any way to make Creatro cough up command lines it uses during deployment?
[09:35] <maxed> All I get in Compile Output is "12:13:52: Uploading file "/home/maxed/lextre/drdestructo2-build/org.zxstudio.drdestructo2_0.9_armhf.click"..."
[09:36] <maxed> And "All files successfully deployed"
[09:37] <nik90> maxed, Check in Tools->Options->Build&Run->Kit
[09:37] <nik90> it should show which device a specific set is configured to use
[09:38] <maxed> nik90, it shows my devices's ID, but its status is "Disconnected". Usually, when I got that before, during deployment Creator asked me to connect my device, but currently it does not do that and proceeds to run on desktop. If I unlock device, it changes to "Ready to use", but app still runs on desktop.
[09:39] <maxed> Maybe I just should try re-creating project. Also, does it make any difference that I use CMake?
[09:40] <nik90> well both qmake .pro and CMake are supported. Infact the official core apps use CMake
[09:40] <nik90> check in the Projects tab if the right kit&device are selected then
[09:40] <nik90> it shouldn't just revert like that to the desktop
[09:41] <nik90> I always run on the phone (since I run 14.04), and if the phone is not available, it just shows an error/ dialog asking me to reconnect phone
[09:41] <maxed> Yes, in Projects tab UbuntuSDK for armhf (GCC ubuntu-sdk-15.04-vivid) is selected
[09:47] <nik90> I'm out of ideas
[09:49] <maxed> OK, thank you anyway, I'll continue my struggle :) I tried stracing ubundt-sdk to find out wht is it doing exactly, but it fails to run commands in chroot when running under strace.
[10:08] <nik90> maxed, Until tuesday, I suppose you could install the click package on your phone manually and test stuff out.
[10:09] <nik90> QtC creates the armhf click package in the build directory
[10:09] <maxed> nik90, I've tried it already, and it kind of works, but I'd like to have convenience of a working IDE at my disposal
[10:09] <nik90> maxed, indeed..I understand.
[10:10] <maxed> I'm porting a big project that depends on a big library, debugging that stuff with command-line gdb... Is not how I'd like to spend a weekend :)
[10:11] <maxed> I feel I have something wrong with some configuration. A freshly created test project (either with cmake or qmake) works just right on device.
[10:12] <nik90> Hmm ok..any chance you could then migrate your code to the sample template project and continue from there on
[10:17] <maxed> Maybe. I'm not sure. My CMake script is complex because of multi-platform support, but I can trim it down just for Ubuntu Touch for testing maybe... I'll think about it.
[10:19] <maxed> Hm! How does Ubuntu knows which executable file to start when running a package?
[10:19] <maxed> I deleted Exec field from my .desktop file, and it still finds something to run.
[10:23] <maxed> Found debugger logs. I now have confirmation that QtCreator tries to run my app on desktop (not that I didn't know it before)
[11:01] <maxed> Actually, "Run" page for my app and a test app are subtly different. My app has "Command line arguments" field and "Working directory", while test app has "Override if already installed" checkbox and another one.
[11:01] <maxed> So, QtCreatory certainly THINKS that my app is for Desktop - even though it uses armhf Kit
[11:02] <maxed> But I can't find what brings on this differenct :(
[18:31] <maxed> appdevelopers, is there a guide to porting CMake-based C++ project to Ubuntu Touch? However I try, I simply can't import my project so Ubuntu IDE would agree to run it on device. It always try to run it on desktop, and on Run tab options are all wrong.
[18:32] <maxed> When creating a new project, for pure C++ there is only option to create a qmake project (QtQuick App with QML)
[18:32] <maxed> QML apps are not a good template for porting, because they don't event have add_executable, but instead use custom target to run qmlscene.
[18:33] <maxed> So, I can't see what am I doing wrong.
[18:33] <maxed> (Or maybe it is impossible to have CMake-based project with C++ only?)
[18:36] <maxed> Hm, actually I HAVE created a working C++-only CMake project befroe.
[18:36] <maxed> Or not. No, I create a qmake project then.
[21:23] <maxed> qmake-based project definitely work. I now build my app as a library with CMake-based project, then link it and build click package via qmake project.
[21:23] <maxed> This unholy combination actually resulted in my game running on device!
[21:23] <maxed> But it's not very convenient, I have troubles with debugging
[21:25] <maxed> Oh, how I wish Ubuntu Touch had more documentation... Time to go to sleep now.