We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Deploying a QML C++ plugin in SDK Release Alpha 1407: missing yaml?

asked 2014-07-25 13:57:12 +0300

hammarland gravatar image

updated 2014-07-27 11:25:33 +0300

I'm running SDK Release Alpha "1407" on Linux Mint 17 (Qiana) and trying to deploy a QML C++ plugin using the template.

The steps I have taken are as follows:

  1. In Qt Creator, File->New File or Project

  2. Under Projects, Libraries + Qt Quick2 Extension Plugin

  3. Under Location, Name: testplugin, Create in: /home/hammarland/Projects

  4. Under Kits, both emulator and device selected

  5. Under Details, Object class-name: MyItem, URI: com.mycompany.qmlcomponents

and finally, Qt Creator reports that

Files to be added in  
/home/hammarland/Projects/testplugin: 
myitem.cpp
myitem.h
qmldir  
testplugin.pro
testplugin_plugin.cpp
testplugin_plugin.h

Compilation is successful (either targeting the emulator or the device), and libtestplugin.so is produced.

However, when trying to deploy (either targeting the emulator or the device), I get this

Fatal: No spec file found in '/home/mersdk/share//Projects/testplugin/rpm/' and couldn't make one from a yaml #1

and no RPM is produced. There is neither a yaml file nor an rpm directory anywhere to be found.

Should using the template create a proper yaml file and an rpm directory or is the deployment step to be done by hand?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2014-08-19 13:30:47 +0300

kaltsi gravatar image

Only the SailfishOS Qt Quick Application is tailored for Sailfish OS usage. The other project templates are for generic Qt or other programming.

If you choose the SailfishOS Qt Quick Application template you will get all the additional files required for creating the RPM package.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-07-25 13:57:12 +0300

Seen: 288 times

Last updated: Aug 19 '14