Hi, what about using a static library in your app?

------------------ Original ------------------
From:  "devel-request";<devel-requ...@lists.sailfishos.org>;
Date:  Fri, Sep 12, 2014 08:00 PM
To:  "devel"<devel@lists.sailfishos.org>; 

Subject:  Devel Digest, Vol 5, Issue 12



Send Devel mailing list submissions to
        devel@lists.sailfishos.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
or, via email, send a message with subject or body 'help' to
        devel-requ...@lists.sailfishos.org

You can reach the person managing the list at
        devel-ow...@lists.sailfishos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Devel digest..."


Today's Topics:

   1. Re: Include shared library (Reto Zingg)


----------------------------------------------------------------------

Message: 1
Date: Fri, 12 Sep 2014 10:43:21 +0300
From: Reto Zingg <reto.zi...@jolla.com>
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Include shared library
Message-ID: <5412a419.6010...@jolla.com>
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi,

On 11.09.2014 21:15, Steffen F?rster wrote:
> Hi
>
> I want to include two shared libraries in my RPM file and need some
> help. What is the proper configuration to include the libraries in the
> RPM. The libraries should be installed in the directory
> /usr/share/harbour-masterpassword/lib (harbour restriction). I have read
> the code of the project https://github.com/Elleo/cutespotify but I don't
> see the missing configuration lines.
>
> The application is executable but the RPM doesn't contain the shared
> libraries and the app uses the pre-installed libraries (harbour
> validation will fail).

It seem you are missing a (at least I didn't spot it...):

INSTALLS += lib

that would explain why it does not install the libs and are not in the rpm.

> The project code:
> https://github.com/steffen-foerster/harbour-masterpassword

I tried to compile your project, but seems out of the box it does not work.

Also the following you will need, to get it into Harbour:
https://harbour.jolla.com/faq#2.6.0


You can find an other example, which ships it's own libraries and is in 
store here:
https://github.com/d0b3rm4n/harbour-sidudict

br
Reto

>
> Thanks,
> Steffen
>
> This is my configuration:
>
> harbour-masterpassword.pro
> ==============================
> LIBS+=$$PWD/libssl/lib/libssl.so.10\
> $$PWD/libssl/lib/libcrypto.so.10
>
> INCLUDEPATH += libssl/include/openssl
>
> QMAKE_RPATHDIR += /usr/share/harbour-masterpassword/lib
>
> lib.path = usr/share/harbour-masterpassword/lib/
>
> lib.files += libssl/lib/libssl.so.10 \
> libssl/lib/libcrypto.so.10
>
> harbour-masterpassword.spec
> ==============================
> # >> macros
> # list here all the libraries your RPM installs
> %define __requires_exclude ^libssl|libcrypto.*$
> # << macros
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org



------------------------------

_______________________________________________
Devel mailing list
Devel@lists.sailfishos.org
https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel

End of Devel Digest, Vol 5, Issue 12
************************************
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to