Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Am Mittwoch, 12. Dezember 2018, 21:32:41 CET schrieb Caliste Damien:
> Hello,
> 
> Le mercredi 12 décembre 2018, Matthias Fehring a écrit :
> > But what works is when I use "generic" booster type, then the app
> > works.
> 
> From my understanding, this is expected. The booster will preload a
> given set of libraries (qt5 for instance) but if your plugin requires a
> library outside this set, the plugin will not be loaded because of
> unresolved symbols. I had the issue with GnuPG plugin in Sailfish
> Secrets. The daemon was launched with -type qt5, but my plugin was
> linking on gpgme.so in addition to all Qt libraries. Switching to
> generic solved the issue, as you noticed.

Hm, I was using an external private library before already. Only difference 
now is, that I load the library via a QML C++ plugin instead.

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Juokse Sina Humma" von "Korpiklaani".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
I guess I was little rash about the solution. Adding Q_DECL_EXPORT to the 
app's main function did not solve the issue. When testing it I forgot that I 
was again starting the executable directly without the invoker.

So it still only starts when using "generic" booster type.

I was using a private library before, when the booster worked as expected. 
Main difference now is, that I am using a C++ QML plugin that uses the library 
previously used directly in the app.

Am Mittwoch, 12. Dezember 2018, 23:21:39 CET schrieb Matthias Fehring:
> Thank you for  the solution Coderus :)
> 
> IMHO the hint about using Q_DECL_EXPORT for the main function is a bit
> hidden in the comments of sailfishapp.h. (found it there after your answer)
> 
> Best greetings
> 
> Matthias
> 
> Am Mittwoch, 12. Dezember 2018, 21:58:19 CET schrieb Андрей Кожевников:
> > your app main lacks of Q_DECL_EXPORT, so it can't be boosted.
> > 
> > ср, 12 дек. 2018 г. в 21:00, Matthias Fehring
> >  > 
> > > Hello
> > > 
> > > I am using a C++ QML plugin in an application that works as expected
> > > when
> > > the
> > > app executable is called directly. But when the application is loaded
> > > via
> > > mapplauncherd/booster, the window is blank without any error message.
> > > 
> > > So, the following works:
> > > /usr/bin/harbour-intfuorit
> > > 
> > > But with the silica-qt5 booster the app window is blank:
> > > /usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit
> > > 
> > > I also tried to use booster type "qt5", but the result is the same as
> > > with
> > > "silica-qt5".
> > > 
> > > But what works is when I use "generic" booster type, then the app works.
> > > 
> > > Now my question:
> > > Is that the expected behvior? Does only the "generic" booster support
> > > private
> > > C++ QML plugins? Or have i made a mistake somwhere?
> > > 
> > > App code is here:
> > > https://github.com/Huessenbergnetz/Intfuorit
> > > 
> > > QML plugin code:
> > > https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> > > huessenbergnetz/intfuorit
> > >  > > hu
> > > essenbergnetz/intfuorit>
> > > 
> > > Best greetings
> > > Matthias
> > > 
> > > --
> > > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > > (Friedrich Schiller - Die Räuber)
> > > 
> > > Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".
> > > 
> > > www.buschmann23.de
> > > GPG-Key: 0x614C3258
> > > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > > ___
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to
> > > devel-unsubscr...@lists.sailfishos.org


-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Mausen" von "MIA.".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Thank you for  the solution Coderus :)

IMHO the hint about using Q_DECL_EXPORT for the main function is a bit hidden 
in the comments of sailfishapp.h. (found it there after your answer)

Best greetings

Matthias

Am Mittwoch, 12. Dezember 2018, 21:58:19 CET schrieb Андрей Кожевников:
> your app main lacks of Q_DECL_EXPORT, so it can't be boosted.
> 
> ср, 12 дек. 2018 г. в 21:00, Matthias Fehring  
> > Hello
> > 
> > I am using a C++ QML plugin in an application that works as expected when
> > the
> > app executable is called directly. But when the application is loaded via
> > mapplauncherd/booster, the window is blank without any error message.
> > 
> > So, the following works:
> > /usr/bin/harbour-intfuorit
> > 
> > But with the silica-qt5 booster the app window is blank:
> > /usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit
> > 
> > I also tried to use booster type "qt5", but the result is the same as with
> > "silica-qt5".
> > 
> > But what works is when I use "generic" booster type, then the app works.
> > 
> > Now my question:
> > Is that the expected behvior? Does only the "generic" booster support
> > private
> > C++ QML plugins? Or have i made a mistake somwhere?
> > 
> > App code is here:
> > https://github.com/Huessenbergnetz/Intfuorit
> > 
> > QML plugin code:
> > https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> > huessenbergnetz/intfuorit
> >  > essenbergnetz/intfuorit>
> > 
> > Best greetings
> > Matthias
> > 
> > --
> > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > (Friedrich Schiller - Die Räuber)
> > 
> > Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".
> > 
> > www.buschmann23.de
> > GPG-Key: 0x614C3258
> > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Eine Stadt gibt auf" von "Turbostaat".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Андрей Кожевников
your app main lacks of Q_DECL_EXPORT, so it can't be boosted.

ср, 12 дек. 2018 г. в 21:00, Matthias Fehring :

