gnuradio Soapy and SDRPlay

  • This topic has 1 reply, 1 voice, and was last updated by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1607
    rlkeck
    Participant

      I have an Ubuntu system with gnuradio installed via apt. It also has Soapy support again installed via apt. Running SoapySDRUtil –info shows Soapy v0.7.2-1. It also shows it has drivers for multiple SDRs. gnuradio shows several OsmoSDR sources and sinks and a Soapy source and sink. The SDRPlay API 3 has been installed.
      If I get SoapySDRPlay from git and try to build it it fails evidently because it cannot find required CMake files for Soapy. If I follow SDRPlay’s installation instructions or run their installation script which rebuilds Soapy from source, it “works”, but now SoapySDRUtil –info shows Soapy v0.8 and all devices except SDRPlay are gone.
      How do you build SoapySDRPlay so that it is compatible with the installed version of Soapy and add it to the system so that Soapy can find it?
      I am not a Linux or CMake guru, so reasonably detailed instructions would be appreciated. Also, I have an RSPdx so I need to use API 3.

      #1614
      rlkeck
      Participant

        After a great deal of messing around, I have been able to get it to work, albeit on Windows with the prebuilt gnuradio Windows binaries, which actually is just fine with me. On Windows, the major problem is that the SoapySDR.lib export lib does not match the SoapySDR.dll dynamic link library (the mismatched date is a major clue). Fortunately it is possible to generate a .lib from a .dll. Once you’ve done that, you put it in the lib folder of you gnuradio install directory. You can then build sdrPlaySupport from the SoapySDRPlay3 repository on github. The resulting dll goes in lib\SoapySDR\modules0.8. Then copy the sdrplay_api.dll from your SDRPlay API install location to the bin directory of your gnuradio install directory. You can test using the SoapySDRUtil.exe utility in the bin directory of gnuradio. If SoapySDRUtil.exe –probe returns a lot of good stuff, you should be ready to go.
        I have attached a 7z archive with a batch file to generate a new SoapySDR.lib from SoapySDR.dll. It also contains SoapySDR.lib and a prebuilt sdrPlaySupport.dll for those who just want to use gnuradio with their SDRPlay device already.

        I’d still be interested in hearing if someone can get it to work on Ubuntu.

        Attachments:
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.