Skip to content

Commit

Permalink
blocks/sources/soapysdr: fix symbol issue with ffi library load on MacOS
Browse files Browse the repository at this point in the history
Fixes 'Symbol not found: __Z10getEnvImplPKc' on MacOS with libSoapySDR.

Signed-off-by: Vanya A. Sergeev <[email protected]>
  • Loading branch information
ralfbiedert authored and vsergeev committed Apr 13, 2018
1 parent b73d811 commit 49d6602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/blocks/sources/soapysdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if not package.loaded['radio.blocks.sinks.soapysdr'] then
int SoapySDRDevice_readStreamStatus(SoapySDRDevice *device, SoapySDRStream *stream, size_t *chanMask, int *flags, long long *timeNs, const long timeoutUs);
]]
end
local libsoapysdr_available, libsoapysdr = pcall(ffi.load, "libSoapySDR")
local libsoapysdr_available, libsoapysdr = pcall(ffi.load, "libSoapySDR", true)

function SoapySDRSource:initialize()
-- Check library is available
Expand Down

0 comments on commit 49d6602

Please sign in to comment.