nuand / gqrx Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hi there,
Is there any chance of getting the 124MHz support feature into the mainline of gqrx?
Looks like this repository depends on some modifications to gr-osmosdr, which even latest Nuand's gr-osmosdr repo does not contain..
Commenting ioctl stuff out with patch included works, but it's very ugly.
Is there any reason to use this repo instead of upstream at all?
diff --git a/src/applications/gqrx/receiver.cpp b/src/applications/gqrx/receiver.cpp
index b79b44c..11f2b73 100644
--- a/src/applications/gqrx/receiver.cpp
+++ b/src/applications/gqrx/receiver.cpp
@@ -319,14 +319,14 @@ double receiver::set_input_rate(double rate)
tb->lock();
ssa_mode = false;
- if (src->ioctl("ssa_support", (uint64_t)&max_sps)) {
- if (rate > max_sps) {
- ssa_mode = true;
- }
- }
+ // if (src->ioctl("ssa_support", (uint64_t)&max_sps)) {
+ // if (rate > max_sps) {
+ // ssa_mode = true;
+ // }
+ // }
if (ssa_mode) {
- d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)rate);
+ // d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)rate);
if (d_input_rate > 0 ) {
// d_input_rate = src->ioctl("get_ssa_config", &num_bin, &halfband);
@@ -335,7 +335,7 @@ double receiver::set_input_rate(double rate)
iq_fft->set_sweeping_mode(true, num_bin, halfband);
}
} else {
- d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)0);
+ // d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)0);
iq_fft->set_sweeping_mode(false, 0, 0);
d_input_rate = src->set_sample_rate(rate);
}
Hi,Nuand, I want to try 124MHZ bandwith with BladeRF,but there is something error:
cmake -DCMAKE_PREFIX_PATH=/home/init3/SDR/Qt5.7.0/5.7/gcc_64/lib/cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
fatal: 没有发现名称,无法描述任何东西。
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- program_options
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
-- Found gnuradio-runtime, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_RUNTIME: /usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: ANALOG
-- Checking for module 'gnuradio-analog'
-- Found gnuradio-analog, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-analog.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so;/usr/local/lib/libvolk.so
-- Found GNURADIO_ANALOG: /usr/local/lib/libgnuradio-analog.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so;/usr/local/lib/libvolk.so
GNURADIO_ANALOG_FOUND = TRUE
Checking for GNU Radio Module: AUDIO
-- Checking for module 'gnuradio-audio'
-- Found gnuradio-audio, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-audio.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_AUDIO: /usr/local/lib/libgnuradio-audio.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_AUDIO_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
-- Checking for module 'gnuradio-blocks'
-- Found gnuradio-blocks, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-blocks.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_BLOCKS: /usr/local/lib/libgnuradio-blocks.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: DIGITAL
-- Checking for module 'gnuradio-digital'
-- Found gnuradio-digital, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-digital.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_DIGITAL: /usr/local/lib/libgnuradio-digital.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_DIGITAL_FOUND = TRUE
Checking for GNU Radio Module: FFT
-- Checking for module 'gnuradio-fft'
-- Found gnuradio-fft, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_FFT: /usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_FFT_FOUND = TRUE
Checking for GNU Radio Module: FILTER
-- Checking for module 'gnuradio-filter'
-- Found gnuradio-filter, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-filter.so;/usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_FILTER: /usr/local/lib/libgnuradio-filter.so;/usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_FILTER_FOUND = TRUE
Checking for GNU Radio Module: PMT
-- Checking for module 'gnuradio-runtime'
-- Found gnuradio-runtime, version 3.7.12.0
* INCLUDES=/usr/local/include
* LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
-- Found GNURADIO_PMT: /usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so;/usr/lib/x86_64-linux-gnu/libgmpxx.so;/usr/lib/x86_64-linux-gnu/libgmp.so;/usr/lib/liblog4cpp.so
GNURADIO_PMT_FOUND = TRUE
-- Checking for module 'gnuradio-osmosdr'
-- Found gnuradio-osmosdr, version v0.1.4-127-g4d83c606
-- Found GNURADIO_OSMOSDR: /usr/local/lib/libgnuradio-osmosdr.so
-- Configuring done
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/init3/Tools/gqrx/build
make-j8:
[ 36%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/filter/decimator.cpp.o
[ 37%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/hbf_decim.cpp.o
[ 38%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/rds/decoder_impl.cc.o
[ 40%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/rds/parser_impl.cc.o
[ 41%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/agc_impl.cpp.o
[ 42%] Building CXX object src/CMakeFiles/gqrx.dir/dsp/correct_iq_cc.cpp.o
/home/init3/Tools/gqrx/src/applications/gqrx/receiver.cpp: In member function ‘double receiver::set_input_rate(double)’:
/home/init3/Tools/gqrx/src/applications/gqrx/receiver.cpp:322:14: error: ‘class osmosdr::source’ has no member named ‘ioctl’
if (src->ioctl("ssa_support", (uint64_t)&max_sps)) {
^
/home/init3/Tools/gqrx/src/applications/gqrx/receiver.cpp:329:29: error: ‘class osmosdr::source’ has no member named ‘ioctl’
d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)rate);
^
/home/init3/Tools/gqrx/src/applications/gqrx/receiver.cpp:338:29: error: ‘class osmosdr::source’ has no member named ‘ioctl’
d_input_rate = src->ioctl("set_ssa_sample_rate", (uint64_t)0);
^
/home/init3/Tools/gqrx/src/applications/gqrx/receiver.cpp:313:13: warning: unused variable ‘success’ [-Wunused-variable]
int success;
^
src/CMakeFiles/gqrx.dir/build.make:201: recipe for target 'src/CMakeFiles/gqrx.dir/applications/gqrx/receiver.cpp.o' failed
make[2]: *** [src/CMakeFiles/gqrx.dir/applications/gqrx/receiver.cpp.o] Error 1
/home/init3/Tools/gqrx/src/applications/gqrx/mainwindow.cpp: In member function ‘bool MainWindow::loadConfig(QString, bool)’:
/home/init3/Tools/gqrx/src/applications/gqrx/mainwindow.cpp:389:17: warning: variable ‘span_val’ set but not used [-Wunused-but-set-variable]
double span_val;
^
CMakeFiles/Makefile2:135: recipe for target 'src/CMakeFiles/gqrx.dir/all' failed
make[1]: *** [src/CMakeFiles/gqrx.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
System:Ubuntu 16.04
QT:5.7
Based on Qt 5.7.0 (GCC 4.9.1 20140922 , 64 bit)
reference:
https://www.youtube.com/watch?v=cgDbUQ6uR6w
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.