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