← Back to team overview

ubuntu-phone team mailing list archive

Re: Deploy QMake (*.pro) C++/QML project?

 

Within the core apps, there are many .cpp applications that use qt, but
from what I understand there has been a lot of tweaking to make them
produce Ubuntu Touch-required .click packages.  .click packages are what
get installed.

Your .pro only produces executables not .click packages.

Take a look at Ubuntu Touch Core Apps, particularly camera-app.
Especially examine it for
.desktop
.click
.qmlproject
.qmlproject.user
CMakeLists.txt
README.click

If you create a qtquick2 app based on the ubuntu touch templates,
search for qtquick2applicationviewer.cpp and main.cpp.
>From there, I think you will have all you need.

Cheers,
David Marceau



On 03/31/2014 05:46 PM, José Expósito wrote:
> Hi!
> 
> I have fully adapted my C++ and QML App to run in Ubuntu:
> https://github.com/JoseExposito/ubuntuone-qt-files
> 
> As you can see the project is a plain qmake project and I'm able to execute
> it on desktop. However, when I try to deploy it to my device the (Build ->
> Ubuntu) Qt Creator recognizes my app as a HTML5 app and if I try to install
> it on my device I get this error:
> 
>     [22:41:35] Warning: Permanently added '[127.0.0.1]:2222' (RSA) to the
> list of known hosts.
> 
>     [22:41:36] bash: dh_make: command not found
> 
>     [22:41:36]
> 
>     [22:41:36]
> /usr/share/qtcreator/ubuntu/scripts/qtc_device_buildanddeploypackage
> finished with code 127
> 
> And dh_make is installed... I have tried to add a manifest.json,
> apparmor.json and the desktop file to the root folder of my desktop and
> also add some code to my pro file to prepare it for installation:
> 
>     unix:!macx {
> 
>     target.path = /usr/bin
> 
>     menu.path   = /usr/share/applications
> 
>     menu.files  = U1Files.desktop
> 
>     icon.path   = /usr/share/icons
> 
>     icon.files  = U1Files.png
> 
>     INSTALLS   += target menu icon
> 
>     }
> 
> 
> But it is still not working. Any ideas?
> 
> Thank you very much in advance
> 
> 
> 



Follow ups

References