# SoapyUHD and OpenUSRP

**URL:** <https://discourse.myriadrf.org/t/soapyuhd-and-openusrp/4560>\
**Category:** LimeSDR\
**Created:** [15 April 2019 17:17 UTC](https://discourse.myriadrf.org/t/soapyuhd-and-openusrp/4560 "2019-04-15T17:17:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mozoho77](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mozoho77](https://discourse.myriadrf.org/u/mozoho77)\
**Post date:** [15 April 2019 17:17 UTC](https://discourse.myriadrf.org/t/soapyuhd-and-openusrp/4560/1 "2019-04-15T17:17:12Z")

</div>

OpenUSRP

root@debian:~/OpenUSRP/build# cd …  
root@debian:~/OpenUSRP# rm -rf build  
root@debian:~/OpenUSRP# mkdir build && cd build && cmake …  
– The CXX compiler identification is GNU 6.3.0  
– The C compiler identification is GNU 6.3.0  
– Check for working CXX compiler: /usr/bin/c++  
– Check for working CXX compiler: /usr/bin/c++ – works  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Check for working C compiler: /usr/bin/cc  
– Check for working C compiler: /usr/bin/cc – works  
– Detecting C compiler ABI info  
– Detecting C compiler ABI info - done  
– Detecting C compile features  
– Detecting C compile features - done  
– Build type not specified: defaulting to release.  
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29”)  
– Checking for module ‘uhd’  
– Found uhd, version 003.009.005-0-unknown  
– Found UHD: /usr/lib/i386-linux-gnu/libuhd.so  
– UHD root directory: /usr  
– UHD include directories: /usr/include  
– UHD libraries: /usr/lib/i386-linux-gnu/libuhd.so  
– Checking uhd::device::register\_device() API…  
– Reading /usr/include/uhd/device.hpp…  
– has filter API  
– Checking uhd::property::set\_publisher() API…  
– Reading /usr/include/uhd/property\_tree.hpp…  
– missing set\_publisher() API  
– Found LIMESUITE: /usr/local/lib/libLimeSuite.so  
– LimeSuite include directories: /usr/local/include/lime  
– LimeSuite libraries: /usr/local/lib/libLimeSuite.so  
– Configuring Boost C++ Libraries…  
– Looking for pthread.h  
– Looking for pthread.h - found  
– Looking for pthread\_create  
– Looking for pthread\_create - not found  
– Looking for pthread\_create in pthreads  
– Looking for pthread\_create in pthreads - not found  
– Looking for pthread\_create in pthread  
– Looking for pthread\_create in pthread - found  
– Found Threads: TRUE  
– Boost version: 1.62.0  
– Found the following Boost libraries:  
– thread  
– system  
– atomic  
– chrono  
– date\_time  
– Boost include directories: /usr/include  
– Boost library directories: /usr/lib/i386-linux-gnu  
– Boost libraries: /usr/lib/i386-linux-gnu/libboost\_thread.so;/usr/lib/i386-linux-gnu/libboost\_system.so;/usr/lib/i386-linux-gnu/libboost\_atomic.so;/usr/lib/i386-linux-gnu/libboost\_chrono.so;/usr/lib/i386-linux-gnu/libboost\_date\_time.so;/usr/lib/i386-linux-gnu/libpthread.so  
– Configuring done  
– Generating done  
– Build files have been written to: /root/OpenUSRP/build  
root@debian:~/OpenUSRP/build# ls  
CMakeCache.txt CMakeFiles cmake\_install.cmake CTestTestfile.cmake Makefile  
root@debian:~/OpenUSRP/build# make  
Scanning dependencies of target OpenUSRP  
[33%] Building CXX object CMakeFiles/OpenUSRP.dir/limesdr\_impl.cpp.o  
/root/OpenUSRP/limesdr\_impl.cpp: In constructor ‘limesdr\_impl::limesdr\_impl(const lime::ConnectionHandle&, const uhd::device\_addr\_t&)’:  
/root/OpenUSRP/limesdr\_impl.cpp:127:34: error: ‘const struct lime::DeviceInfo’ has no member named ‘addrsLMS7002M’  
const size\_t numRFICs = devInfo.addrsLMS7002M.size();  
^ ~~~~~~~~~~~~  
CMakeFiles/OpenUSRP.dir/build.make:62: recipe for target ‘CMakeFiles/OpenUSRP.dir/limesdr\_impl.cpp.o’ failed  
make[2]: \*\*\* [CMakeFiles/OpenUSRP.dir/limesdr\_impl.cpp.o] Error 1  
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/OpenUSRP.dir/all’ failed  
make[1]: \*\*\* [CMakeFiles/OpenUSRP.dir/all] Error 2  
Makefile:138: recipe for target ‘all’ failed  
make: \*\*\* [all] Error 2  
root@debian:~/OpenUSRP/build#

And this:

root@debian:~/OpenUSRP/build#  
root@debian:~/OpenUSRP/build# which SoapySDR  
root@debian:~/OpenUSRP/build# whereis SoapySDR  
SoapySDR: /usr/local/lib/SoapySDR /usr/include/SoapySDR  
root@debian:~/OpenUSRP/build# whereis SoapyUHD  
SoapyUHD:  
root@debian:~/OpenUSRP/build# whereis uhd  
uhd: /usr/lib/uhd /usr/include/uhd.h /usr/include/uhd  
root@debian:~/OpenUSRP/build# uhd --version  
-su: uhd: command not found  
root@debian:~/OpenUSRP/build# SoapyUHD --version  
-su: SoapyUHD: command not found  
root@debian:~/OpenUSRP/build# SoapyUHD -^C  
root@debian:~/OpenUSRP/build# LimeUtil --find

- [LimeSDR Mini, media=USB 2.0, module=FT601, addr=xserial=x]

root@debian:~/OpenUSRP/build# uhd\_find\_devices  
linux; GNU C++ version 6.3.0 20170221; Boost\_106200; UHD\_003.009.005-0-unknown

Cannot connect to server socket err = No such file or directory  
Cannot connect to server request channel  
jack server is not running or cannot be started  
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

RtApiAlsa::getDeviceInfo: snd\_pcm\_open error for device (hw:0,0), Device or resource busy.

* * *

## – UHD Device 0

Device Address:  
default\_input: True  
default\_output: False  
device\_id: 0  
driver: audio  
label: hw:HDA Intel PCH,0  
type: soapy

* * *

## – UHD Device 1

Device Address:  
default\_input: False  
default\_output: False  
device\_id: 4  
driver: audio  
label: default  
type: soapy

* * *

## – UHD Device 2

Device Address:  
addr: x  
driver: lime  
media: USB  
module: uLimeSDR  
name: USB 2.0 (LimeSDR Mini)  
type: soapy

root@debian:~/OpenUSRP/build#

SoapyUHD

:1 (INCLUDE\_SUBDIRECTORY):  
Unknown CMake command “INCLUDE\_SUBDIRECTORY”.

CMake Warning (dev) in CMakeLists.txt:  
No cmake\_minimum\_required command is present. A line of code such as

```
cmake_minimum_required(VERSION 3.7)

```

should be added at the top of the file. The version specified may be lower  
if you wish to support older CMake versions for this project. For more  
information run “cmake --help-policy CMP0000”.  
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring incomplete, errors occurred!

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [15 April 2019 18:56 UTC](https://discourse.myriadrf.org/t/soapyuhd-and-openusrp/4560/2 "2019-04-15T18:56:29Z")

</div>

We do not support OpenUSRP, it does not look to have been updated in a long time and I very much doubt it will work with anything but a very old version of Lime Suite.

For SoapySDR questions you may want to post to the Pothos group, as it is part of this:

[https://groups.google.com/forum/#!forum/pothos-users](https://groups.google.com/forum/#!forum/pothos-users)
