Skip to content

Commit

Permalink
gnuradio : Update version and build with qt support.
Browse files Browse the repository at this point in the history
 * Updated git rev to latest master.
 * Add hacks to build gnuradio with qt support. Still need to build PyQ*t on
   the target.

Signed-off-by: Philip Balister <philip@balister.org>
  • Loading branch information
balister committed Nov 2, 2011
1 parent 28b1590 commit 51682f9
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 5 deletions.
@@ -0,0 +1,28 @@
From 031799e43c853d7723230be57ddacbf10d975cde Mon Sep 17 00:00:00 2001
From: Philip Balister <philip@opensdr.com>
Date: Tue, 1 Nov 2011 09:06:16 -0400
Subject: [PATCH] Brute force selection of moc and uic.

Signed-off-by: Philip Balister <philip@opensdr.com>
---
config/grc_gr_qtgui.m4 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/grc_gr_qtgui.m4 b/config/grc_gr_qtgui.m4
index 0efd7c8..bc50cac 100644
--- a/config/grc_gr_qtgui.m4
+++ b/config/grc_gr_qtgui.m4
@@ -67,8 +67,8 @@ dnl [PyQt4.Qwt5.QWT_VERSION >= 327000])
QMAKE_INCLUDES="$QMAKE_INCLUDES ${i##-I}"
done

- QT_MOC_EXEC=`pkg-config --variable=moc_location QtCore`
- QT_UIC_EXEC=`pkg-config --variable=uic_location QtCore`
+ QT_MOC_EXEC=moc
+ QT_UIC_EXEC=uic

gr_qtgui_INCLUDES="\
-I\${abs_top_srcdir}/gr-qtgui/include \
--
1.7.6.4

@@ -0,0 +1,40 @@
From 04316ec0cfa5003b4777299200465fc47680e6e3 Mon Sep 17 00:00:00 2001
From: Philip Balister <philip@opensdr.com>
Date: Tue, 1 Nov 2011 07:31:46 -0400
Subject: [PATCH] Diable checks for PyQT and PyQWT.

They are need at runtime not build time. This should let us build gnuradio
qt support, without needing to cross build PyQt and PyQwt.

