Coder Social home page Coder Social logo

gqrx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gqrx's Issues

errors compiling: ioctl not defined

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);
     }

can't suport gnuradio 3.7.12?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.