Package Details: gnuradio-iio-git 20201109-1

Git Clone URL: https://aur.archlinux.org/gnuradio-iio-git.git (read-only, click to copy)
Package Base: gnuradio-iio-git
Description: IIO blocks for GNU Radio
Upstream URL: https://github.com/analogdevicesinc/gr-iio
Licenses: GPL3
Conflicts: gnuradio-iio
Provides: gnuradio-iio
Submitter: keenerd
Maintainer: keenerd
Last Packager: keenerd
Votes: 4
Popularity: 0.000000
First Submitted: 2017-08-23 19:32 (UTC)
Last Updated: 2020-12-20 23:30 (UTC)

Latest Comments

greyltc commented on 2021-11-11 15:02 (UTC)

sed "s|unique = hashlib\.md5('\${reldir}\${ARGN}')\.hexdigest()\[:5\]|unique = hashlib.md5('\${reldir}\${ARGN}'.encode('utf-8')).hexdigest()[:5]|" -i cmake/Modules/UseSWIG.cmake

in prepare() will fix the swig issue, but there seem to be deeper issues...

dreieck commented on 2021-09-30 12:22 (UTC)

Build fails for me with

CMake Error at cmake/Modules/UseSWIG.cmake:202 (add_custom_command):
  add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.

Full build() output:

==> Starting build()...
-- The CXX compiler identification is GNU 11.1.0
-- The C compiler identification is GNU 11.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.35") found components: filesystem system thread date_time chrono 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found LOG4CPP: /usr/lib/liblog4cpp.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for module 'gmp'
--   Found gmp, version 6.2.1
-- Found GMP: /usr/lib/libgmpxx.so  
-- Using GMP.
-- Found MPLIB: /usr/lib/libgmpxx.so  
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.76.0") found components: date_time program_options filesystem system regex thread unit_test_framework 
-- Found Volk: Volk::volk  
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found BISON: /usr/bin/bison (found suitable version "3.7.6", minimum required is "3.0.2") 
-- Found SWIG: /usr/bin/swig (found evrsion "4.0.2")  
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable version "3.9.7", minimum required is "2") 
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.7") 
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable exact version "3.9.7") 
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable version "3.9.7", minimum required is "2") 
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success
Traceback (most recent call last):
  File "<string>", line 2, in <module>
TypeError: Unicode-objects must be encoded before hashing
CMake Error at cmake/Modules/UseSWIG.cmake:202 (add_custom_command):
  add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.
Call Stack (most recent call first):
  cmake/Modules/UseSWIG.cmake:256 (SWIG_ADD_SOURCE_TO_MODULE)
  cmake/Modules/GrSwig.cmake:158 (SWIG_ADD_MODULE)
  swig/CMakeLists.txt:47 (GR_SWIG_MAKE)


Traceback (most recent call last):
  File "<string>", line 2, in <module>
TypeError: Unicode-objects must be encoded before hashing
CMake Error at cmake/Modules/UseSWIG.cmake:199 (add_executable):
  add_executable cannot create target
  "/[...]/gnuradio-iio-git/src/gr-iio/build/swig/.cpp"
  because another target with the same name already exists.  The existing
  target is an executable created in source directory
  "/[...]/gnuradio-iio-git/src/gr-iio/swig".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  cmake/Modules/UseSWIG.cmake:256 (SWIG_ADD_SOURCE_TO_MODULE)
  cmake/Modules/GrSwig.cmake:158 (SWIG_ADD_MODULE)
  swig/CMakeLists.txt:48 (GR_SWIG_MAKE)


Traceback (most recent call last):
  File "<string>", line 2, in <module>
TypeError: Unicode-objects must be encoded before hashing
CMake Error at cmake/Modules/UseSWIG.cmake:199 (add_executable):
  add_executable cannot create target
  "/[...]/gnuradio-iio-git/src/gr-iio/build/swig/.cpp"
  because another target with the same name already exists.  The existing
  target is an executable created in source directory
  "/[...]/gnuradio-iio-git/src/gr-iio/swig".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  cmake/Modules/UseSWIG.cmake:256 (SWIG_ADD_SOURCE_TO_MODULE)
  cmake/Modules/GrSwig.cmake:158 (SWIG_ADD_MODULE)
  swig/CMakeLists.txt:49 (GR_SWIG_MAKE)