Signed-off-by: Philip Balister <philip@opensdr.com>
---
config/grc_gr_qtgui.m4 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config/grc_gr_qtgui.m4 b/config/grc_gr_qtgui.m4
index d9e0fcb..0efd7c8 100644
--- a/config/grc_gr_qtgui.m4
+++ b/config/grc_gr_qtgui.m4
@@ -28,13 +28,13 @@ AC_DEFUN([GRC_GR_QTGUI],[
dnl yes : if the --enable code passed muster and all dependencies are met
dnl no : otherwise

- PYTHON_CHECK_MODULE([PyQt4.QtCore], [PyQt4 for Qt4], \
- [], [passed=no], \
- [PyQt4.QtCore.PYQT_VERSION >= 260000])
+dnl PYTHON_CHECK_MODULE([PyQt4.QtCore], [PyQt4 for Qt4], \
+dnl [], [passed=no], \
+dnl [PyQt4.QtCore.PYQT_VERSION >= 260000])

- PYTHON_CHECK_MODULE([PyQt4.Qwt5], [PyQwt5 for Qt4], \
- [], [passed=no], \
- [PyQt4.Qwt5.QWT_VERSION >= 327000])
+dnl PYTHON_CHECK_MODULE([PyQt4.Qwt5], [PyQwt5 for Qt4], \
+dnl [], [passed=no], \
+dnl [PyQt4.Qwt5.QWT_VERSION >= 327000])

# Check for:
# QtOpenGL
--
1.7.6.4

@@ -0,0 +1,32 @@
From 7ed8556541d29a54a6d47e5156f42002e6051f0b Mon Sep 17 00:00:00 2001
From: Philip Balister <philip@opensdr.com>
Date: Tue, 1 Nov 2011 14:16:59 -0400
Subject: [PATCH] Disable python checks so grc builds.

Signed-off-by: Philip Balister <philip@opensdr.com>
---
config/grc_grc.m4 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config/grc_grc.m4 b/config/grc_grc.m4
index 0474c4e..c17df7a 100644
--- a/config/grc_grc.m4
+++ b/config/grc_grc.m4
@@ -28,10 +28,10 @@ AC_DEFUN([GRC_GRC],[
dnl ########################################
if test $passed = yes; then
PYTHON_CHECK_MODULE([sys],[Python >= 2.5],[],[passed=no],[sys.version.split()[[0]] >= "2.5"])
- PYTHON_CHECK_MODULE([Cheetah],[Python Cheetah templates >= 2.0.0],[],[passed=no],[Cheetah.Version >= "2.0.0"])
- PYTHON_CHECK_MODULE([lxml.etree],[Python lxml wrappers >= 1.3.6],[],[passed=no],[lxml.etree.LXML_VERSION >= (1, 3, 6, 0)])
- PYTHON_CHECK_MODULE([gtk],[Python gtk wrappers >= 2.10.0],[],[passed=no],[gtk.pygtk_version >= (2, 10, 0)])
- PYTHON_CHECK_MODULE([numpy],[NumPy],[],[passed=no],[True])
+dnl PYTHON_CHECK_MODULE([Cheetah],[Python Cheetah templates >= 2.0.0],[],[passed=no],[Cheetah.Version >= "2.0.0"])
+dnl PYTHON_CHECK_MODULE([lxml.etree],[Python lxml wrappers >= 1.3.6],[],[passed=no],[lxml.etree.LXML_VERSION >= (1, 3, 6, 0)])
+dnl PYTHON_CHECK_MODULE([gtk],[Python gtk wrappers >= 2.10.0],[],[passed=no],[gtk.pygtk_version >= (2, 10, 0)])
+dnl PYTHON_CHECK_MODULE([numpy],[NumPy],[],[passed=no],[True])
fi

AC_CONFIG_FILES([ \
--
1.7.6.4

@@ -0,0 +1,50 @@
From a772f928693476297fe907d5de414516c58f2a51 Mon Sep 17 00:00:00 2001
From: Philip Balister <philip@opensdr.com>
Date: Tue, 1 Nov 2011 07:46:30 -0400
Subject: [PATCH] Remove all traces of volk from configure again.

Signed-off-by: Philip Balister <philip@opensdr.com>
---
Makefile.common | 6 +-----
configure.ac | 1 -
2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/Makefile.common b/Makefile.common
index a4d5817..2cea092 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -59,7 +59,7 @@ grpyexecdir = $(pyexecdir)/gnuradio
# This used to be set in configure.ac but is now defined here for all
# Makefiles when this fragment is included.
STD_DEFINES_AND_INCLUDES = $(DEFINES) $(GNURADIO_INCLUDES) \
- $(GRUEL_INCLUDES) $(VOLK_INCLUDES) $(BOOST_CPPFLAGS)
+ $(GRUEL_INCLUDES) $(BOOST_CPPFLAGS)

# when including for compilation from pre-installed libraries and such,
# need to make sure those are put last on the compile command
@@ -77,10 +77,6 @@ GNURADIO_CORE_LA = @gnuradio_core_LA@
GRUEL_INCLUDES = @gruel_INCLUDES@
GRUEL_LA = @gruel_LA@

-# How to link in the VOLK library from inside the tree
-VOLK_INCLUDES = @volk_INCLUDES@
-VOLK_LA = @volk_LA@
-
# GR-DIGITAL includes and libraries
GR_DIGITAL_INCLUDES = @gr_digital_INCLUDES@
GR_DIGITAL_LA = @gr_digital_LA@
diff --git a/configure.ac b/configure.ac
index 432c398..f27de88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -349,7 +349,6 @@ AC_ARG_ENABLE(

build_dirs="config"
GRC_GRUEL dnl must come first
-GRC_VOLK
GRC_GNURADIO_CORE
GRC_GR_DIGITAL
GRC_GR_AUDIO
--
1.7.6.4

10 changes: 8 additions & 2 deletions recipes/gnuradio/gnuradio.inc
Expand Up @@ -3,7 +3,8 @@ URL = "http://gnuradio.org"
SECTION = "apps"
PRIORITY = "optional"
LICENSE = "GPLv3"
DEPENDS = "uhd gsl guile-native fftwf python alsa-lib boost cppunit swig-native python-numpy"
DEPENDS = "uhd gsl guile-native fftwf python alsa-lib boost cppunit \
swig-native python-numpy qt4-x11-free qwt"
INC_PR = "r9"

inherit distutils-base autotools pkgconfig
Expand All @@ -20,6 +21,9 @@ EXTRA_OECONF = " \
--with-boost=${STAGING_DIR_TARGET}/usr \
--disable-usrp1 \
--disable-usrp2 \
--disable-gr-vocoder \
--disable-gr-video-sdl \
--with-qwt-incdir=${STAGING_INCDIR} \
--with-pythondir=${PYTHON_SITEPACKAGES_DIR} \
PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR} \
"
Expand All @@ -36,7 +40,9 @@ PACKAGES =+ "\
"

FILES_${PN}-examples = "${datadir}/gnuradio/examples"
FILES_${PN}-grc = "${datadir}/gnuradio/grc"
FILES_${PN}-grc = "${datadir}/gnuradio/grc \
${libexecdir}/gnuradio \
"
FILES_${PN}-conf = "${sysconfdir}/gnuradio"

FILES_${PN} += "${datadir}/gnuradio"
Expand Down
9 changes: 6 additions & 3 deletions recipes/gnuradio/gnuradio_git.bb
@@ -1,9 +1,9 @@
require recipes/gnuradio/gnuradio.inc

PR = "${INC_PR}.3"
PR = "${INC_PR}.4"
PV = "3.4.1-${PR}+gitr${SRCREV}"

SRCREV = "77f5aa4f1985e0605b5ed07994a2af7dac2d2a8d"
SRCREV = "640e859f564361270d8cd30d7fbff582ad228110"

# Make it easy to test against developer repos and branches
GIT_REPO = "gnuradio.git"
Expand All @@ -12,7 +12,10 @@ GIT_BRANCH = "master"
FILESPATHPKG_prepend = "gnuradio-git:"

SRC_URI = "git://gnuradio.org/git/${GIT_REPO};branch=${GIT_BRANCH};protocol=http \
file://0001-volk-Remove-all-traces-of-volk-from-configure-for-OE.patch \
file://0001-Remove-all-traces-of-volk-from-configure-again.patch \
file://0001-Diable-checks-for-PyQT-and-PyQWT.patch \
file://0001-Brute-force-selection-of-moc-and-uic.patch \
file://0001-Disable-python-checks-so-grc-builds.patch \
"

S="${WORKDIR}/git"
Expand Down

0 comments on commit 51682f9

Please sign in to comment.