vladisslav2011 / gr-osmosdr

Mirrored from git://git.osmocom.org/gr-osmosdr
http://osmocom.org/projects/osmosdr
GNU General Public License v3.0
6 stars 2 forks source link

errors during make ngrx_master branch under Ubuntu 22.04.1 #1

Open szajsiwo opened 1 year ago

szajsiwo commented 1 year ago

I have gnuradio 3.10.1.1-2. make results in errors:

[ 46%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o
[ 48%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_common.cc.o
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc: In constructor ‘source_impl::source_impl(const string&)’:
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc:268:32: error: expected primary-expression before ‘dev’
  268 |     BOOST_FOREACH( std::string dev, ngrx_source_c::get_devices() )
      |                                ^~~
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc:268:5: error: ‘BOOST_FOREACH’ was not declared in this scope; did you mean ‘BOOST_FINAL’?
  268 |     BOOST_FOREACH( std::string dev, ngrx_source_c::get_devices() )
      |     ^~~~~~~~~~~~~
      |     BOOST_FINAL
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/device.cc: In static member function ‘static osmosdr::devices_t osmosdr::device::find(const osmosdr::device_t&)’:
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/device.cc:197:30: error: expected primary-expression before ‘dev’
  197 |   BOOST_FOREACH( std::string dev, ngrx_source_c::get_devices() )
      |                              ^~~
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/device.cc:197:3: error: ‘BOOST_FOREACH’ was not declared in this scope; did you mean ‘BOOST_FINAL’?
  197 |   BOOST_FOREACH( std::string dev, ngrx_source_c::get_devices() )
      |   ^~~~~~~~~~~~~
      |   BOOST_FINAL
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc: In member function ‘virtual double source_impl::set_sample_rate(double)’:
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc:519:33: error: expected primary-expression before ‘*’ token
  519 |     BOOST_FOREACH( source_iface *dev, _devs )
      |                                 ^
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc:519:34: error: ‘dev’ was not declared in this scope; did you mean ‘div’?
  519 |     BOOST_FOREACH( source_iface *dev, _devs )
      |                                  ^~~
      |                                  div
/home/maro/SDR/vladisslav2011/gr-osmosdr/lib/source_impl.cc:519:5: error: ‘BOOST_FOREACH’ was not declared in this scope; did you mean ‘BOOST_FINAL’?
  519 |     BOOST_FOREACH( source_iface *dev, _devs )
      |     ^~~~~~~~~~~~~
      |     BOOST_FINAL
make[2]: * [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:118: lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o] Error 1
make[2]: * Waiting for unfinished jobs....
make[2]: * [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:76: lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o] Error 1
[ 48%] Built target doxygen_target
make[1]: * [CMakeFiles/Makefile2:450: lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: * [Makefile:146: all] Error 2

in cmake I got some warnings:'

cmake .. -DENABLE_NGRX=ON -DLIBSDDC_INCLUDE_DIRS=~/ExtIO_sddc/libsddc -DLIBSDDC_LIBRARIES=~/ExtIO_sddc/build/libsddc/libsddc.so
-- Build type not specified: defaulting to release.
-- Using GMP.
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.74.0") found components: date_time program_options system regex thread unit_test_framework 
-- User set python executable /usr/bin/python3
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable exact version "3.10.6") 
-- Extracting version information from git describe...
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.65") found components: chrono thread system 
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- Searching for GNURadio-Blocks...
--  Found GNURadio-Blocks: 1
-- Searching for IQ Balance...
--  Found IQ Balance: 1
-- Searching for UHD Drivers...
-- Checking for module 'uhd'
--   No package 'uhd' found
--  Found UHD Driver: 0
-- Searching for UHD Block...
--  Found UHD Block: 1
-- Searching for Volk...
--  Found Volk: 1
-- Checking for module 'libmirisdr'
--   No package 'libmirisdr' found
-- libmirisdr not found.
-- Checking for module 'libbladeRF'
--   No package 'libbladeRF' found
-- libbladeRF not found.
-- Checking for module 'libfreesrp'
--   No package 'libfreesrp' found
-- libfreesrp not found.
-- Checking for module 'libxtrx'
--   No package 'libxtrx' found
-- libxtrx not found.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable version "3.10.6", minimum required is "3") 
-- Found pybind11: /usr/include (found version "2.9.1")
-- 
-- Configuring Python support support...
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Dependency pybind11_FOUND = 1
--   Enabling Python support support.
--   Override with -DENABLE_PYTHON=ON/OFF
-- 
-- Configuring high resolution timing...
--   High resolution timing supported through clock_gettime.
-- 
-- Configuring Osmocom IQ Imbalance Correction support...
--   Dependency gnuradio-iqbalance_FOUND = 1
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrComponent.cmake:57 (CMAKE_DEPENDENT_OPTION)
  lib/CMakeLists.txt:131 (GR_REGISTER_COMPONENT)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Enabling Osmocom IQ Imbalance Correction support.
--   Override with -DENABLE_IQBALANCE=ON/OFF
-- 
-- Configuring FUNcube Dongle support...
--   Dependency GNURADIO_FUNCUBE_FOUND = TRUE
--   Enabling FUNcube Dongle support.
--   Override with -DENABLE_FCD=ON/OFF
-- 
-- Configuring IQ File Source & Sink support...
--   Dependency gnuradio-blocks_FOUND = 1
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrComponent.cmake:57 (CMAKE_DEPENDENT_OPTION)
  lib/CMakeLists.txt:149 (GR_REGISTER_COMPONENT)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Enabling IQ File Source & Sink support.
--   Override with -DENABLE_FILE=ON/OFF
-- 
-- 
-- Configuring Osmocom RTLSDR support...
--   Dependency LIBRTLSDR_FOUND = TRUE
--   Enabling Osmocom RTLSDR support.
--   Override with -DENABLE_RTL=ON/OFF
-- 
-- Configuring RTLSDR TCP Client support...
--   Dependency gnuradio-blocks_FOUND = 1
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrComponent.cmake:57 (CMAKE_DEPENDENT_OPTION)
  lib/CMakeLists.txt:165 (GR_REGISTER_COMPONENT)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Enabling RTLSDR TCP Client support.
--   Override with -DENABLE_RTL_TCP=ON/OFF
-- 
-- Configuring Ettus USRP Devices support...
--   Dependency UHD_FOUND = 0
--   Dependency gnuradio-uhd_FOUND = 1
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrComponent.cmake:57 (CMAKE_DEPENDENT_OPTION)
  lib/CMakeLists.txt:173 (GR_REGISTER_COMPONENT)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Disabling Ettus USRP Devices support.
--   Override with -DENABLE_UHD=ON/OFF
-- 
-- Configuring Osmocom MiriSDR support...
--   Dependency LIBMIRISDR_FOUND = FALSE
--   Disabling Osmocom MiriSDR support.
--   Override with -DENABLE_MIRI=ON/OFF
-- 
-- Configuring HackRF & rad1o Badge support...
--   Dependency LIBHACKRF_FOUND = TRUE
--   Enabling HackRF & rad1o Badge support.
--   Override with -DENABLE_HACKRF=ON/OFF
-- 
-- Configuring nuand bladeRF support...
--   Dependency LIBBLADERF_FOUND = FALSE
--   Disabling nuand bladeRF support.
--   Override with -DENABLE_BLADERF=ON/OFF
-- 
-- Configuring RFSPACE Receivers support...
--   Enabling RFSPACE Receivers support.
--   Override with -DENABLE_RFSPACE=ON/OFF
-- 
-- Configuring AIRSPY Receiver support...
--   Dependency LIBAIRSPY_FOUND = TRUE
--   Enabling AIRSPY Receiver support.
--   Override with -DENABLE_AIRSPY=ON/OFF
-- 
-- Configuring AIRSPY HF+ Receiver support...
--   Dependency LIBAIRSPYHF_FOUND = TRUE
--   Enabling AIRSPY HF+ Receiver support.
--   Override with -DENABLE_AIRSPYHF=ON/OFF
-- 
-- Configuring SoapySDR support support...
--   Dependency SoapySDR_FOUND = 1
--   Enabling SoapySDR support support.
--   Override with -DENABLE_SOAPY=ON/OFF
-- 
-- Configuring Red Pitaya SDR support...
--   Enabling Red Pitaya SDR support.
--   Override with -DENABLE_REDPITAYA=ON/OFF
-- 
-- Configuring FreeSRP support support...
--   Dependency LIBFREESRP_FOUND = FALSE
--   Disabling FreeSRP support support.
--   Override with -DENABLE_FREESRP=ON/OFF
-- 
-- Configuring XTRX SDR support...
--   Dependency LIBXTRX_FOUND = FALSE
--   Disabling XTRX SDR support.
--   Override with -DENABLE_XTRX=ON/OFF
-- 
-- Configuring NGRX support support...
--   Dependency LIBSDDC_FOUND = TRUE
--   Enabling NGRX support support.
--   Override with -DENABLE_NGRX=ON/OFF
-- Python checking for pygccxml - found
-- 
-- ######################################################
-- # Gnuradio enabled components                         
-- ######################################################
--   * Python support
--   * Osmocom IQ Imbalance Correction
--   * FUNcube Dongle
--   * IQ File Source & Sink
--   * Osmocom RTLSDR
--   * RTLSDR TCP Client
--   * HackRF & rad1o Badge
--   * RFSPACE Receivers
--   * AIRSPY Receiver
--   * AIRSPY HF+ Receiver
--   * SoapySDR support
--   * Red Pitaya SDR
--   * NGRX support
-- 
-- ######################################################
-- # Gnuradio disabled components                        
-- ######################################################
--   * Ettus USRP Devices
--   * Osmocom MiriSDR
--   * nuand bladeRF
--   * FreeSRP support
--   * XTRX SDR
-- 
-- Building for version: 0.2.0.0 / 0.2.0
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
vladisslav2011 commented 1 year ago

Confirmed. Fixed in https://github.com/vladisslav2011/gr-osmosdr/commit/6d89fafc1147bc45121a78a808a9a92dda428f77

szajsiwo commented 1 year ago

now I got:

[ 53%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ngrx/ngrx_source_c.cc.o In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:78:25: error: expected ‘,’ or ‘...’ before ‘this’ 78 | void sddc_close(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:80:41: error: expected ‘,’ or ‘...’ before ‘this’ 80 | enum SDDCStatus sddc_get_status(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:82:44: error: expected ‘,’ or ‘...’ before ‘this’ 82 | enum SDDCHWModel sddc_get_hw_model(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:84:44: error: expected ‘,’ or ‘...’ before ‘this’ 84 | const char sddc_get_hw_model_name(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:86:36: error: expected ‘,’ or ‘...’ before ‘this’ 86 | uint16_t sddc_get_firmware(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:88:48: error: expected ‘,’ or ‘...’ before ‘this’ 88 | const double sddc_get_frequency_range(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:90:38: error: expected ‘,’ or ‘...’ before ‘this’ 90 | enum RFMode sddc_get_rf_mode(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:92:30: error: expected ‘,’ or ‘...’ before ‘this’ 92 | int sddc_set_rf_mode(sddc_t this, enum RFMode rf_mode); | ^~~~ /usr/local/include/libsddc.h:96:25: error: expected ‘,’ or ‘...’ before ‘this’ 96 | int sddc_led_on(sddc_t this, uint8_t led_pattern); | ^~~~ /usr/local/include/libsddc.h:98:26: error: expected ‘,’ or ‘...’ before ‘this’ 98 | int sddc_led_off(sddc_t this, uint8_t led_pattern); | ^~~~ /usr/local/include/libsddc.h:100:29: error: expected ‘,’ or ‘...’ before ‘this’ 100 | int sddc_led_toggle(sddc_t this, uint8_t led_pattern); | ^~~~ /usr/local/include/libsddc.h:104:33: error: expected ‘,’ or ‘...’ before ‘this’ 104 | int sddc_get_adc_dither(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:106:33: error: expected ‘,’ or ‘...’ before ‘this’ 106 | int sddc_set_adc_dither(sddc_t this, int dither); | ^~~~ /usr/local/include/libsddc.h:108:33: error: expected ‘,’ or ‘...’ before ‘this’ 108 | int sddc_get_adc_random(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:110:33: error: expected ‘,’ or ‘...’ before ‘this’ 110 | int sddc_set_adc_random(sddc_t this, int random); | ^~~~ /usr/local/include/libsddc.h:114:40: error: expected ‘,’ or ‘...’ before ‘this’ 114 | double sddc_get_hf_attenuation(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:116:37: error: expected ‘,’ or ‘...’ before ‘this’ 116 | int sddc_set_hf_attenuation(sddc_t this, double attenuation); | ^~~~ /usr/local/include/libsddc.h:118:30: error: expected ‘,’ or ‘...’ before ‘this’ 118 | int sddc_get_hf_bias(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:120:30: error: expected ‘,’ or ‘...’ before ‘this’ 120 | int sddc_set_hf_bias(sddc_t this, int bias); | ^~~~ /usr/local/include/libsddc.h:124:41: error: expected ‘,’ or ‘...’ before ‘this’ 124 | double sddc_get_tuner_frequency(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:126:38: error: expected ‘,’ or ‘...’ before ‘this’ 126 | int sddc_set_tuner_frequency(sddc_t this, double frequency); | ^~~~ /usr/local/include/libsddc.h:128:44: error: expected ‘,’ or ‘...’ before ‘this’ 128 | int sddc_get_tuner_rf_attenuations(sddc_t this, const double attenuations[]); | ^~~~ /usr/local/include/libsddc.h:130:46: error: expected ‘,’ or ‘...’ before ‘this’ 130 | double sddc_get_tuner_rf_attenuation(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:132:43: error: expected ‘,’ or ‘...’ before ‘this’ 132 | int sddc_set_tuner_rf_attenuation(sddc_t this, double attenuation); | ^~~~ /usr/local/include/libsddc.h:134:44: error: expected ‘,’ or ‘...’ before ‘this’ 134 | int sddc_get_tuner_if_attenuations(sddc_t this, const double attenuations[]); | ^~~~ /usr/local/include/libsddc.h:136:46: error: expected ‘,’ or ‘...’ before ‘this’ 136 | double sddc_get_tuner_if_attenuation(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:138:43: error: expected ‘,’ or ‘...’ before ‘this’ 138 | int sddc_set_tuner_if_attenuation(sddc_t this, double attenuation); | ^~~~ /usr/local/include/libsddc.h:140:31: error: expected ‘,’ or ‘...’ before ‘this’ 140 | int sddc_get_vhf_bias(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:142:31: error: expected ‘,’ or ‘...’ before ‘this’ 142 | int sddc_set_vhf_bias(sddc_t this, int bias); | ^~~~ /usr/local/include/libsddc.h:149:37: error: expected ‘,’ or ‘...’ before ‘this’ 149 | double sddc_get_sample_rate(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:151:34: error: expected ‘,’ or ‘...’ before ‘this’ 151 | int sddc_set_sample_rate(sddc_t this, double sample_rate); | ^~~~ /usr/local/include/libsddc.h:153:35: error: expected ‘,’ or ‘...’ before ‘this’ 153 | int sddc_set_async_params(sddc_t this, uint32_t frame_size, | ^~~~ /usr/local/include/libsddc.h:157:34: error: expected ‘,’ or ‘...’ before ‘this’ 157 | int sddc_start_streaming(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:159:32: error: expected ‘,’ or ‘...’ before ‘this’ 159 | int sddc_handle_events(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:161:33: error: expected ‘,’ or ‘...’ before ‘this’ 161 | int sddc_stop_streaming(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:163:31: error: expected ‘,’ or ‘...’ before ‘this’ 163 | int sddc_reset_status(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:165:28: error: expected ‘,’ or ‘...’ before ‘this’ 165 | int sddc_read_sync(sddc_t this, uint8_t data, int length, int transferred); | ^~~~ /usr/local/include/libsddc.h:169:46: error: expected ‘,’ or ‘...’ before ‘this’ 169 | double sddc_get_frequency_correction(sddc_t this); | ^~~~ /usr/local/include/libsddc.h:171:43: error: expected ‘,’ or ‘...’ before ‘this’ 171 | int sddc_set_frequency_correction(sddc_t this, double correction); | ^~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In constructor ‘ngrx_source_c::ngrx_source_c(const string&)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:167:24: error: too many arguments to function ‘int sddc_set_async_params(sddc_t)’ 167 | sddc_set_async_params(_dev, 0, 0, ngrx_source_c::_sddc_callback, this); | ~~~~~^~~~~~~~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:153:5: note: declared here 153 | int sddc_set_async_params(sddc_t this, uint32_t frame_size, | ^~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:168:19: error: too many arguments to function ‘int sddc_set_hf_bias(sddc_t)’ 168 | sddc_set_hf_bias(_dev, hf_bias); | ~~~~^~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:120:5: note: declared here 120 | int sddc_set_hf_bias(sddc_t this, int bias); | ^~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:169:20: error: too many arguments to function ‘int sddc_set_vhf_bias(sddc_t)’ 169 | sddc_set_vhf_bias(_dev, vhf_bias); | ~~~^~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:142:5: note: declared here 142 | int sddc_set_vhf_bias(sddc_t this, int bias); | ^~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:170:22: error: too many arguments to function ‘int sddc_set_adc_dither(sddc_t)’ 170 | sddc_set_adc_dither(_dev, dither_on); | ~~~~~^~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:106:5: note: declared here 106 | int sddc_set_adc_dither(sddc_t this, int dither); | ^~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:171:22: error: too many arguments to function ‘int sddc_set_adc_random(sddc_t)’ 171 | sddc_set_adc_random(_dev, random_on); | ~~~~~^~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:110:5: note: declared here 110 | int sddc_set_adc_random(sddc_t this, int random); | ^~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In destructor ‘virtual ngrx_source_c::~ngrx_source_c()’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:183:21: error: too many arguments to function ‘int sddc_set_hf_bias(sddc_t)’ 183 | sddc_set_hf_bias(_dev, 0); | ~~~~^~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:120:5: note: declared here 120 | int sddc_set_hf_bias(sddc_t this, int bias); | ^~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:184:22: error: too many arguments to function ‘int sddc_set_vhf_bias(sddc_t)’ 184 | sddc_set_vhf_bias(_dev, 0); | ~~~^~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:142:5: note: declared here 142 | int sddc_set_vhf_bias(sddc_t this, int bias); | ^~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_sample_rate(double)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:357:25: error: too many arguments to function ‘int sddc_set_sample_rate(sddc_t)’ 357 | sddc_set_sample_rate( _dev, (uint32_t)rate); | ~~~~^~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:151:5: note: declared here 151 | int sddc_set_sample_rate(sddc_t this, double sample_rate); | ^~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_center_freq(double, size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:389:29: error: too many arguments to function ‘int sddc_set_tuner_frequency(sddc_t)’ 389 | sddc_set_tuner_frequency( _dev, (uint32_t)corr_freq ); | ~~~~~~^~~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:126:5: note: declared here 126 | int sddc_set_tuner_frequency(sddc_t this, double frequency); | ^~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_gain(double, const string&, size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:480:38: error: too many arguments to function ‘int sddc_set_tuner_if_attenuation(sddc_t)’ 480 | sddc_set_tuner_if_attenuation(_dev, gain); | ~~~~~~~^~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:138:5: note: declared here 138 | int sddc_set_tuner_if_attenuation(sddc_t this, double attenuation); | ^~~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:485:38: error: too many arguments to function ‘int sddc_set_tuner_rf_attenuation(sddc_t)’ 485 | sddc_set_tuner_rf_attenuation(_dev, gain); | ~~~~~~~^~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:132:5: note: declared here 132 | int sddc_set_tuner_rf_attenuation(sddc_t this, double attenuation); | ^~~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_if_gain(double, size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:508:34: error: too many arguments to function ‘int sddc_set_tuner_rf_attenuation(sddc_t)’ 508 | sddc_set_tuner_rf_attenuation(_dev, gain); | ~~~~~~~^~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:132:5: note: declared here 132 | int sddc_set_tuner_rf_attenuation(sddc_t this, double attenuation); | ^~~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_bb_gain(double, size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:514:34: error: too many arguments to function ‘int sddc_set_tuner_if_attenuation(sddc_t)’ 514 | sddc_set_tuner_if_attenuation(_dev, gain); | ~~~~~~~^~~~~~ In file included from /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:41: /usr/local/include/libsddc.h:138:5: note: declared here 138 | int sddc_set_tuner_if_attenuation(sddc_t *this, double attenuation); | ^~~~~~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::set_bandwidth(double, size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:539:3: error: ‘sddc_set_tuner_bw’ was not declared in this scope 539 | sddc_set_tuner_bw(_dev, bandwidth); | ^~~~~ /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc: In member function ‘virtual double ngrx_source_c::get_bandwidth(size_t)’: /home/maro/SDR/vladisslav2011/gr-osmosdr/lib/ngrx/ngrx_source_c.cc:545:17: error: ‘sddc_get_tuner_bw’ was not declared in this scope 545 | return double(sddc_get_tuner_bw( _dev )); | ^~~~~ make[2]: [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:384: lib/CMakeFiles/gnuradio-osmosdr.dir/ngrx/ngrx_source_c.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:450: lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

vladisslav2011 commented 1 year ago

It looks like you forgot to checkout ExtIO_sddc linux_fixes branch.

szajsiwo commented 1 year ago

moved all to /root and it compilled succesfully but there is some error regarding pulseaudio:

root@maro-B550I-AORUS-PRO-AX:~/build/gr-osmosdr/build# sudo LD_PRELOAD=~/gr-osmosdr/build/lib/libgnuradio-osmosdr.so gqrx QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' "Pulseaudio error: Access denied"

vladisslav2011 commented 1 year ago

I don't recommend running Gqrx under root. It may be better to remove all build directories and cloned repositories and retry under normal user.

git clone https://github.com/vladisslav2011/ExtIO_sddc
cd ExtIO_sddc
git checkout linux_fixes
mkdir build
cd build
cmake ..
make -j9
cd
git clone https://github.com/vladisslav2011/gr-osmosdr
cd gr-osmosdr
git checkout ngrx_master
mkdir build
cd build
cmake .. -DENABLE_NGRX=ON -DLIBSDDC_INCLUDE_DIRS=~/ExtIO_sddc/libsddc -DLIBSDDC_LIBRARIES=~/ExtIO_sddc/build/libsddc/libsddc.so
make -j9
cd
LD_PRELOAD=~/gr-osmosdr/build/lib/libgnuradio-osmosdr.so gqrx