> Hello
>
> I am using a C++ QML plugin in an application that works as expected when
> the
> app executable is called directly. But when the application is loaded via
> mapplauncherd/booster, the window is blank without any error message.
>
> So, the following works:
> /usr/bin/harbour-intfuorit
>
> But with the silica-qt5 booster the app window is blank:
> /usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit
>
> I also tried to use booster type "qt5", but the result is the same as with
> "silica-qt5".
>
> But what works is when I use "generic" booster type, then the app works.
>
> Now my question:
> Is that the expected behvior? Does only the "generic" booster support
> private
> C++ QML plugins? Or have i made a mistake somwhere?
>
> App code is here:
> https://github.com/Huessenbergnetz/Intfuorit
>
> QML plugin code:
> https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> huessenbergnetz/intfuorit
> 
>
> Best greetings
> Matthias
>
> --
> Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> (Friedrich Schiller - Die Räuber)
>
> Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".
>
> www.buschmann23.de
> GPG-Key: 0x614C3258
> GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Caliste Damien
Hello,

Le mercredi 12 décembre 2018, Matthias Fehring a écrit :
> But what works is when I use "generic" booster type, then the app
> works.
From my understanding, this is expected. The booster will preload a
given set of libraries (qt5 for instance) but if your plugin requires a
library outside this set, the plugin will not be loaded because of
unresolved symbols. I had the issue with GnuPG plugin in Sailfish
Secrets. The daemon was launched with -type qt5, but my plugin was
linking on gpgme.so in addition to all Qt libraries. Switching to
generic solved the issue, as you noticed.

Damien.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Hello

I am using a C++ QML plugin in an application that works as expected when the 
app executable is called directly. But when the application is loaded via 
mapplauncherd/booster, the window is blank without any error message.

So, the following works:
/usr/bin/harbour-intfuorit

But with the silica-qt5 booster the app window is blank:
/usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit

I also tried to use booster type "qt5", but the result is the same as with 
"silica-qt5".

But what works is when I use "generic" booster type, then the app works.

Now my question:
Is that the expected behvior? Does only the "generic" booster support private 
C++ QML plugins? Or have i made a mistake somwhere?

App code is here:
https://github.com/Huessenbergnetz/Intfuorit

QML plugin code:
https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
huessenbergnetz/intfuorit

Best greetings
Matthias

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] [Postponed] Sailfish OS, open source community collaboration meeting on Dec 13th 2018 at 09:00 UTC

2018-12-12 Thread James Noori

Hi all,

Due to an internal planning day clashing with tomorrow's meeting and the 
amount of work we have until the end of the year, we unfortunately need 
to postpone the meeting to the second week of January 2019 instead.


We apologize for any inconvenience caused, and we hope you understand.

*Next meeting will be held on Thursday, January 10th 2019 at 09:00 UTC.
*

Here is the link to where you can announce your topics: 
https://together.jolla.com/question/54157/sailfishos-open-source-collaboration-meeting-planning/*

*

Thanks for your understanding and patience

Merry Christmas and Happy New Year, talk to you in Jan 2019!

Cheers,
James*
*

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Share code for apps

2018-12-12 Thread Oleg Linkin
Create submodule in git with common items

ср, 12 дек. 2018 г. в 14:39, Michael Fuchs :

> Hi Sailors,
>
> I would like to share code (qml and c++) in two apps (namely daedalus
> and SMPC).
>
> I want both apps to have the almost same interface and so they have some
> qml components and c++ code in common.
>
> How would you organize this ?
>
> My favorite would be having both apps in one repository and change as
> little as necessary to the standard build-process of Sailfish.
>
> Should I (not?) use symlinks?
> e.g. daedalus/qml/common -> common/qml
>
> Would you prefer using three repos (daedalus, SMPC, common)?
>
> Are there any existing examples?
>
> Thanks for your hints,
> Michael.
>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Share code for apps

2018-12-12 Thread Michael Fuchs

Hi Sailors,

I would like to share code (qml and c++) in two apps (namely daedalus 
and SMPC).


I want both apps to have the almost same interface and so they have some 
qml components and c++ code in common.


How would you organize this ?

My favorite would be having both apps in one repository and change as 
little as necessary to the standard build-process of Sailfish.


Should I (not?) use symlinks?
e.g. daedalus/qml/common -> common/qml

Would you prefer using three repos (daedalus, SMPC, common)?

Are there any existing examples?

Thanks for your hints,
Michael.



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Sailfish.TransferEngine.SharePage downloads content

2018-12-12 Thread Oleg Linkin
Hi, all.
I try to use Sailfish.TransferEngine.SharePage in my code like in gallery
to share link to comics with accounts.

IconButton {

id: shareButton

icon.source: "image://Theme/icon-m-share"

anchors.verticalCenter: parent.verticalCenter

onClicked: {

pageStack.push("Sailfish.TransferEngine.SharePage",

{

   "source": comicProxy.stripImageUrl.toString(),

   "mimeType": "text/x-uri",

   "content": { "type": "text/x-uri",
"status": comicProxy.stripImageUrl.toString() },

   "serviceFilter": ["sharing", "e-mail"]

})

}

}

this is the code.

I have clipboard transfer engine plugin(only copies text to clupboard)
but when I try to use it in such case - sailfish downloads content by
link.

When I try to share link from browser with my plugin - all works fine
and link copied to clipboard.

How I can prevent downloading content?
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org