Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive runtime linux deps: rtlsdr #48

Open
leamas opened this issue Jan 13, 2021 · 7 comments
Open

Excessive runtime linux deps: rtlsdr #48

leamas opened this issue Jan 13, 2021 · 7 comments

Comments

@leamas
Copy link

leamas commented Jan 13, 2021

The plugin seemingly depends on librtlsdr, the Debian packaging of https://github.com/osmocom/rtl-sdr. This causes problems with the new plugin installer since users manually must install the Debian package for plugin to work.

The first action would be if this software actually uses the dependency. If so, it might be possible to rebuild it from source, or find some other solution to walk around the problem.

@rgleason
Copy link
Owner

Alec
I hope to be updating weatherfax data files soon and need to know what to do about this.

Linux users and RPI have been using the rtlsdr dongle to download weatherfax into Opencpn and apparently its been working for some time now.

The advantage is that expensive weather services can be avoided completely. I have not been successful getting an rtlsdr dongle to work with weatherfax_pi in Windows, but would very much like to get it working.

There are various workarounds that may not be quite as convenient.

So you want us to remove librtlsdr.... is there a workaround of some sort? I will need to discuss this with Sean too.

@leamas
Copy link
Author

leamas commented Apr 22, 2021

So you want us to remove librtlsdr....

Certainly not. What we need to do is to remove dependencies on external packages, more or less as on Windows or MacOS

The solution might be to bundle it on linux, that seems like the simplest solution there. See for example photolayer which does this for linux deps.

@leamas
Copy link
Author

leamas commented Apr 22, 2021

hm... or perhaps it might be better to rebuild it from source, that should solve the situation at least also for windows. The package doesn't seem that complicated to build, see https://osmocom.org/projects/rtl-sdr/repository

@leamas
Copy link
Author

leamas commented Apr 22, 2021

A quick check: library builds out of the box on both windows and linux. Probably the best path, fixes problems for mulitple platforms (or at least a chance).

@leamas
Copy link
Author

leamas commented Apr 22, 2021

It does not build out of the box on MacOS. First, libusb needs to be installed using brew. There seems to be a bug in CMakeLists as well, it locates libusb but does not include the linker flags. Probably simple to fix.

@rgleason
Copy link
Owner

Thank you Alec, I did not realize you were actually building! There might be a way to support rtlsdr with a little additional work.

@leamas
Copy link
Author

leamas commented Apr 23, 2021

I just made some quick checks. No time to push this forward ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants