ryanvolz / radioconda

Software radio distribution and installer for conda
Other
396 stars 44 forks source link

SoapySDR can't load uhdSupport.dll #22

Closed ratzrattillo closed 2 years ago

ratzrattillo commented 2 years ago

I noticed an issue when using radioconda's SoapySDR libraries with my BladeRF 1.0 with XB200 extension board. I get the following error, when the xb200 is enabled:

SoapySDR::loadModule(C:\Users\myuser\AppData\Local\radioconda\Library/lib/SoapySDR/modules0.8/uhdSupport.dll) LoadLibrary() failed: Module not found.

The curious thing is, that the file uhdSupport.dll exists. When entering the path in the explorer, the file is existing. Might this be due to a mix of Path seperators "\" and "/" ? Is this rather considered to be a SoapySDR issue? The OS is Windows 10

ryanvolz commented 2 years ago

So if I understand correctly, you don't need to use UHD at all because you're trying to use a BladeRF which should have nothing to do with UHD. What happens if you uninstall soapysdr-module-uhd (mamba uninstall soapysdr-module-uhd) and try it? Instead of it being a path issue, it could be that it is finding uhdSupport.dll but failing to load it, probably because a library that it depends on is not found or is found with an incompatible version. Removing the UHD support module could help with that by removing the obstacle. You could also see if you have UHD installed anywhere aside from radioconda such that it might be interfering with loading radioconda's UHD module.

How are you accessing the SoapySDR device (e.g. through GNU Radio)? Do the command line utilities like SoapySDRUtil give the same error?

Are you able to use the BladeRF without using SoapySDR, like through the GNU Radio OsmoSDR blocks?

I don't think the mixed path separators is an issue because Windows can usually handle it (and it is not uncommon for software primarily developed on Linux), but maybe it is. I don't have a BladeRF to test with, so I can't say for sure that it works for me.

ratzrattillo commented 2 years ago

Thanks for your help. mamba uninstall soapysdr-module-uhd did the trick!

I am using SoapySDR via FutureSDR, a Rust SDR Runtime.

Yes, i have an instance of uhdSupport.dll also in C:\Program Files\PothosSDR\lib\SoapySDR\modules0.8. This might also be a reason. Thanks again!