CMake Error at cmake/Modules/GrSwig.cmake:188 (GR_LIBTOOL):
  Unknown CMake command "GR_LIBTOOL".
Call Stack (most recent call first):
  swig/CMakeLists.txt:54 (GR_SWIG_INSTALL)


-- Configuring incomplete, errors occurred!
See also "/[...]/gnuradio-iio-git/src/gr-iio/build/CMakeFiles/CMakeOutput.log".
See also "/[...]/gnuradio-iio-git/src/gr-iio/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

Thanks for maintaining!

hotaru commented on 2021-05-05 19:25 (UTC)

libad9361-iio doesn't exist, but libad9361 is in community and seems to work. please update depends.

funky-captain commented on 2020-03-21 11:47 (UTC)

Hi, i changed the PKBBUILD regarding your sugggestion. It now builds. Also I changed the pyhon version to 3. The block description .yml gets intalled into to wrong directory (/usr/share/gr-iio/grc/blocks/ instead of /usr/share/gnuradio/grc/blocks/). When I link the files into the new directory I can add it in GCR. Unfortunately I get the following error:

usr/lib/python3.8/site-packages/gnuradio/qtgui/range.py:41: SyntaxWarning: "is not" with a literal. Did you mean "!="? precision = len(temp) if temp is not '0' else 0 Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/iio/init.py", line 30, in <module> from .iio_swig import * File "/usr/lib/python3.8/site-packages/iio/iio_swig.py", line 13, in <module> from . import _iio_swig ImportError: /usr/lib/libgnuradio-iio.so...: undefined symbol: _ZN5boost6chrono12steady_clock3nowEv

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/argos/ewef.py", line 33, in <module> import iio File "/usr/lib/python3.8/site-packages/iio/init.py", line 36, in <module> from .iio_swig import *

Here is the MAKEPKG File: Can you help?

Maintainer: Kyle Keen keenerd@gmail.com?

pkgname=gnuradio-iio-git _gitname=gr-iio pkgver=20200225 pkgrel=1 pkgdesc="IIO blocks for GNU Radio" url="https://github.com/analogdevicesinc/gr-iio" arch=('i686' 'x86_64') license=('GPL3') depends=('libad9361-iio') makedepends=('git' 'cmake' 'boost' 'swig') provides=('gnuradio-iio') conflicts=('gnuradio-iio') source=("git+https://github.com/analogdevicesinc/gr-iio.git#branch=upgrade-3.8") md5sums=('SKIP')

pkgver() { cd "$_gitname" git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' }

build() { cd "$_gitname" mkdir -p build cd build export PYTHON=python3 cmake \ -DPYTHON_EXECUTABLE=$(which python3) \ -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python3) \ -DPYTHON_LIBRARY=$(echo /usr/lib/libpython3..so) \ -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../ make }

package() { cd "$_gitname/build" make DESTDIR="${pkgdir}" install }

rgrunbla commented on 2020-03-21 09:00 (UTC)

Hi,

if you replace the source line with source=("git+https://github.com/analogdevicesinc/gr-iio.git#branch=upgrade-3.8") everything should works fine (see https://github.com/analogdevicesinc/gr-iio/pull/57 )

DonOregano commented on 2019-12-23 23:01 (UTC) (edited on 2019-12-25 09:58 (UTC) by DonOregano)

I've managed to get it to build against gnuradio 3.8, with the PGKBUILD and patch that you can find here: https://gist.github.com/DonOregano/d45b84163fad7e9568befbc047b37c26

However, I cannot get it to work in gnuradio. I get the following error from GR: thread[thread-per-block[0]: <block fmcomms2_source(3)>]: pmt_to_long: wrong_type : #f

Anyone have any ideas?

funky-captain commented on 2019-11-11 13:49 (UTC)

Any chance to provide a fix?

juliosddr commented on 2019-09-21 09:33 (UTC)

.cache/yay/gnuradio-iio-git/src/gr-iio/lib/iio_math_impl.cc:30:10: fatal error: gnuradio/analog/sig_source_f.h: No such file or directory 30 | #include <gnuradio/analog/sig_source_f.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~