JuliaTelecom / UHDBindings.jl

Julia C bindings for UHD to monitor USRP devices.
MIT License
5 stars 3 forks source link

use USRPHardwareDriver in Yggdrasil/Pkg as libuhd provider #5

Closed sjkelly closed 3 years ago

sjkelly commented 3 years ago

Hi @RGerzaguet ! We have packaged libuhd in Yggdrasil, which should simplify some of the deployment here and add support for more platforms and architectures to this package. This uses USRPHardwareDriver_jll to provide libuhd. Unfortunately I do not have a USRP, so please be sure to test and let me know if there are issues here.

RGerzaguet commented 3 years ago

Wonderfull @sjkelly I really appreciate your help on this topic. I am really willing to switch to binary builders, I have still some opening questions/remarks, and maybe you can give me some insights

sjkelly commented 3 years ago

Good info, thanks! We should be able to generate 4.0 and 4.1 binaries. I'll have to do some investigating and ask around about the way to do this, but this shouldn't be an issue. FWIW these binaries are ARM, X86, Linux/Mac/BSD and they should all be compatible. Do you think it would be better to upgrade to 4.1?

A good way to control binary providers is through https://github.com/JuliaPackaging/Preferences.jl

sjkelly commented 3 years ago

This may be better for overriding artifacts: https://pkgdocs.julialang.org/v1/artifacts/#Overriding-artifact-locations

RGerzaguet commented 3 years ago

Hello @sjkelly Great news, the version you have provided works perfectly on x86 Linux distributions. I add some trouble related to the switch of UHD41 to our e3xx devices but it is now solved (and this is independent from your proposal) I have slightly updated the code you have worked on to add

Last step is to be sure that the test works on Mac, I will try to do this next week. Probably merge this at the same time we switch to libiio on AdalmPluto side for convergence.

Many many thanks for initiating this, this is a really better system I believe