AlexandreRouma / SDRPlusPlus

Cross-Platform SDR Software
GNU General Public License v3.0
3.79k stars 522 forks source link

Build from source fails with error "... no member named 'probe'" #1344

Closed gstalnaker closed 4 months ago

gstalnaker commented 4 months ago

WARNING: Filling out the template below is NOT optional. Issues not filling out this template will be closed without review.

FIRST: Before reporting any bug, make sure that the bug you are reporting has not been reported before. Also, try to use the nightly version if possible in case I've already fixed the bug.

Hardware

Software

Bug Description

Installed the required dependencies (from both package manager and from source). All source compiled installed in /usr/local/lib:

Attempt to make SDR++ fails with the following error:

$ cmake .. -DOPT_BUILD_SOAPY_SOURCE=OFF -DOPT_BUILD_AIRSPY_SOURCE=OFF -DOPT_BUILD_AIRSPYHF_SOURCE=OFF -DOPT_BUILD_HACKRF_SOURCE=OFF -DOPT_BUILD_SOAPY_SOURCE=OFF -DOPT_BUILD_PLUTOSDR_SOURCE=OFF
...
[ 61%] Building CXX object source_modules/audio_source/CMakeFiles/audio_source.dir/src/main.cpp.o
In file included from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/signal_path/../dsp/channel/rx_vfo.h:2,
                 from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/signal_path/vfo_manager.h:2,
                 from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/gui/main_window.h:6,
                 from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/gui/gui.h:7,
                 from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/source_modules/audio_source/src/main.cpp:3:
/home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/signal_path/../dsp/channel/frequency_xlator.h: In member function ‘int dsp::channel::FrequencyXlator::process(int, const dsp::complex_t*, dsp::complex_t*)’:
/home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/signal_path/../dsp/channel/frequency_xlator.h:44:13: warning: ‘volk_32fc_s32fc_x2_rotator_32fc’ is deprecated [-Wdeprecated-declarations]
   44 |             volk_32fc_s32fc_x2_rotator_32fc((lv_32fc_t*)out, (lv_32fc_t*)in, phaseDelta, &phase, count);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/dsp/stream.h:5,
                 from /home/guyst/source/SDRPP/SDRPlusPlus-nightly/core/src/gui/main_window.h:5:
/usr/local/include/volk/volk.h:1751:46: note: declared here
 1751 | extern VOLK_API p_32fc_s32fc_x2_rotator_32fc volk_32fc_s32fc_x2_rotator_32fc __attribute__((deprecated));
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/guyst/source/SDRPP/SDRPlusPlus-nightly/source_modules/audio_source/src/main.cpp: In member function ‘void AudioSourceModule::refresh()’:
/home/guyst/source/SDRPP/SDRPlusPlus-nightly/source_modules/audio_source/src/main.cpp:93:26: error: ‘struct RtAudio::DeviceInfo’ has no member named ‘probed’
   93 |                 if (info.probed && info.inputChannels < 2) { continue; }
      |                          ^~~~~~
make[2]: *** [source_modules/audio_source/CMakeFiles/audio_source.dir/build.make:76: source_modules/audio_source/CMakeFiles/audio_source.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1418: source_modules/audio_source/CMakeFiles/audio_source.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Steps To Reproduce

  1. Install/Build deps
  2. $ cmake .. from ./build
  3. Error results

It may be that the issue is the version of volk?? I grabbed the latest on their site. The build doc does not specify the volk version:

Install dependencies

cmake
fftw3
glfw
libvolk
zstd 
AlexandreRouma commented 4 months ago

Please read more carefully when downloading. image

You're using out of date code.