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

Cannot load SDRPlay library on MAC #2167

Closed
UncleBuck62 opened this issue Jun 15, 2024 · 13 comments
Closed

Cannot load SDRPlay library on MAC #2167

UncleBuck62 opened this issue Jun 15, 2024 · 13 comments

Comments

@UncleBuck62
Copy link

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
Copy link
Collaborator

srcejon commented Jun 15, 2024

You probably need to update to the latest SDRplay API.

@UncleBuck62
Copy link
Author

UncleBuck62 commented Jun 15, 2024

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

@srcejon
Copy link
Collaborator

srcejon commented Jun 16, 2024

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
Copy link
Collaborator

srcejon commented Jun 16, 2024

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

@UncleBuck62
Copy link
Author

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
Copy link

BeppeCH commented Jun 17, 2024

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
Copy link
Collaborator

srcejon commented Jun 18, 2024

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
Copy link

BeppeCH commented Jun 18, 2024

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
Copy link

BeppeCH commented Jun 18, 2024

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
Copy link
Author

UncleBuck62 commented Jun 18, 2024

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
Copy link
Collaborator

srcejon commented Jun 19, 2024

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
Copy link

BeppeCH commented Jun 20, 2024

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!

Copy link

This issue is going to be closed due to inactivity

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

No branches or pull requests

3 participants