pothosware/SoapySDRPlay2

Issues compiling

iguanatamer opened this issue · 2 comments

I'm on arch linux and I'm getting this compile error.

/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+0x872): undefined reference to `pthread_cond_clockwait' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/sdrPlaySupport.dir/build.make:151: libsdrPlaySupport.so] Error 1 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/sdrPlaySupport.dir/all] Error 2 make: *** [Makefile:150: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

Just a guess, but it might be a missing pthread call from a recent change in the driver

Can you try adding -pthread to the list of options for "LIBRARIES"?

Should look like

LIBRARIES
        ${LIBSDRPLAY_LIBRARIES}
        -pthread

Yep, that did the trick! Thank you!