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

Boost Error #3

Closed
sclel016 opened this issue Jul 20, 2021 · 4 comments
Closed

Boost Error #3

sclel016 opened this issue Jul 20, 2021 · 4 comments

Comments

@sclel016
Copy link

Hi,

I'm trying out the library and getting an error during the initialization of the radio object. Looks like an error with Boost version on my system. Before trying with Julia and UHDBindings.jl I used the Fedora uhd package which has a dependency on some Boost 1.75 libraries. Is it possible to modify the UHDBindings.jl module to prioritize libUHD.so in the system path instead?

Distro: Fedora 34
Julia: 1.6.1
Boost: 1.75

Error:

ERROR: could not load library "/home/<user>/.local/share/julia/artifacts/95ad926e1c215f57d98d15df1c28ddf72873a990/libuhd.so"
libboost_date_time.so.1.65.1: cannot open shared object file: No such file or directory
Stacktrace:
 [1] macro expansion
   @ ~/.local/share/julia/packages/UHDBindings/zrWMV/src/common.jl:97 [inlined]
 [2] openUHD(carrierFreq::Float64, samplingRate::Float64, gain::Int64, antenna::String; args::String)
   @ UHDBindings ~/.local/share/julia/packages/UHDBindings/zrWMV/src/UHDBindings.jl:90
 [3] openUHD (repeats 2 times)
   @ ~/.local/share/julia/packages/UHDBindings/zrWMV/src/UHDBindings.jl:88 [inlined]
 [4] top-level scope
   @ REPL[8]:1
@RGerzaguet
Copy link
Member

Hello,

I don't have the bandwidth to do so, but as a temporary workaround you can just dev the package and change line 26 of UHDBindings.jl from

const libUHD = joinpath(libUHD_rootpath, "libuhd.so");

to

const libUHD = "libuhd"

or even to

const libUHD = "/usr/lib/x86_64-linux-gnu/libuhd.so.4.xx";

if you have several UHD libs available and you want to use one specific version.

@sclel016
Copy link
Author

That was my temporary hack. If I can find some time, would you consider a PR that prioritizes system installs if present?

@RGerzaguet
Copy link
Member

RGerzaguet commented Jul 22, 2021

Yes of course 👍 , but I don't really know how to be able to switch from artifact to local install on the fly though.

@RGerzaguet
Copy link
Member

PR #4 is merged :)

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

No branches or pull requests

2 participants