SoapySDR icon indicating copy to clipboard operation
SoapySDR copied to clipboard

Additional ways to specify module search path

Open guruofquality opened this issue 8 years ago • 4 comments

The goal: To make it easier for 3rd parties to install hardware support modules and to have them loaded automatically at runtime:

  • On windows, a registry path that is searched for keys. This is very similar to how the python path registry entry works. Installers for 3rd party support modules can create their own unique key in the registry and remove it on uninstall.
  • I assume most unix style installers will use the lib/SoapySDR/modules directory to install support modules. Consider an etc conf.d style directory much like the registry option above where installers can deposit their own search paths into a file like /etc/SoapySDR/conf.d/MySuperSDR.conf where MySuperSDR might be a package that goes into /opt and not the regular file system hierarchy.
  • A conf/ini style file in the HOME/APPDATA directory that the user can edit to specify additional search paths.

guruofquality avatar Mar 22 '16 19:03 guruofquality

What I would like is an env variable where you can add a search path/paths. This is very useful for plugin development, ie. Gstreamer has GST_PLUGIN_PATH that you can set to your build directory.

ast avatar May 21 '18 08:05 ast

yes: https://github.com/pothosware/SoapySDR/blob/master/lib/Modules.in.cpp#L141 SOAPY_SDR_PLUGIN_PATH

guruofquality avatar May 21 '18 14:05 guruofquality

I had the same concern and I found out by looking at the code, but then before updating the wiki I found out this issue.

I don't know what's the policy for updating the wiki.

Specifically I would add in the section https://github.com/pothosware/SoapySDR/wiki#plugin-architecture something like

Via the environment variable `SOAPY_SDR_PLUGIN_PATH` it is possible to specify custom alternative
search paths for installed modules.
(e.g. `export SOAPY_SDR_PLUGIN_PATH=~/workspace/SoapyRemote/build/install_here/lib/SoapySDR/modules0.8`)

albestro avatar Apr 11 '21 16:04 albestro

I don't know what's the policy for updating the wiki

Go for it :-) Sounds good to me

guruofquality avatar Apr 12 '21 21:04 guruofquality