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

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-07-25 13:57:12 +0200

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

I'm running SDK Release Alpha "1407" on Linux Mint 17 (Qiana) and trying to create a 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?

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

I'm running SDK Release Alpha "1407" on Linux Mint 17 (Qiana) and trying to create a 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?