We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-07-25 13:57:12 +0200 |
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:
In Qt Creator, File->New File or Project
Under Projects, Libraries + Qt Quick2 Extension Plugin
Under Location, Name: testplugin, Create in: /home/hammarland/Projects
Under Kits, both emulator and device selected
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?
2 | No.2 Revision |
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:
In Qt Creator, File->New File or Project
Under Projects, Libraries + Qt Quick2 Extension Plugin
Under Location, Name: testplugin, Create in: /home/hammarland/Projects
Under Kits, both emulator and device selected
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?