GNU bug report logs -
#77927
[PATCH 0/4] Support for PlutoSDR in SDR++ and SDRangel
Previous Next
To reply to this bug, email your comments to 77927 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sat, 19 Apr 2025 18:52:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rutherther <rutherther <at> ditigal.xyz>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 19 Apr 2025 18:52:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This patch series adds dependencies for supporting PlutoSDR (libiio and libad9361),
and enables compilation of PlutoSDR in sdrangel and sdr++.
Rutherther (4):
gnu: Add libiio
gnu: Add libad9361
gnu: sdrangel: Compile with PlutoSDR support
gnu: sdr++: Compile with PlutoSDR support
gnu/packages/radio.scm | 90 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 88 insertions(+), 2 deletions(-)
base-commit: 12a6dd40a7b88454cc8a8c930c22681fcee5b1ea
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sat, 19 Apr 2025 18:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency used for communicating with PlutoSDR.
* gnu/packages/radio.scm (libiio): New variable.
Change-Id: Ic34895af35fa008923fed0de74ad12ffc75f2021
---
gnu/packages/radio.scm | 55 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 3724988ce4..df3574b5e3 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -49,6 +49,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
@@ -56,6 +57,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages engineering)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages fltk)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gd)
@@ -190,6 +192,59 @@ (define-public libcorrect
used as a drop-in substitute for @code{libfec}.")
(license license:bsd-3))))
+(define-public libiio
+ (package
+ (name "libiio")
+ (version "0.24")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libiio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "136n22macjz70bgxd7ix77gkv7zhbk3zzl340kwwpmb94z2fr4bk"))))
+ (arguments
+ (list
+ #:tests? #f
+ #:configure-flags
+ #~(list
+ (string-append "-DUDEV_RULES_INSTALL_DIR=" #$output "/lib/udev/rules.d")
+ "-DOSX_PACKAGE=off"
+ "-DOSX_FRAMEWORK=off"
+ (string-append "-DPython_EXECUTABLE=" (search-input-file %build-inputs "/bin/python3"))
+ "-DPYTHON_BINDINGS=on")))
+ (native-inputs
+ (list
+ pkg-config
+ flex
+ bison
+ python
+ avahi
+ libaio))
+ (inputs
+ (list
+ libxml2
+ libusb))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libiio")
+ (synopsis "A cross platform library for interfacing with local and remote Linux IIO devices ")
+ (description
+ "Library for interfacing with Linux IIO devices
+libiio is used to interface to the Linux Industrial Input/Output (IIO) Subsystem.
+The Linux IIO subsystem is intended to provide support for devices that in some
+sense are analog to digital or digital to analog converters (ADCs, DACs).
+This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs,
+Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity Sensors,
+Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital Synthesis), PLLs (Phase Locked Loops),
+Variable/Programmable Gain Amplifiers (VGA, PGA), and RF transceivers. You can use libiio natively
+on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
+from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
base-commit: 12a6dd40a7b88454cc8a8c930c22681fcee5b1ea
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sat, 19 Apr 2025 18:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency of sdr++ for supporting PlutoSDR.
* gnu/packages/radio.scm (libad9361): New variable.
Change-Id: I1e8bca9ab978b3650ae8227e5e4391ea9d2a925e
---
gnu/packages/radio.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index df3574b5e3..c1cb5dfe15 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -245,6 +245,32 @@ (define-public libiio
on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+(define-public libad9361
+ (package
+ (name "libad9361")
+ (version "0.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libad9361-iio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1inv39xfg8gqz1v7k1n2a7p9zzlb6gq98gcnnpdcr9fa5alvmvpm"))))
+ (inputs
+ (list libiio))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libad9361-iio")
+ (synopsis
+ "IIO AD9361 library for filter design and handling, multi-chip sync, etc. ")
+ (description "This is a simple library used for userspace,
+which manages multi-chip sync (on platforms (FMCOMMS5) where multiple AD9361 devices are use)
+can create AD9361 specific FIR filters on the fly.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sat, 19 Apr 2025 18:54:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 77927 <at> debbugs.gnu.org (full text, mbox):
SDRangel will be compiled with PlutoSDR support when libiio is added.
* gnu/packages/radio.scm (sdrangel)[inputs]: Add libiio
* gnu/packages/radio.scm (sdrangel)[arguments]{#:configure-flags}: Use libiio
Change-Id: I7cf959b61af567a3133034ad52d5f4564f099c30
---
gnu/packages/radio.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index c1cb5dfe15..5a936ea65b 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2782,6 +2782,7 @@ (define-public sdrangel
hamlib
hidapi
libdab
+ libiio
libusb
mbelib
opencv
@@ -2822,7 +2823,9 @@ (define-public sdrangel
(string-append "-DSGP4_DIR="
#$(this-package-input "sgp4"))
(string-append "-DSOAPYSDR_DIR="
- #$(this-package-input "soapysdr")))
+ #$(this-package-input "soapysdr"))
+ (string-append "-DIIO_DIR="
+ #$(this-package-input "libiio")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-unrecognized-compiler-option
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sat, 19 Apr 2025 18:54:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 77927 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/radio.scm (sdr++)[inputs]: Add libad9361 and libiio
* gnu/packages/radio.scm (sdr++)[arguments]{#:configure-flags}: Compile with
PlutoSDR support
Change-Id: I82206343928e39c235be741b61c6d55e7993e92c
---
gnu/packages/radio.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 5a936ea65b..2c6cda7008 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2884,6 +2884,8 @@ (define-public sdr++
glfw
hackrf
jack-2
+ libad9361
+ libiio
libusb
pulseaudio
rtaudio
@@ -2894,7 +2896,7 @@ (define-public sdr++
(arguments
(list #:tests? #f ; No test suite.
#:configure-flags #~(list "-DOPT_BUILD_BLADERF_SOURCE=ON"
- "-DOPT_BUILD_PLUTOSDR_SOURCE=OFF"
+ "-DOPT_BUILD_PLUTOSDR_SOURCE=ON"
"-DOPT_BUILD_M17_DECODER=ON")
#:phases
#~(modify-phases %standard-phases
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 12:59:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 77927 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Rutherther via Guix-patches via <guix-patches <at> gnu.org> skribis:
> +(define-public libiio
> + (package
> + (name "libiio")
> + (version "0.24")
> [...]
> + (arguments
> + (list
> + #:tests? #f
> + #:configure-flags
> + #~(list
> + (string-append "-DUDEV_RULES_INSTALL_DIR=" #$output "/lib/udev/rules.d")
> + "-DOSX_PACKAGE=off"
> + "-DOSX_FRAMEWORK=off"
> + (string-append "-DPython_EXECUTABLE=" (search-input-file %build-inputs "/bin/python3"))
> + "-DPYTHON_BINDINGS=on")))
> [...]
Hi.
It looks like the installation of the Python bindings does not work;
they are not in the built package.
The build log indicates:
--8<---------------cut here---------------start------------->8---
running install
/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Traceback (most recent call last):
File "/tmp/guix-build-libiio-0.24.drv-0/build/bindings/python/setup.py", line 75, in _check_libiio_installed
raise OSError
OSError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/guix-build-libiio-0.24.drv-0/build/bindings/python/setup.py", line 104, in <module>
setup(**config)
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/gnu/store/mzhsp3vxj58hhbkrjdrvk9l47pk07kax-python-minimal-3.11.11/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/tmp/guix-build-libiio-0.24.drv-0/build/bindings/python/setup.py", line 43, in run
self._check_libiio_installed()
File "/tmp/guix-build-libiio-0.24.drv-0/build/bindings/python/setup.py", line 81, in _check_libiio_installed
raise Exception(msg)
Exception: The libiio library could not be found.
libiio needs to be installed first before the python bindings.
The latest release can be found on GitHub:
https://github.com/analogdevicesinc/libiio/releases
--8<---------------cut here---------------end--------------->8---
Could you take a look at it?
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:19:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency used for communicating with PlutoSDR.
* gnu/packages/radio.scm (libiio): New variable.
Change-Id: Ic34895af35fa008923fed0de74ad12ffc75f2021
---
gnu/packages/radio.scm | 67 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 2752380a3a..cf8bb6f4e5 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -49,6 +49,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
@@ -56,6 +57,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages engineering)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages fltk)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gd)
@@ -190,6 +192,71 @@ (define-public libcorrect
used as a drop-in substitute for @code{libfec}.")
(license license:bsd-3))))
+(define-public libiio
+ (package
+ (name "libiio")
+ (version "0.26")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libiio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18cmaszfmn6kaa9gi26kkgjk506xqb8zsd4bq6yp8hzxr1qldfly"))))
+ (arguments
+ (list
+ #:tests? #f
+ #:configure-flags
+ #~(list
+ (string-append "-DUDEV_RULES_INSTALL_DIR=" #$output "/lib/udev/rules.d")
+ "-DOSX_PACKAGE=off"
+ "-DOSX_FRAMEWORK=off"
+ (string-append "-DPython_EXECUTABLE=" (search-input-file %build-inputs "/bin/python3"))
+ "-DPYTHON_BINDINGS=on")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "bindings/python/iio.py"
+ (("_iiolib = \"iio\"") (string-append "_iiolib = \"" #$output "/lib/libiio.so\""))
+ (("find_library\\(_iiolib\\)") "_iiolib"))
+ ;; Libiio is not installed at the time of the build. The check is unnecessary,
+ ;; to do it the upstream way, we would have to configure, build, install
+ ;; without the bindings first, and then second time with the bindings...
+ (substitute* "bindings/python/setup.py.cmakein"
+ (("self._check_libiio_installed()") "")))))))
+ (native-inputs
+ (list
+ pkg-config
+ flex
+ bison
+ python
+ avahi
+ libaio))
+ (inputs
+ (list
+ libxml2
+ libusb))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libiio")
+ (synopsis "A cross platform library for interfacing with local and remote Linux IIO devices ")
+ (description
+ "Library for interfacing with Linux IIO devices
+libiio is used to interface to the Linux Industrial Input/Output (IIO) Subsystem.
+The Linux IIO subsystem is intended to provide support for devices that in some
+sense are analog to digital or digital to analog converters (ADCs, DACs).
+This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs,
+Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity Sensors,
+Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital Synthesis), PLLs (Phase Locked Loops),
+Variable/Programmable Gain Amplifiers (VGA, PGA), and RF transceivers. You can use libiio natively
+on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
+from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
base-commit: 3ed24b2354907fd9ca4de6fa3ef0dc3015cafbca
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:20:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency of sdr++ for supporting PlutoSDR.
* gnu/packages/radio.scm (libad9361): New variable.
Change-Id: I1e8bca9ab978b3650ae8227e5e4391ea9d2a925e
---
gnu/packages/radio.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index cf8bb6f4e5..363c9ca778 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -257,6 +257,32 @@ (define-public libiio
on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+(define-public libad9361
+ (package
+ (name "libad9361")
+ (version "0.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libad9361-iio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1inv39xfg8gqz1v7k1n2a7p9zzlb6gq98gcnnpdcr9fa5alvmvpm"))))
+ (inputs
+ (list libiio))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libad9361-iio")
+ (synopsis
+ "IIO AD9361 library for filter design and handling, multi-chip sync, etc. ")
+ (description "This is a simple library used for userspace,
+which manages multi-chip sync (on platforms (FMCOMMS5) where multiple AD9361 devices are use)
+can create AD9361 specific FIR filters on the fly.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:20:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 77927 <at> debbugs.gnu.org (full text, mbox):
SDRangel will be compiled with PlutoSDR support when libiio is added.
* gnu/packages/radio.scm (sdrangel)[inputs]: Add libiio
* gnu/packages/radio.scm (sdrangel)[arguments]{#:configure-flags}: Use libiio
Change-Id: I7cf959b61af567a3133034ad52d5f4564f099c30
---
gnu/packages/radio.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 363c9ca778..05db36cc8f 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2794,6 +2794,7 @@ (define-public sdrangel
hamlib
hidapi
libdab
+ libiio
libusb
mbelib
opencv
@@ -2834,7 +2835,9 @@ (define-public sdrangel
(string-append "-DSGP4_DIR="
#$(this-package-input "sgp4"))
(string-append "-DSOAPYSDR_DIR="
- #$(this-package-input "soapysdr")))
+ #$(this-package-input "soapysdr"))
+ (string-append "-DIIO_DIR="
+ #$(this-package-input "libiio")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-unrecognized-compiler-option
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:21:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 77927 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/radio.scm (sdr++)[inputs]: Add libad9361 and libiio
* gnu/packages/radio.scm (sdr++)[arguments]{#:configure-flags}: Compile with
PlutoSDR support
Change-Id: I82206343928e39c235be741b61c6d55e7993e92c
---
gnu/packages/radio.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 05db36cc8f..61dda2a2e2 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2896,6 +2896,8 @@ (define-public sdr++
glfw
hackrf
jack-2
+ libad9361
+ libiio
libusb
pulseaudio
rtaudio
@@ -2906,7 +2908,7 @@ (define-public sdr++
(arguments
(list #:tests? #f ; No test suite.
#:configure-flags #~(list "-DOPT_BUILD_BLADERF_SOURCE=ON"
- "-DOPT_BUILD_PLUTOSDR_SOURCE=OFF"
+ "-DOPT_BUILD_PLUTOSDR_SOURCE=ON"
"-DOPT_BUILD_M17_DECODER=ON")
#:phases
#~(modify-phases %standard-phases
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:24:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 77927 <at> debbugs.gnu.org (full text, mbox):
Guillaume Le Vaillant <glv <at> posteo.net> writes:
> Hi.
> It looks like the installation of the Python bindings does not work;
> they are not in the built package.
> The build log indicates:
Hi,
right, thanks. I didn't actually use them, so I didn't care to check,
sorry for that. I actually didn't think much and copied most of this
from nixpkgs, except for the patches! Seems that the package actually
doesn't like our approach of first building and then installing and
would like to be first installed, and later on built and installed
again, with the bindings on.
I've added patch to not check this, and to hardcode path to the library
so that it doesn't have to be in ld library path...
It's a question which bindings should we enable anyway... I don't
know... For the sdrangel and sdr++ no bindings are necessary, just the
library. Apart from Python ones there is CPP and C#.
Anyway, for now I submitted version with Python bindings only, compiling
and working fine - I can import the iio library without failing to find
any symbols.
I can't check with hardware anymore, I've had PlutoSDR just borrowed for
a few days.
Information forwarded
to
rutherther <at> ditigal.xyz, glv <at> posteo.net, guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:48:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 77927 <at> debbugs.gnu.org (full text, mbox):
Sorry, I actually omitted one more thing - cross compilation,
now the libiio can cross compile.
Rutherther (4):
gnu: Add libiio
gnu: Add libad9361
gnu: sdrangel: Compile with PlutoSDR support
gnu: sdr++: Compile with PlutoSDR support
gnu/packages/radio.scm | 105 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 103 insertions(+), 2 deletions(-)
base-commit: 3ed24b2354907fd9ca4de6fa3ef0dc3015cafbca
--
2.49.0
Information forwarded
to
rutherther <at> ditigal.xyz, glv <at> posteo.net, guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:48:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency used for communicating with PlutoSDR.
* gnu/packages/radio.scm (libiio): New variable.
Change-Id: Ic34895af35fa008923fed0de74ad12ffc75f2021
---
gnu/packages/radio.scm | 70 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 2752380a3a..283b69bfd7 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -49,6 +49,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
@@ -56,6 +57,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages engineering)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages fltk)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gd)
@@ -190,6 +192,74 @@ (define-public libcorrect
used as a drop-in substitute for @code{libfec}.")
(license license:bsd-3))))
+(define-public libiio
+ (package
+ (name "libiio")
+ (version "0.26")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libiio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18cmaszfmn6kaa9gi26kkgjk506xqb8zsd4bq6yp8hzxr1qldfly"))))
+ (arguments
+ (list
+ #:tests? #f
+ #:configure-flags
+ #~(list
+ (string-append "-DPKG_CONFIG_EXECUTABLE="
+ (search-input-file %build-inputs
+ (string-append "/bin/" #$(pkg-config-for-target))))
+ (string-append "-DUDEV_RULES_INSTALL_DIR=" #$output "/lib/udev/rules.d")
+ "-DOSX_PACKAGE=off"
+ "-DOSX_FRAMEWORK=off"
+ (string-append "-DPython_EXECUTABLE=" (search-input-file %build-inputs "/bin/python3"))
+ "-DPYTHON_BINDINGS=on")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "bindings/python/iio.py"
+ (("_iiolib = \"iio\"") (string-append "_iiolib = \"" #$output "/lib/libiio.so\""))
+ (("find_library\\(_iiolib\\)") "_iiolib"))
+ ;; Libiio is not installed at the time of the build. The check is unnecessary,
+ ;; to do it the upstream way, we would have to configure, build, install
+ ;; without the bindings first, and then second time with the bindings...
+ (substitute* "bindings/python/setup.py.cmakein"
+ (("self._check_libiio_installed()") "")))))))
+ (native-inputs
+ (list
+ pkg-config
+ flex
+ bison
+ python))
+ (inputs
+ (list
+ avahi
+ libaio
+ libxml2
+ libusb))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libiio")
+ (synopsis "A cross platform library for interfacing with local and remote Linux IIO devices ")
+ (description
+ "Library for interfacing with Linux IIO devices
+libiio is used to interface to the Linux Industrial Input/Output (IIO) Subsystem.
+The Linux IIO subsystem is intended to provide support for devices that in some
+sense are analog to digital or digital to analog converters (ADCs, DACs).
+This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs,
+Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity Sensors,
+Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital Synthesis), PLLs (Phase Locked Loops),
+Variable/Programmable Gain Amplifiers (VGA, PGA), and RF transceivers. You can use libiio natively
+on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
+from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
--
2.49.0
Information forwarded
to
rutherther <at> ditigal.xyz, glv <at> posteo.net, guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:48:03 GMT)
Full text and
rfc822 format available.
Message #44 received at 77927 <at> debbugs.gnu.org (full text, mbox):
This is a dependency of sdr++ for supporting PlutoSDR.
* gnu/packages/radio.scm (libad9361): New variable.
Change-Id: I1e8bca9ab978b3650ae8227e5e4391ea9d2a925e
---
gnu/packages/radio.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 283b69bfd7..03560eaf3f 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -260,6 +260,32 @@ (define-public libiio
on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
+(define-public libad9361
+ (package
+ (name "libad9361")
+ (version "0.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/analogdevicesinc/libad9361-iio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1inv39xfg8gqz1v7k1n2a7p9zzlb6gq98gcnnpdcr9fa5alvmvpm"))))
+ (inputs
+ (list libiio))
+ (build-system cmake-build-system)
+ (license (list
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "https://github.com/analogdevicesinc/libad9361-iio")
+ (synopsis
+ "IIO AD9361 library for filter design and handling, multi-chip sync, etc. ")
+ (description "This is a simple library used for userspace,
+which manages multi-chip sync (on platforms (FMCOMMS5) where multiple AD9361 devices are use)
+can create AD9361 specific FIR filters on the fly.")))
+
(define-public liquid-dsp
(package
(name "liquid-dsp")
--
2.49.0
Information forwarded
to
rutherther <at> ditigal.xyz, glv <at> posteo.net, guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:48:03 GMT)
Full text and
rfc822 format available.
Message #47 received at 77927 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/radio.scm (sdr++)[inputs]: Add libad9361 and libiio
* gnu/packages/radio.scm (sdr++)[arguments]{#:configure-flags}: Compile with
PlutoSDR support
Change-Id: I82206343928e39c235be741b61c6d55e7993e92c
---
gnu/packages/radio.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 4b96d011bf..cbd982d814 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2899,6 +2899,8 @@ (define-public sdr++
glfw
hackrf
jack-2
+ libad9361
+ libiio
libusb
pulseaudio
rtaudio
@@ -2909,7 +2911,7 @@ (define-public sdr++
(arguments
(list #:tests? #f ; No test suite.
#:configure-flags #~(list "-DOPT_BUILD_BLADERF_SOURCE=ON"
- "-DOPT_BUILD_PLUTOSDR_SOURCE=OFF"
+ "-DOPT_BUILD_PLUTOSDR_SOURCE=ON"
"-DOPT_BUILD_M17_DECODER=ON")
#:phases
#~(modify-phases %standard-phases
--
2.49.0
Information forwarded
to
rutherther <at> ditigal.xyz, glv <at> posteo.net, guix-patches <at> gnu.org
:
bug#77927
; Package
guix-patches
.
(Sun, 20 Apr 2025 16:48:04 GMT)
Full text and
rfc822 format available.
Message #50 received at 77927 <at> debbugs.gnu.org (full text, mbox):
SDRangel will be compiled with PlutoSDR support when libiio is added.
* gnu/packages/radio.scm (sdrangel)[inputs]: Add libiio
* gnu/packages/radio.scm (sdrangel)[arguments]{#:configure-flags}: Use libiio
Change-Id: I7cf959b61af567a3133034ad52d5f4564f099c30
---
gnu/packages/radio.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 03560eaf3f..4b96d011bf 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2797,6 +2797,7 @@ (define-public sdrangel
hamlib
hidapi
libdab
+ libiio
libusb
mbelib
opencv
@@ -2837,7 +2838,9 @@ (define-public sdrangel
(string-append "-DSGP4_DIR="
#$(this-package-input "sgp4"))
(string-append "-DSOAPYSDR_DIR="
- #$(this-package-input "soapysdr")))
+ #$(this-package-input "soapysdr"))
+ (string-append "-DIIO_DIR="
+ #$(this-package-input "libiio")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-unrecognized-compiler-option
--
2.49.0
Reply sent
to
Guillaume Le Vaillant <glv <at> posteo.net>
:
You have taken responsibility.
(Mon, 21 Apr 2025 10:05:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Rutherther <rutherther <at> ditigal.xyz>
:
bug acknowledged by developer.
(Mon, 21 Apr 2025 10:05:02 GMT)
Full text and
rfc822 format available.
Message #55 received at 77927-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Patches applied as 95ccd0ca005ac02125110664308fed1c0278f981 and
following with a few minor cosmetic fixes.
Thanks.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.