fventuri / soapysdrplay Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pothosware/soapysdrplay2
Soapy SDR plugin for SDRPlay
License: MIT License
This project forked from pothosware/soapysdrplay2
Soapy SDR plugin for SDRPlay
License: MIT License
I had a problem compiling the API3+RSPduo branch Fedora 32 (beta), using cmake version 3.17.0. The results of my initial attempts using cmake and make are shown below;
[jwatson@merlin build]$ cmake ..
-- Build type not specified: defaulting to release.
-- LIBSDRPLAY_INCLUDE_DIRS - /usr/local/include
-- LIBSDRPLAY_LIBRARIES - /usr/local/lib/libsdrplay_api.so
-- Module sdrPlaySupport configured with version: 0.3.0-9746de2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jwatson/develop/SoapySDRPlay/build
[jwatson@merlin build]$ make
Scanning dependencies of target sdrPlaySupport
[ 16%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registration.cpp.o
[ 33%] Building CXX object CMakeFiles/sdrPlaySupport.dir/sdrplay_api.cpp.o
[ 50%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o
[ 66%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Streaming.cpp.o
[ 83%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Version.cpp.o
[100%] Linking CXX shared module libsdrPlaySupport.so
/usr/bin/ld: CMakeFiles/sdrPlaySupport.dir/Streaming.cpp.o: in function `SoapySDRPlay::acquireReadBuffer(SoapySDR::Stream*, unsigned long&, void const**, int&, long long&, long)':
Streaming.cpp:(.text+0xa9d): undefined reference to `pthread_cond_clockwait'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sdrPlaySupport.dir/build.make:163: libsdrPlaySupport.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/sdrPlaySupport.dir/all] Error 2
make: *** [Makefile:147: all] Error 2
[jwatson@merlin build]$
I re-ran with make VERBOSE=1 and didn't see any pthread flags so following on from this StackOverflow post I added the following lines to CMakeLists.txt and the library now compiles;
set(CMAKE_LINKER_FLAGS "-pthread" CACHE STRING "Linker Flags" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_LINKER_FLAGS}" CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS}" CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS}" CACHE STRING "" FORCE)
[jwatson@merlin build]$ cmake ..
-- Build type not specified: defaulting to release.
-- LIBSDRPLAY_INCLUDE_DIRS - /usr/local/include
-- LIBSDRPLAY_LIBRARIES - /usr/local/lib/libsdrplay_api.so
-- Module sdrPlaySupport configured with version: 0.3.0-9746de2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jwatson/develop/SoapySDRPlay/build
[jwatson@merlin build]$ make clean && make
Scanning dependencies of target sdrPlaySupport
[ 16%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registration.cpp.o
[ 33%] Building CXX object CMakeFiles/sdrPlaySupport.dir/sdrplay_api.cpp.o
[ 50%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o
[ 66%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Streaming.cpp.o
[ 83%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Version.cpp.o
[100%] Linking CXX shared module libsdrPlaySupport.so
[100%] Built target sdrPlaySupport
[jwatson@merlin build]$
Hello,
first of all thanks for your work.
Have you already considered to get in contact with @cjcliffe or @guruofquality for moving your work from API3+RSPduo to an official repository under pothosware?
In this way we can add the soapy module to distro repositories.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.