Open szajsiwo opened 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
It looks like you forgot to checkout ExtIO_sddc linux_fixes
branch.
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"
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
I have gnuradio 3.10.1.1-2. make results in errors:
in cmake I got some warnings:'