gqrx: new package
PATCH v3 1/1 gqrx: new package
From: Gwenhael Goavec-Merou <[email protected]>
Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit. Currently it works on Linux and Mac with hardware supported by gr-osmosdr, including Funcube Dongle, RTL-SDR, Airspy, HackRF, BladeRF, RFSpace, USRP and SoapySDR.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument. There are also various hooks for interacting with external application using network sockets.
---
Changes v2 -> v3:
* backport patch to fix Wmisleading-indentation with gcc6;
* inherits alsa-lib or portaudio dependencies from gr-audio;
* reduce help text size;
* add upstream url.
Changes v1 -> v2:
* typo
--- package/Config.in | 1 + package/gqrx/0001-fix_compilation_in_gcc-6.patch | 34 ++++++++++++++++++++++ package/gqrx/Config.in | 36 ++++++++++++++++++++++++ package/gqrx/gqrx.hash | 2 ++ package/gqrx/gqrx.mk | 15 ++++++++++ 5 files changed, 88 insertions(+) create mode 100644 package/gqrx/0001-fix_compilation_in_gcc-6.patch create mode 100644 package/gqrx/Config.in create mode 100644 package/gqrx/gqrx.hash create mode 100644 package/gqrx/gqrx.mk
package/Config.in +1 -0
@@ -1429,6 +1429,7 @@ menu "Miscellaneous" source "package/empty/Config.in" source "package/gnuradio/Config.in" source "package/googlefontdirectory/Config.in" + source "package/gqrx/Config.in" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in"
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +34 -0
@@ -0,0 +1,34 @@ +From e6baaee4968345a53e977f593362267a91041cff Mon Sep 17 00:00:00 2001 +From: Valentin Ochs <[email protected]> +Date: Fri, 21 Oct 2016 20:12:50 +0200 +Subject: [PATCH 05/34] Cosmetic & readability changes + +Backport patch from +https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff + +Fix compilation in gcc-6 + +Signed-off-by: Valentin Ochs <[email protected]> +Signed-off-by: Gwenhael Goavec-Merou <[email protected]> +--- +diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp +index e491632..b877546 100644 +--- a/src/qtgui/plotter.cpp ++++ b/src/qtgui/plotter.cpp +@@ -1336,8 +1336,11 @@ void CPlotter::drawOverlay() + #endif + + int level = 0; +- for (; level < nLevels && tagEnd[level] > x; level++); +- level %= nLevels; ++ while(level < nLevels && tagEnd[level] > x) ++ level++; ++ ++ if(level == nLevels) ++ level = 0; + + tagEnd[level] = x + nameWidth + slant - 1; + m_BookmarkTags.append(qMakePair<QRect, qint64>(QRect(x, level * levelHeight, nameWidth + slant, fontHeight), bookmarks[i].frequency)); +-- +2.10.2 +
package/gqrx/Config.in new file +36 -0
@@ -0,0 +1,36 @@ +comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamic library" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || BR2_STATIC_LIBS + +comment "gqrx needs gnuradio, fftw's single precision, alsa-lib or portaudio" + depends on !BR2_PACKAGE_GNURADIO || !BR2_PACKAGE_FFTW_PRECISION_SINGLE || \ + !(BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO) + +config BR2_PACKAGE_GQRX + bool "gqrx" + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE # gnuradio + depends on BR2_PACKAGE_GNURADIO + depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO # gr-audio + depends on BR2_INSTALL_LIBSTDCPP # boost, qt5 + depends on !BR2_STATIC_LIBS # qt5 + depends on BR2_TOOLCHAIN_HAS_THREADS # boost, qt5 + depends on BR2_USE_WCHAR # boost, qt5 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_GNURADIO_ANALOG + select BR2_PACKAGE_GNURADIO_AUDIO + select BR2_PACKAGE_GNURADIO_BLOCKS + select BR2_PACKAGE_GNURADIO_DIGITAL + select BR2_PACKAGE_GNURADIO_FFT + select BR2_PACKAGE_GNURADIO_FILTER + select BR2_PACKAGE_GR_OSMOSDR + select BR2_PACKAGE_QT5 + select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_WIDGETS + select BR2_PACKAGE_QT5SVG + help + Gqrx is an open source software defined radio receiver (SDR) powered by + the GNU Radio and the Qt graphical toolkit. + + http://gqrx.dk/
package/gqrx/gqrx.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated: +sha256 53d25db8d987a41ccccaf6fd85262bd7770cdfab5539b5901c4558756483c9db gqrx-v2.6.tar.gz
package/gqrx/gqrx.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# gqrx +# +################################################################################ + +GQRX_VERSION = v2.6 +GQRX_SITE = $(call github,csete,gqrx,$(GQRX_VERSION)) +GQRX_LICENSE = GPLv3+, Apache-2.0 +GQRX_LICENSE_FILES = COPYING LICENSE-CTK +GQRX_DEPENDENCIES = boost gnuradio gr-osmosdr qt5base qt5svg + +GQRX_CONF_OPTS = -DLINUX_AUDIO_BACKEND=Gr-audio + +$(eval $(cmake-package))
Signature · 1 line
2.10.2
PATCH v3 1/1 gqrx: new package
Hi Gwenhael,
Le 29/01/2017 ? 12:27, Gwenhael Goavec-Merou a ?crit :
Quoted 93 lines
From: Gwenhael Goavec-Merou <[email protected]>
Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit. Currently it works on Linux and Mac with hardware supported by gr-osmosdr, including Funcube Dongle, RTL-SDR, Airspy, HackRF, BladeRF, RFSpace, USRP and SoapySDR.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument. There are also various hooks for interacting with external application using network sockets.
Signed-off-by Gwenhael Goavec-Merou <[email protected]>---
Changes v2 -> v3:
* backport patch to fix Wmisleading-indentation with gcc6;
* inherits alsa-lib or portaudio dependencies from gr-audio;
* reduce help text size;
* add upstream url.
Changes v1 -> v2:
* typo--- package/Config.in | 1 + package/gqrx/0001-fix_compilation_in_gcc-6.patch | 34 ++++++++++++++++++++++ package/gqrx/Config.in | 36 ++++++++++++++++++++++++ package/gqrx/gqrx.hash | 2 ++ package/gqrx/gqrx.mk | 15 ++++++++++ 5 files changed, 88 insertions(+) create mode 100644 package/gqrx/0001-fix_compilation_in_gcc-6.patch create mode 100644 package/gqrx/Config.in create mode 100644 package/gqrx/gqrx.hash create mode 100644 package/gqrx/gqrx.mkpackage/Config.in +1
-0@@ -1429,6 +1429,7 @@ menu "Miscellaneous" source "package/empty/Config.in" source "package/gnuradio/Config.in" source "package/googlefontdirectory/Config.in" + source "package/gqrx/Config.in" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in"package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +34
-0@@ -0,0 +1,34 @@ +From e6baaee4968345a53e977f593362267a91041cff Mon Sep 17 00:00:00 2001 +From: Valentin Ochs <[email protected]> +Date: Fri, 21 Oct 2016 20:12:50 +0200 +Subject: [PATCH 05/34] Cosmetic & readability changes + +Backport patch from +https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff + +Fix compilation in gcc-6 + +Signed-off-by: Valentin Ochs <[email protected]> +Signed-off-by: Gwenhael Goavec-Merou <[email protected]> +--- +diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp +index e491632..b877546 100644 +--- a/src/qtgui/plotter.cpp ++++ b/src/qtgui/plotter.cpp +@@ -1336,8 +1336,11 @@ void CPlotter::drawOverlay() + #endif + + int level = 0; +- for (; level < nLevels && tagEnd[level] > x; level++); +- level %= nLevels; ++ while(level < nLevels && tagEnd[level] > x) ++ level++; ++ ++ if(level == nLevels) ++ level = 0; + + tagEnd[level] = x + nameWidth + slant - 1; + m_BookmarkTags.append(qMakePair<QRect, qint64>(QRect(x, level * levelHeight, nameWidth + slant, fontHeight), bookmarks[i].frequency)); +-- +2.10.2 +package/gqrx/Config.in new file +3
-0@@ -0,0 +1,36 @@ +comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamic library" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || BR2_STATIC_LIBS
package/gqrx/Config.in line 13
Quoted 10 lines
package/gqrx/Config.in new file +10
-0+ +comment "gqrx needs gnuradio, fftw's single precision, alsa-lib or portaudio" + depends on !BR2_PACKAGE_GNURADIO || !BR2_PACKAGE_FFTW_PRECISION_SINGLE || \ + !(BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO) + +config BR2_PACKAGE_GQRX + bool "gqrx" + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE # gnuradio + depends on BR2_PACKAGE_GNURADIO + depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO # gr-audio
I'm not sure if PORTAUDIO is really a dependency here since you enable only the gr-audio backend.
If you want to support gqrx with Portaudio support, you should probably enable Portaudio backend. Otherwise keep only ALSA_LIB in the dependency.
Quoted 5 lines
package/gqrx/Config.in new file +5
-0+ depends on BR2_INSTALL_LIBSTDCPP # boost, qt5 + depends on !BR2_STATIC_LIBS # qt5 + depends on BR2_TOOLCHAIN_HAS_THREADS # boost, qt5 + depends on BR2_USE_WCHAR # boost, qt5 + select BR2_PACKAGE_BOOST
package/gqrx/Config.in line 28
Quoted 10 lines
package/gqrx/Config.in new file +10
-0+ select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_GNURADIO_ANALOG + select BR2_PACKAGE_GNURADIO_AUDIO + select BR2_PACKAGE_GNURADIO_BLOCKS + select BR2_PACKAGE_GNURADIO_DIGITAL + select BR2_PACKAGE_GNURADIO_FFT + select BR2_PACKAGE_GNURADIO_FILTER + select BR2_PACKAGE_GR_OSMOSDR + select BR2_PACKAGE_QT5
There is a recursive dependency now with this change:
package/qt5/Config.in:18:error: recursive dependency detected!
package/qt5/Config.in:18: symbol BR2_PACKAGE_QT5 is selected by BR2_PACKAGE_GQRX
package/gqrx/Config.in:9: symbol BR2_PACKAGE_GQRX depends on BR2_PACKAGE_ALSA_LIB
package/alsa-lib/Config.in:4: symbol BR2_PACKAGE_ALSA_LIB is selected byBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA
package/gstreamer/gst-plugins-base/Config.in:72: symbolBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA depends on BR2_PACKAGE_GST_PLUGINS_BASE
package/gstreamer/gst-plugins-base/Config.in:1: symbolBR2_PACKAGE_GST_PLUGINS_BASE is selected by BR2_PACKAGE_QT_WEBKIT
package/qt/Config.in:464: symbol BR2_PACKAGE_QT_WEBKIT depends onBR2_PACKAGE_QT_GUI_MODULE
package/qt/Config.in:135: symbol BR2_PACKAGE_QT_GUI_MODULE is selected byBR2_PACKAGE_QWT
package/qwt/Config.in:4: symbol BR2_PACKAGE_QWT depends on BR2_PACKAGE_QT5
If you look at pulseview or opencv3, when a package needs qt5 it should depends on it.
package/gqrx/Config.in line 34
Quoted 6 lines
package/gqrx/Config.in new file +6
-0+ select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_WIDGETS + select BR2_PACKAGE_QT5SVG + help + Gqrx is an open source software defined radio receiver (SDR) powered by + the GNU Radio and the Qt graphical toolkit.
Well, the help text content from v1 [1] was ok, it's was only a coding style issue (The help text should be wrapped to fit 72 columns).
Best regards,
Romain
Quoted 32 lines
package/gqrx/Config.in new file +2
-0+ + http://gqrx.dk/package/gqrx/gqrx.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated: +sha256 53d25db8d987a41ccccaf6fd85262bd7770cdfab5539b5901c4558756483c9db gqrx-v2.6.tar.gzpackage/gqrx/gqrx.mk new file +15
-0@@ -0,0 +1,15 @@ +################################################################################ +# +# gqrx +# +################################################################################ + +GQRX_VERSION = v2.6 +GQRX_SITE = $(call github,csete,gqrx,$(GQRX_VERSION)) +GQRX_LICENSE = GPLv3+, Apache-2.0 +GQRX_LICENSE_FILES = COPYING LICENSE-CTK +GQRX_DEPENDENCIES = boost gnuradio gr-osmosdr qt5base qt5svg + +GQRX_CONF_OPTS = -DLINUX_AUDIO_BACKEND=Gr-audio + +$(eval $(cmake-package))
PATCH v3 1/1 gqrx: new package
Hi Romain,
Quoted 118 lines · On Sun, 5 Feb 2017 23:23:21 +0100 Romain Naour <[email protected]> wrote:
Hi Gwenhael,
Le 29/01/2017 ? 12:27, Gwenhael Goavec-Merou a ?crit :
Quoted 110 lines
From: Gwenhael Goavec-Merou <[email protected]>
Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit. Currently it works on Linux and Mac with hardware supported by gr-osmosdr, including Funcube Dongle, RTL-SDR, Airspy, HackRF, BladeRF, RFSpace, USRP and SoapySDR.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument. There are also various hooks for interacting with external application using network sockets.
Signed-off-by: Gwenhael Goavec-Merou <[email protected]> ---
Changes v2 -> v3:
* backport patch to fix Wmisleading-indentation with gcc6;
* inherits alsa-lib or portaudio dependencies from gr-audio;
* reduce help text size;
* add upstream url.
Changes v1 -> v2:
* typo--- package/Config.in | 1 + package/gqrx/0001-fix_compilation_in_gcc-6.patch | 34++++++++++++++++++++++
package/gqrx/Config.in | 36
++++++++++++++++++++++++
package/gqrx/gqrx.hash | 2 ++package/gqrx/gqrx.mk| 15 ++++++++++ 5
files changed, 88 insertions(+) create mode 100644package/gqrx/0001-fix_compilation_in_gcc-6.patchcreate mode 100644 package/gqrx/Config.in create mode 100644 package/gqrx/gqrx.hash create mode 100644package/gqrx/gqrx.mkpackage/Config.in +1
-0@@ -1429,6 +1429,7 @@ menu "Miscellaneous" source "package/empty/Config.in" source "package/gnuradio/Config.in" source "package/googlefontdirectory/Config.in" + source "package/gqrx/Config.in" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in"(quoted diff) +0
-0
b/package/gqrx/0001-fix_compilation_in_gcc-6.patchnew file mode 100644 index 0000000..e1824c3package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +1
-0@@ -0,0 +1,34 @@ +From e6baaee4968345a53e977f593362267a91041cff Mon Sep 17 00:00:002001 +From: Valentin Ochs <[email protected]>
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +10
-0+Date: Fri, 21 Oct 2016 20:12:50 +0200 +Subject: [PATCH 05/34] Cosmetic & readability changes + +Backport patch from +https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff + +Fix compilation in gcc-6 + +Signed-off-by: Valentin Ochs <[email protected]> +Signed-off-by: Gwenhael Goavec-Merou<[email protected]> +---
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +18
-0+diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp +index e491632..b877546 100644 +--- a/src/qtgui/plotter.cpp ++++ b/src/qtgui/plotter.cpp +@@ -1336,8 +1336,11 @@ void CPlotter::drawOverlay() + #endif + + int level = 0; +- for (; level < nLevels && tagEnd[level] > x; level++); +- level %= nLevels; ++ while(level < nLevels && tagEnd[level] > x) ++ level++; ++ ++ if(level == nLevels) ++ level = 0; + + tagEnd[level] = x + nameWidth + slant - 1; + m_BookmarkTags.append(qMakePair<QRect,qint64>(QRect(x, level * levelHeight, nameWidth + slant, qint64>fontHeight), bookmarks[i].frequency)); +-- +2.10.2
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +1
-0+package/gqrx/Config.in new file +1
-0@@ -0,0 +1,36 @@ +comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamiclibrary"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_INSTALL_LIBSTDCPP|| !BR2_TOOLCHAIN_HAS_THREADS || \
package/gqrx/Config.in new file +3
-0+ !BR2_USE_WCHAR || BR2_STATIC_LIBS + +comment "gqrx needs gnuradio, fftw's single precision, alsa-lib orportaudio"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_PACKAGE_GNURADIO|| !BR2_PACKAGE_FFTW_PRECISION_SINGLE || \
package/gqrx/Config.in new file +7
-0+ !(BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO) + +config BR2_PACKAGE_GQRX + bool "gqrx" + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE # gnuradio + depends on BR2_PACKAGE_GNURADIO + depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO #Quoted 1 line
gr-audio
I'm not sure if PORTAUDIO is really a dependency here since you enable only the gr-audio backend.
Quoted 4 lines
If you want to support gqrx with Portaudio support, you should probably enable Portaudio backend. Otherwise keep only
ALSA_LIBin the dependency.
gr-audio depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO consequently if I select this option I must to check if this dependencies are verified no?
Quoted 35 lines
Quoted 5 lines
package/gqrx/Config.in new file +5
-0+ depends on BR2_INSTALL_LIBSTDCPP # boost, qt5 + depends on !BR2_STATIC_LIBS # qt5 + depends on BR2_TOOLCHAIN_HAS_THREADS # boost, qt5 + depends on BR2_USE_WCHAR # boost, qt5 + select BR2_PACKAGE_BOOSTpackage/gqrx/Config.in line 28
Quoted 10 lines
package/gqrx/Config.in new file +10
-0+ select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_GNURADIO_ANALOG + select BR2_PACKAGE_GNURADIO_AUDIO + select BR2_PACKAGE_GNURADIO_BLOCKS + select BR2_PACKAGE_GNURADIO_DIGITAL + select BR2_PACKAGE_GNURADIO_FFT + select BR2_PACKAGE_GNURADIO_FILTER + select BR2_PACKAGE_GR_OSMOSDR + select BR2_PACKAGE_QT5There is a recursive dependency now with this change:
package/qt5/Config.in:18:error: recursive dependency detected!
package/qt5/Config.in:18: symbolBR2_PACKAGE_QT5is selected
byBR2_PACKAGE_GQRXpackage/gqrx/Config.in:9: symbolBR2_PACKAGE_GQRXdepends onBR2_PACKAGE_ALSA_LIB
package/alsa-lib/Config.in:4: symbolBR2_PACKAGE_ALSA_LIBis
selected byBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA
package/gstreamer/gst-plugins-base/Config.in:72: symbolBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSAdepends onBR2_PACKAGE_GST_PLUGINS_BASE
package/gstreamer/gst-plugins-base/Config.in:1: symbolBR2_PACKAGE_GST_PLUGINS_BASEis selected byBR2_PACKAGE_QT_WEBKIT
package/qt/Config.in:464: symbolBR2_PACKAGE_QT_WEBKITdepends
onBR2_PACKAGE_QT_GUI_MODULEpackage/qt/Config.in:135: symbolBR2_PACKAGE_QT_GUI_MODULEis selected byBR2_PACKAGE_QWT
package/qwt/Config.in:4: symbolBR2_PACKAGE_QWTdepends onBR2_PACKAGE_QT5
Quoted 3 lines
If you look at pulseview or opencv3, when a package needs qt5 it should depends on it.
Strange, I've not seen this... Maybe a problem with my defconfig. I fix it.
Quoted 11 lines
package/gqrx/Config.in line 34
Quoted 7 lines
package/gqrx/Config.in new file +5
-0+ select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_WIDGETS + select BR2_PACKAGE_QT5SVG + help + Gqrx is an open source software defined radio receiver(SDR) powered by
package/gqrx/Config.in new file +1
-0+ the GNU Radio and the Qt graphical toolkit.Well, the help text content from v1 [1] was ok, it's was only a coding style issue (The help text should be wrapped to fit 72 columns).
My fault, wrong interpretation of long ...
Quoted 6 lines
Best regards,
Romain
Thank for the review,
Gwen
Quoted 33 lines
Quoted 32 lines
package/gqrx/Config.in new file +2
-0+ + http://gqrx.dk/package/gqrx/gqrx.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated: +sha256
53d25db8d987a41ccccaf6fd85262bd7770cdfab5539b5901c4558756483c9dbgqrx-v2.6.tar.gz diff --gita/package/gqrx/gqrx.mkb/package/gqrx/gqrx.mknew file mode 100644 index 0000000..b591e60package/gqrx/gqrx.mk new file +15
-0@@ -0,0 +1,15 @@ +################################################################################ +# +# gqrx +# +################################################################################ + +GQRX_VERSION = v2.6 +GQRX_SITE = $(call github,csete,gqrx,$(GQRX_VERSION)) +GQRX_LICENSE = GPLv3+, Apache-2.0 +GQRX_LICENSE_FILES = COPYING LICENSE-CTK +GQRX_DEPENDENCIES = boost gnuradio gr-osmosdr qt5base qt5svg + +GQRX_CONF_OPTS = -DLINUX_AUDIO_BACKEND=Gr-audio + +$(eval $(cmake-package))
PATCH v3 1/1 gqrx: new package
Hi Gwenhael,
Le 06/02/2017 ? 20:34, gwenhael.goavec a ?crit :
Quoted 123 lines
Hi Romain,
Quoted 118 lines · On Sun, 5 Feb 2017 23:23:21 +0100 Romain Naour <[email protected]> wrote:
Hi Gwenhael,
Le 29/01/2017 ? 12:27, Gwenhael Goavec-Merou a ?crit :
Quoted 110 lines
From: Gwenhael Goavec-Merou <[email protected]>
Gqrx is an open source software defined radio (SDR) receiver implemented using GNU Radio and the Qt GUI toolkit. Currently it works on Linux and Mac with hardware supported by gr-osmosdr, including Funcube Dongle, RTL-SDR, Airspy, HackRF, BladeRF, RFSpace, USRP and SoapySDR.
Gqrx can operate as an AM/FM/SSB receiver with audio output or as an FFT-only instrument. There are also various hooks for interacting with external application using network sockets.
Signed-off-by: Gwenhael Goavec-Merou <[email protected]> ---
Changes v2 -> v3:
* backport patch to fix Wmisleading-indentation with gcc6;
* inherits alsa-lib or portaudio dependencies from gr-audio;
* reduce help text size;
* add upstream url.
Changes v1 -> v2:
* typo--- package/Config.in | 1 + package/gqrx/0001-fix_compilation_in_gcc-6.patch | 34++++++++++++++++++++++
package/gqrx/Config.in | 36
++++++++++++++++++++++++
package/gqrx/gqrx.hash | 2 ++package/gqrx/gqrx.mk| 15 ++++++++++ 5
files changed, 88 insertions(+) create mode 100644package/gqrx/0001-fix_compilation_in_gcc-6.patchcreate mode 100644 package/gqrx/Config.in create mode 100644 package/gqrx/gqrx.hash create mode 100644package/gqrx/gqrx.mkpackage/Config.in +1
-0@@ -1429,6 +1429,7 @@ menu "Miscellaneous" source "package/empty/Config.in" source "package/gnuradio/Config.in" source "package/googlefontdirectory/Config.in" + source "package/gqrx/Config.in" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in"(quoted diff) +0
-0
b/package/gqrx/0001-fix_compilation_in_gcc-6.patchnew file mode 100644 index 0000000..e1824c3package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +1
-0@@ -0,0 +1,34 @@ +From e6baaee4968345a53e977f593362267a91041cff Mon Sep 17 00:00:002001 +From: Valentin Ochs <[email protected]>
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +10
-0+Date: Fri, 21 Oct 2016 20:12:50 +0200 +Subject: [PATCH 05/34] Cosmetic & readability changes + +Backport patch from +https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff + +Fix compilation in gcc-6 + +Signed-off-by: Valentin Ochs <[email protected]> +Signed-off-by: Gwenhael Goavec-Merou<[email protected]> +---
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +18
-0+diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp +index e491632..b877546 100644 +--- a/src/qtgui/plotter.cpp ++++ b/src/qtgui/plotter.cpp +@@ -1336,8 +1336,11 @@ void CPlotter::drawOverlay() + #endif + + int level = 0; +- for (; level < nLevels && tagEnd[level] > x; level++); +- level %= nLevels; ++ while(level < nLevels && tagEnd[level] > x) ++ level++; ++ ++ if(level == nLevels) ++ level = 0; + + tagEnd[level] = x + nameWidth + slant - 1; + m_BookmarkTags.append(qMakePair<QRect,qint64>(QRect(x, level * levelHeight, nameWidth + slant, qint64>fontHeight), bookmarks[i].frequency)); +-- +2.10.2
package/gqrx/0001-fix_compilation_in_gcc-6.patch new file +1
-0+package/gqrx/Config.in new file +1
-0@@ -0,0 +1,36 @@ +comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamiclibrary"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_INSTALL_LIBSTDCPP|| !BR2_TOOLCHAIN_HAS_THREADS || \
package/gqrx/Config.in new file +3
-0+ !BR2_USE_WCHAR || BR2_STATIC_LIBS + +comment "gqrx needs gnuradio, fftw's single precision, alsa-lib orportaudio"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_PACKAGE_GNURADIO|| !BR2_PACKAGE_FFTW_PRECISION_SINGLE || \
package/gqrx/Config.in new file +7
-0+ !(BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO) + +config BR2_PACKAGE_GQRX + bool "gqrx" + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE # gnuradio + depends on BR2_PACKAGE_GNURADIO + depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO #Quoted 1 line
gr-audio
I'm not sure if PORTAUDIO is really a dependency here since you enable only the gr-audio backend.
Quoted 7 lines
Quoted 4 lines
If you want to support gqrx with Portaudio support, you should probably enable Portaudio backend. Otherwise keep only
ALSA_LIBin the dependency.gr-audio depends on
BR2_PACKAGE_ALSA_LIB||BR2_PACKAGE_PORTAUDIOconsequently if I select this option I must to check if this dependencies are verified no?
I don't really know gqrx, but what's happen when gr-audio package is build with portaudio support and gqrx is build with Gr-audio backend? Because portaudio support seems to be disabled in that case (i.e build without -DWITH_PORTAUDIO). I did a test build and it build fine... but I didn't test at runtime.
If it's ok for you, then ok :)
Quoted 51 lines
Quoted 35 lines
Quoted 5 lines
package/gqrx/Config.in new file +5
-0+ depends on BR2_INSTALL_LIBSTDCPP # boost, qt5 + depends on !BR2_STATIC_LIBS # qt5 + depends on BR2_TOOLCHAIN_HAS_THREADS # boost, qt5 + depends on BR2_USE_WCHAR # boost, qt5 + select BR2_PACKAGE_BOOSTpackage/gqrx/Config.in line 28
Quoted 10 lines
package/gqrx/Config.in new file +10
-0+ select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_GNURADIO_ANALOG + select BR2_PACKAGE_GNURADIO_AUDIO + select BR2_PACKAGE_GNURADIO_BLOCKS + select BR2_PACKAGE_GNURADIO_DIGITAL + select BR2_PACKAGE_GNURADIO_FFT + select BR2_PACKAGE_GNURADIO_FILTER + select BR2_PACKAGE_GR_OSMOSDR + select BR2_PACKAGE_QT5There is a recursive dependency now with this change:
package/qt5/Config.in:18:error: recursive dependency detected!
package/qt5/Config.in:18: symbolBR2_PACKAGE_QT5is selected
byBR2_PACKAGE_GQRXpackage/gqrx/Config.in:9: symbolBR2_PACKAGE_GQRXdepends onBR2_PACKAGE_ALSA_LIB
package/alsa-lib/Config.in:4: symbolBR2_PACKAGE_ALSA_LIBis
selected byBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA
package/gstreamer/gst-plugins-base/Config.in:72: symbolBR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSAdepends onBR2_PACKAGE_GST_PLUGINS_BASE
package/gstreamer/gst-plugins-base/Config.in:1: symbolBR2_PACKAGE_GST_PLUGINS_BASEis selected byBR2_PACKAGE_QT_WEBKIT
package/qt/Config.in:464: symbolBR2_PACKAGE_QT_WEBKITdepends
onBR2_PACKAGE_QT_GUI_MODULEpackage/qt/Config.in:135: symbolBR2_PACKAGE_QT_GUI_MODULEis selected byBR2_PACKAGE_QWT
package/qwt/Config.in:4: symbolBR2_PACKAGE_QWTdepends onBR2_PACKAGE_QT5Quoted 3 lines
If you look at pulseview or opencv3, when a package needs qt5 it should depends on it.
Strange, I've not seen this... Maybe a problem with my defconfig. I fix it.
Quoted 11 lines
package/gqrx/Config.in line 34
Quoted 7 lines
package/gqrx/Config.in new file +5
-0+ select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_WIDGETS + select BR2_PACKAGE_QT5SVG + help + Gqrx is an open source software defined radio receiver(SDR) powered by
package/gqrx/Config.in new file +1
-0+ the GNU Radio and the Qt graphical toolkit.Well, the help text content from v1 [1] was ok, it's was only a coding style issue (The help text should be wrapped to fit 72 columns).
Quoted 1 line
My fault, wrong interpretation of long ...
It wasn't explicit enough in my initial review too...
Thanks,
Romain
Quoted 42 lines
Quoted 7 lines
Best regards,
RomainThank for the review,
GwenQuoted 33 lines
Quoted 32 lines
package/gqrx/Config.in new file +2
-0+ + http://gqrx.dk/package/gqrx/gqrx.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated: +sha256
53d25db8d987a41ccccaf6fd85262bd7770cdfab5539b5901c4558756483c9dbgqrx-v2.6.tar.gz diff --gita/package/gqrx/gqrx.mkb/package/gqrx/gqrx.mknew file mode 100644 index 0000000..b591e60package/gqrx/gqrx.mk new file +15
-0@@ -0,0 +1,15 @@ +################################################################################ +# +# gqrx +# +################################################################################ + +GQRX_VERSION = v2.6 +GQRX_SITE = $(call github,csete,gqrx,$(GQRX_VERSION)) +GQRX_LICENSE = GPLv3+, Apache-2.0 +GQRX_LICENSE_FILES = COPYING LICENSE-CTK +GQRX_DEPENDENCIES = boost gnuradio gr-osmosdr qt5base qt5svg + +GQRX_CONF_OPTS = -DLINUX_AUDIO_BACKEND=Gr-audio + +$(eval $(cmake-package))
PATCH v3 1/1 gqrx: new package
Hi Romain,
Quoted 2 lines · On Mon, 6 Feb 2017 20:55:47 +0100 Romain Naour <[email protected]> wrote:
Hi Gwenhael,
[...]
Quoted 37 lines
Quoted 29 lines
Quoted 29 lines
Quoted 24 lines
(quoted diff) +1
-0+package/gqrx/Config.in new file +1
-0@@ -0,0 +1,36 @@ +comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamiclibrary"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_INSTALL_LIBSTDCPP|| !BR2_TOOLCHAIN_HAS_THREADS || \
package/gqrx/Config.in new file +3
-0+ !BR2_USE_WCHAR || BR2_STATIC_LIBS + +comment "gqrx needs gnuradio, fftw's single precision, alsa-libor portaudio"
package/gqrx/Config.in new file +1
-0+ depends on !BR2_PACKAGE_GNURADIO|| !BR2_PACKAGE_FFTW_PRECISION_SINGLE || \
package/gqrx/Config.in new file +7
-0+ !(BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO) + +config BR2_PACKAGE_GQRX + bool "gqrx" + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE # gnuradio + depends on BR2_PACKAGE_GNURADIO + depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIOQuoted 1 line
# gr-audioI'm not sure if PORTAUDIO is really a dependency here since you enable only the gr-audio backend.
Quoted 7 lines
Quoted 4 lines
If you want to support gqrx with Portaudio support, you should probably enable Portaudio backend. Otherwise keep only
ALSA_LIBin the dependency.gr-audio depends on
BR2_PACKAGE_ALSA_LIB||BR2_PACKAGE_PORTAUDIOconsequently if I select this option I must to check if this dependencies are verified no?
Quoted 8 lines
I don't really know gqrx, but what's happen when gr-audio package is build with portaudio support and gqrx is build with Gr-audio backend? Because portaudio support seems to be disabled in that case (i.e build without -DWITH_PORTAUDIO). I did a test build and it build fine... but I didn't test at runtime.
If it's ok for you, then ok :)
lineGQRX_CONF_OPTS = -DLINUX_AUDIO_BACKEND=Gr-audio
Is used to enable gr-audio as backend instead of, default, portaudio. The choice is exclusive, consequently if the backend is gr-audio, the build skip portaudio backend. The runtime work fine.
Thanks,
Gwen
[...]