[07:35] Hello, I've got a question [07:36] I got a freshly installed ubuntu 14.04 and I'm trying to create a html5 app [07:36] 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] Starting /usr/bin/ubuntu-html5-app-launcher... [07:37] This application failed to start because it could not find or load the Qt platform plugin "xcb". [07:37] Reinstalling the application may fix this problem. [07:37] The program has unexpectedly finished. [07:37] /usr/bin/ubuntu-html5-app-launcher crashed [07:37] that is for the desktop one [07:38] when I target one of my kits I get the following errors [07:38] :-1: warning: desktop:Exec:MobileVikings: found unexpected Exec with architecture 'all': ./qtc_device_debughelper.py [07:39] :-1: warning: security:policy_groups_safe:MobileVikings:debug: (REJECT) reserved policy group 'debug': not for production use [07:39] The debug policy group is automatically injected and should only be used for development. [07:39] Please use the publish mode to create a package for the store! [07:39] :-1: warning: security:policy_groups_webapp:MobileVikings.apparmor: found unusual policy groups: debug [07:39] Does anyone got an idea how to get past these ? [07:39] I looked on google but couldn't find a solution [08:16] anyone ? [09:17] 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] ...emulator (it is selected for kit). Why doesn't it work? [09:17] hi [09:26] 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] maxed, don't worry about the WARNING..I get it as well for some reason, but the app still works fine. [09:27] maxed, I will inform the SDK devs on Tuesday (hols due to Easter) [09:28] nik90, OK. Heh, we have Easter of 1st of May this year in Russia, so I didn't know of holidays :) [09:28] maxed, Can you take a screenshot of Qtcreator and paste here? That would help me check if your run configuration is good. [09:29] nik90, which pages? [09:29] 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] there should be a green circle. [09:30] if it isn't green, either you're using the wrong kit or the phone isn't detectd [09:32] nik90, it is green, and reporting the right kit and that it will deploy to device [09:33] hmmm strange..and you still get the arch issue. [09:33] target arch is the arch of the device you're deploying to [09:34] while selected arch is the arch of the chroot you're using [09:34] A-ha. So the chroot is correct, but it is trying to run on desktop instead of device. [09:35] Is there any way to make Creatro cough up command lines it uses during deployment? [09:35] 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] And "All files successfully deployed" [09:37] maxed, Check in Tools->Options->Build&Run->Kit [09:37] it should show which device a specific set is configured to use === zequence_ is now known as zequence [09:38] 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] Maybe I just should try re-creating project. Also, does it make any difference that I use CMake? [09:40] well both qmake .pro and CMake are supported. Infact the official core apps use CMake [09:40] check in the Projects tab if the right kit&device are selected then [09:40] it shouldn't just revert like that to the desktop [09:41] 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] Yes, in Projects tab UbuntuSDK for armhf (GCC ubuntu-sdk-15.04-vivid) is selected [09:47] I'm out of ideas [09:49] 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] maxed, Until tuesday, I suppose you could install the click package on your phone manually and test stuff out. [10:09] QtC creates the armhf click package in the build directory [10:09] 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] maxed, indeed..I understand. [10:10] 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] 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] Hmm ok..any chance you could then migrate your code to the sample template project and continue from there on [10:17] 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] Hm! How does Ubuntu knows which executable file to start when running a package? [10:19] I deleted Exec field from my .desktop file, and it still finds something to run. [10:23] 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] 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] So, QtCreatory certainly THINKS that my app is for Desktop - even though it uses armhf Kit [11:02] But I can't find what brings on this differenct :( [18:31] 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] When creating a new project, for pure C++ there is only option to create a qmake project (QtQuick App with QML) [18:32] 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] So, I can't see what am I doing wrong. [18:33] (Or maybe it is impossible to have CMake-based project with C++ only?) [18:36] Hm, actually I HAVE created a working C++-only CMake project befroe. [18:36] Or not. No, I create a qmake project then. [21:23] 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] This unholy combination actually resulted in my game running on device! [21:23] But it's not very convenient, I have troubles with debugging [21:25] Oh, how I wish Ubuntu Touch had more documentation... Time to go to sleep now.