[SailfishDevel] How to create a nemo transfer-engine plugin?
m.gabrielboehme at googlemail.com
Fri Nov 14 23:13:04 UTC 2014
just a little status update, I created a new library via normal Qt 5.2
QtCreator and reopened the project later in Sailfish IDE.
So all the RPM stuff was not included and now it compiles fine. But you
need to install the nemo-transferengine packages in the build engine at
first. Also it helps to install transferengine stuff and
sailfish-browser in emulator, if you don't want to use the real device!
The library itself is recognized by nemo-transferengine, it shows up in
share menu and the QML page is loaded exactly.
But now I stuck a bit. Because I'm not sure, how to realize the API
login stuff. Because it seems there are only start()/cancel() recognized
by the QML site, but not my slot. An example is in the code:
Have a look here:
PocketSharePlugin.qml (line 16)
I can't call check() method, because I get this error from QML:
file:///usr/share/nemo-transferengine/plugins/PocketSharePlugin.qml:16: TypeError: Object [object Object] has no method 'check'
My plan was to integrate a "checkLogin()" - if user is not logged in,
call and show all the needed stuff via the QML share page.
Maybe someone just created a share plugin?
Am Donnerstag, den 13.11.2014, 00:07 +0600 schrieb Dmitriy Purgin:
> Hallo Gabriel,
> It could help if you would post more detailed compile log from
> 'Compile Output' tab. The fragment you posted tells a quite obvious
> thing -- that RPM generation didn't succeed because of compilation
> If you don't want to build an RPM, there's a 'Deploy by Copying
> Binaries' option.
> 2014-11-12 4:43 GMT+06:00 Gabriel Böhme <m.gabrielboehme at googlemail.com>:
> > I was asking, because it seems there is a X86 version, because you can
> > compile it with X86 Kit.
> > Now I tried to compile nemo-transfer-engine, but got this qmake error:
> > "error: Bad exit status from /var/tmp/rpm-tmp.kdkTKG (%build)
> > Bad exit status from /var/tmp/rpm-tmp.kdkTKG (%build)
> > RPM build errors:"
> > And it's telling me, that qmake finished/canceled and returned 1. Is
> > there no "build only" option with out creating RPM or deploy? Because
> > the lib could be copied by hand to mersdk build engine.
> > I've just started to learn/work with Qt/C++. Used Python so far. Maybe
> > it's just me. :) But my idea was to use ARMv7 compiler from Sailfish
> > IDE.
> > Some help here would be awesome! :)
> > Gabriel.
> > Am Mittwoch, den 12.11.2014, 03:07 +0500 schrieb Andrey Kozhevnikov:
> >> compile it from source?
> >> 12.11.2014 03:05, Gabriel Böhme пишет:
> >> > Hi sailors,
> >> >
> >> > got my Jolla some days ago and I'm really used to share links with
> >> > Pocket (getpocket.com) on N9 and Android.
> >> >
> >> > So I was looking for some details and found a hint that SailfishOS is using
> >> > transfer-engine from nemo mobile for sharing. So I played around with
> >> > the example plugin code from nemomobile, but it can't compile the example,
> >> > because it's missing nemotransferengine-qt5 package.
> >> >
> >> > Is there a repository that I have to add at first, or another way to get
> >> > the package? And is there any working example online?
> >> >
> >> > Thanks in advance,
> >> > Gabriel.
> >> >
> >> >
> >> > _______________________________________________
> >> > SailfishOS.org Devel mailing list
> >> > To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> >> _______________________________________________
> >> SailfishOS.org Devel mailing list
> >> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part
More information about the Devel