*** zbenjamin is now known as Guest34361 | 02:09 | |
*** zbenjamin_ is now known as zbenjamin | 02:09 | |
*** frinring_ is now known as frinring | 11:50 | |
antis | Hey and happy new year everyone! | 15:04 |
---|---|---|
quicquid | happy new year to you too, antis! | 15:04 |
antis | Could somebody here help with deployment of shared libraries (to harbour)? | 15:12 |
antis | More specific: How to remove the "namelinks" (libmylibrary.so -> libmylibrary.so.123) in the RPM without breaking the linker on the device? | 15:18 |
quicquid | i've only generally developed for linux but this sounds rather hacky - wouldn't an LD_LIBRARY_PATH override not be safer? | 15:19 |
Nico[m] | Why would you want to do that? | 15:20 |
antis | Because harbour packaging does not allow symlinks in the rpm. | 15:22 |
karry | I am using cmake to build my project - everything that I need for that is to define RPATH: -DCMAKE_INSTALL_RPATH=%{_datadir}/%{name}/lib/: | 15:23 |
karry | and then copy libraries to %{buildroot}%{_datadir}/%{name}/lib | 15:24 |
karry | and add it to rpm: %{_datadir}/%{name}/lib/ | 15:25 |
antis | karry: Yeah also cmake here; also set the RPATH in the RPM (should be correct but I recheck…) | 15:25 |
karry | see https://github.com/Karry/osmscout-sailfish/blob/master/rpm/harbour-osmscout.spec | 15:25 |
Nico[m] | I think you can put anything you like in your rpath, but never intall libraries ouside of your application directory | 15:26 |
antis | karry: Actually I think I took this project (OSM Scout) as a template… :) | 15:26 |
karry | antis: :-) | 15:30 |
rinigus | hi! I wonder whether there is a call that would give me DPI of the device? ideally qt c++ | 15:31 |
antis | rinigus: Have a look at QScreen (Screen in QML). | 15:34 |
rinigus | antis: thanks, will do | 15:35 |
rinigus | antis: thanks, seems to work | 16:04 |
antis | rinigus: always a pleasure :) | 16:31 |
*** Snoras_ is now known as Snoras | 16:44 | |
antis | karry: btw. "_target_cpu" is more precise than just "_arch" (probably helps with the confusion about the - discontinued - Jolla tablet) | 16:50 |
johansmitsnl | Building a app that has Python depends, what is the recommended way of adding depends (that are not packaged) ? | 17:30 |
antis | johansmitsnl: What "depends" do you mean? Package dependencies? Shared libraries? | 18:02 |
johansmitsnl | antis: yes | 18:19 |
johansmitsnl | shared libraries that are not part of Python core | 18:19 |
johansmitsnl | I'm making a app for Kraken and I want to add this depend: https://github.com/veox/python3-krakenex#locally-for-a-project-in-a-virtual-environment-recommended | 18:21 |
antis | johansmitsnl: Okay then you could start by having a look inside SailfishSDK's FAQ. Custom Libraries must be located at "/usr/shared/harbour-<app-name>/…" ("lib" is a common subdirectory convention) and contain no "namelinks". | 18:28 |
antis | karry: Btw. I found a solution for my specific problem (how to copy only the required libs to the target device's RPATH). I will clean it up a little and post a link which probably is interesting for you as well… | 18:31 |
johansmitsnl | antis: would you mind sharing me the link to that piece of documentation? What I have until now is https://sailfishos.org/wiki/Application_Development and https://sailfishos.org/develop/docs/libsailfishapp/ but I did not find the relevant information | 18:33 |
antis | johansmitsnl: https://harbour.jolla.com/faq#RPM-Packaging | 18:43 |
antis | johansmitsnl: Sorry it's the harbour faq… | 18:43 |
johansmitsnl | antis: thanks, I'm new with the development (of Sailfish and QT) and I'm having some difficulties setting it up. I'm from a Ruby space so Python is not that different. Just need it to have a concept working to continue on it. Thanks for the help so far | 18:47 |
johansmitsnl | you know a project that I can have a peek how it is done, and I will read the documentation of it. | 18:49 |
antis | https://gitlab.com/antis81/toxer-sfos/blob/work/rpm/harbour-toxer.spec#L78 | 18:58 |
antis | The promised link :) | 18:59 |
johansmitsnl | antis: thanks! | 19:03 |
antis | karry: Maybe can you have a look inside the spec file? Took some time, but at least now I underestand the full situation with the libraries and where the problem starts -> https://gitlab.com/antis81/toxer-sfos/blob/work/setup-sfsdk.sh#L58 | 19:35 |
antis | karry: Ah nevermind. It works "acceptable" the way it is now. | 20:02 |
johansmitsnl | antis: I got it to work, thanks for the help | 20:37 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!