Skip to content
guruofquality edited this page Dec 9, 2014 · 22 revisions

The main SoapySDR library really only requires CMake and a compiler. Additional components require additional dependencies. If those dependencies are not available, the component does not build.

  • CMake
  • C++ compiler

Optional depedencies

  • Boost for OsmoSDR devices support
  • Boost and UHD for UHD device support
  • Python dev and SWIG for python bindings
  • Numpy recommended for python bindings

Note: The OsmoSDR support module builds against low-level vendor libraries, which must be installed prior. Checkout the GrOsmoSDR wiki page for a list of vendor libraries: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR

http://i.imgur.com/rzuCBUr.png

Recommended apt-get install instructions for Ubuntu:

sudo apt-get install \
    cmake g++ \
    libpython-dev python-numpy swig \
    libboost-dev
http://i.imgur.com/YAu30uL.png

Optional dependencies based on your needs:

http://i.imgur.com/YImPftq.png
git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR
git submodule init #needed for osmo and uhd support
git submodule update

-- UPDATING FROM EXISTING CHECKOUT --

cd SoapySDR
git pull origin master
git submodule update

http://i.imgur.com/n7WReFx.png
mkdir build
cd build
cmake ..
make -j4
sudo make install
sudo ldconfig #needed on debian systems
SoapySDRUtil --info
https://developer.valvesoftware.com/w/images/6/6a/Visual_studio_logo.png

After configuring with CMake open a Visual studio development terminal and run:

cmake --build my_build_dir --config Release
cmake --build my_build_dir --config Release --target install
  • add C:\Program Files\SoapySDR to the %PATH%
  • open cmd and run SoapySDRUtil.exe --info

The SoapySDR library needs to know its installation path. The library is compiled with the CMAKE_INSTALL_PREFIX as the default search path for modules. However, if the library is installed to a different location other than the one it was configured with, the SOAPY_SDR_ROOT environment variable can be set to reflect the new installation path.

Clone this wiki locally