AnsweredAssumed Answered

Can't get gr-iio loaded in Linux using https://wiki.analog.com/resources/tools-software/linux-software/gnuradio

Question asked by etroy on Sep 22, 2017
Latest reply on Sep 25, 2017 by travisfcollins
Branched to a new discussion

I have been following the instructions on that page, but when I get down to the last few steps, I get errors that I can' resolve. Specifically, they are related to getting gr-iio loaded. When I enter /$ sudo git clone https://github.com/analogdevicesinc/gr-iio.git

 

I get the following

Cloning into 'gr-iio'...
remote: Counting objects: 1372, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 1372 (delta 0), reused 1 (delta 0), pack-reused 1368
Receiving objects: 100% (1372/1372), 267.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (930/930), done.
Checking connectivity... done.
edtroy@ubuntu:/$ cd gr-iio
edtroy@ubuntu:/gr-iio$ sudo cmake .
-- The CXX compiler identification is GNU 4.8.4
-- The C compiler identification is GNU 4.8.4
-- 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
-- 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
-- Build type not specified: defaulting to release.
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   thread
--   date_time
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
Checking for GNU Radio Module: RUNTIME
-- checking for module 'gnuradio-runtime'
--   found gnuradio-runtime, version 3.7.2.1
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so
-- Found GNURADIO_RUNTIME: /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so  
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: ANALOG
-- checking for module 'gnuradio-analog'
--   found gnuradio-analog, version 3.7.2.1
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-analog.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so
-- Found GNURADIO_ANALOG: /usr/lib/x86_64-linux-gnu/libgnuradio-analog.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so  
GNURADIO_ANALOG_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
-- checking for module 'gnuradio-blocks'
--   found gnuradio-blocks, version 3.7.2.1
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so
-- Found GNURADIO_BLOCKS: /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so  
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: PMT
-- checking for module 'gnuradio-runtime'
--   found gnuradio-runtime, version 3.7.2.1
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so
-- Found GNURADIO_PMT: /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so  
GNURADIO_PMT_FOUND = TRUE
Checking for GNU Radio Module: VOLK
-- checking for module 'volk'
--   found volk, version 0.1
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/x86_64-linux-gnu/libvolk.so
-- Found GNURADIO_VOLK: /usr/lib/x86_64-linux-gnu/libvolk.so  
GNURADIO_VOLK_FOUND = TRUE
-- Found FLEX: /usr/bin/flex (found version "2.5.35")
-- Found BISON: /usr/bin/bison (found version "3.0.2")
-- Could NOT find SWIG (missing:  SWIG_EXECUTABLE SWIG_DIR)
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2")
CMake Warning (dev) at python/iio/CMakeLists.txt:23 (include):
  Syntax Warning in cmake code at

 

    /gr-iio/cmake/Modules/GrPython.cmake:196:44

 

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at python/iio/CMakeLists.txt:23 (include):
  Syntax Warning in cmake code at

 

    /gr-iio/cmake/Modules/GrPython.cmake:196:92

 

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at python/iio/CMakeLists.txt:23 (include):
  Syntax Warning in cmake code at

 

    /gr-iio/cmake/Modules/GrPython.cmake:196:100

 

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

 

-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.6", minimum required is "2")
-- Configuring done
-- Generating done
-- Build files have been written to: /gr-iio
edtroy@ubuntu:/gr-iio$ sudo make
[  5%] [BISON][parser] Building parser with bison 3.0.2
[ 10%] [FLEX][lexer] Building scanner with flex 2.5.35
Scanning dependencies of target gnuradio-iio
[ 15%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o
In file included from /usr/include/gnuradio/block.h:29:0,
                 from /usr/include/gnuradio/sync_block.h:27,
                 from /gr-iio/include/gnuradio/iio/device_source.h:27,
                 from /gr-iio/lib/device_source_impl.h:30,
                 from /gr-iio/lib/device_source_impl.cc:28:
/usr/include/gnuradio/logger.h:116:31: fatal error: log4cpp/Category.hh: No such file or directory
 #include <log4cpp/Category.hh>
                               ^
compilation terminated.
make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
make: *** [all] Error 2

 

 

The problem appears to be at the very end. How do I solve this and get gr-iio working with gnuradio? I sas specifically interested in working with FMCOMMS3 and Pluto boards.

Ed

Outcomes