f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.72k stars 420 forks source link

Cannot load SDRPlay library on MAC #2167

Open UncleBuck62 opened 1 week ago

UncleBuck62 commented 1 week ago

I just upgraded my SDRAngel to version 7.21.2 from 7.19 and not it cannot find my SDRPay RSP1A anymore.

According to the error log this is the problem:

2024-06-16 05:20:09.357 (D) PluginManager::loadPluginsDir: fileName: libinputsdrplayv3.dylib
2024-06-16 05:20:09.358 (W) PluginManager::loadPluginsDir: Cannot load library /Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib: (dlopen(/Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib, 0x0085): Library not loaded: libsdrplay_api.so.3
  Referenced from: <58BF731A-389C-383A-87CF-3AD28F3AA1E8> /Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib
  Reason: tried: 'libsdrplay_api.so.3' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibsdrplay_api.so.3' (no such file), 'libsdrplay_api.so.3' (no such file), '//libsdrplay_api.so.3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS//libsdrplay_api.so.3' (no such file), '//libsdrplay_api.so.3' (no such file))

Manually searching my MAC for any libsdrplay api file resulted in finding this: libsdrplay_api.so.3.15 but it resides in /Library/SDRplayAPI/3.15.0/lib/libsdrplay_api.so.3.15

SDR Connect finds the RSP1A with no issues.

What can I do to resolve this problem?

System is a MAC M1 Ultra running Sonoma 14.5

srcejon commented 1 week ago

You probably need to update to the latest SDRplay API.

UncleBuck62 commented 1 week ago

3.15 is the latest SDRPlay API and that is what is installed

srcejon commented 1 week ago

Ah, I forgot to update the post build step in sdrplayv3/CMakeLists.txt with the new version number. Need a better way of doing that.

srcejon commented 1 week ago

I've uploaded a new build - give that a try.

UncleBuck62 commented 1 week ago

Sorry, no luck there either... It showed exactly the same error in the log file

2024-06-17 08:44:06.997 (D) PluginManager::loadPluginsDir: fileName: libinputsdrplayv3.dylib
2024-06-17 08:44:06.998 (W) PluginManager::loadPluginsDir: Cannot load library /Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib: (dlopen(/Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib, 0x0085): Library not loaded: libsdrplay_api.so.3
  Referenced from: <58BF731A-389C-383A-87CF-3AD28F3AA1E8> /Applications/SDRangel.app/Contents/Resources/lib/plugins/libinputsdrplayv3.dylib
  Reason: tried: 'libsdrplay_api.so.3' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibsdrplay_api.so.3' (no such file), 'libsdrplay_api.so.3' (no such file), '//libsdrplay_api.so.3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS//libsdrplay_api.so.3' (no such file), '//libsdrplay_api.so.3' (no such file))
BeppeCH commented 1 week ago

I'm not a programmer but just wanted to share that after a few tries, the only combination with seems to be working on my MacBook Air M2 with a SDRplay RSP1B is SDRplay API 3.14.1 with SDRangel 7.20.1. Using the latest SDRangel built and/or SDRplay API 3.15 does not work, as SRangel does not recognise the device.

srcejon commented 1 week ago

Please give the 7.21.3 release a try. There was a slight change in library naming I'd missed. It should also have RSPdxR2 support.

BeppeCH commented 1 week ago

Hi srcejon. Many thanks. Version 7.21.3 works very well with SDRplay's RSP1B on the M2 MacBook Air when using SDRplay API 3.14.0. However, with API 3.15.0 SDRangel does not recognize the RSP1B. I have also access to an Intel Mac, but will only be able to test later.

BeppeCH commented 1 week ago

I just tested the new version (7.21.3) on an Intel Mac (Mac Pro 2019 with Intel Xeon) and it works fine with the API version 3.15.0 of SDRplay. So the issue seems to be specific to Apple Silicon computers.

UncleBuck62 commented 1 week ago

Yep. I can confirm that 7.21.3 is working with SDRPlay API 3.15 and an RSP1A now. Thanks for all your great work.

srcejon commented 1 week ago

Hi srcejon. Many thanks. Version 7.21.3 works very well with SDRplay's RSP1B on the M2 MacBook Air when using SDRplay API 3.14.0. However, with API 3.15.0 SDRangel does not recognize the RSP1B.

Not sure why that could be.

BeppeCH commented 6 days ago

Thanks. Just to be on the safe side, I repeated the test, this time also switching off antivirus etc. with the M2 MacBook Air and came to the same results. Actually, the most stable setup is version 7.20.1 with API 3.14.1. In any case, thanks for your support!