Post Go back to editing

Fail to MAKE the iio_info in Ubuntu Linux

Category: Software
Product Number: libiio
Software Version: 0.26

Library: libiio

Hardware: Banana Pi BPI-M4

OS: Ubuntu Xenial 16.04.7 LTS

 

Goal: Running iio_info.c on Banana Pi

 

Problem Background:

  1. We downloaded Release Libiio release v0.26 · analogdevicesinc/libiio >> libiio-0.26.g-Ubuntu-arm64v8.tar.gz.
  2. Then we try to build iio_info.c from llbiio/utils but failed.

 

Questions:

Could you provide the guide to MAKE the iio_info in Ubuntu Linux?

  • Expectation Result: Demo Video to show how to make iio_info in Ubuntu Linux if possible


Edit Layout
[edited by: YongLawrence at 9:20 AM (GMT -5) on 10 Dec 2024]
  • Then we try to build iio_info.c from llbiio/utils but failed.

    Please provide more information.

    iio_info is installed as part of the deb. If you want to recompile it you need to use the source repo of libiio and its cmake system or compile it by hand.

    -Travis

  • Hi  ,

    Questions:

    1. I've recorded libiio installation video with error output, could you help verify any step i miss?
    2. Since .deb and .tar.gz failed to run iio_info, is it possible I "build?" the library from github code (.c .h) in Ubuntu Mate by myself?
      1. If yes, is there any tutorial from Analog Device?

    OS: BPI-M4/BPI-W2 Ubuntu Mate 18.04 (All videos below are taken under reimage clean OS)

    Libiio version: Release Libiio release v0.26 · analogdevicesinc/libiio

    Install llibiio.deb video:

    Install llibiio.tar.gz video:

    Failed update to libicuucso66 video:

  • The ARM variants are all built based on Ubuntu 18.04 which may ship with different package versions than your OS. If your OS cannot meet the package requirements for those prebuilt packages build from source as documented: https://github.com/analogdevicesinc/libiio/blob/v0.26/README_BUILD.md

    -Travis

  • Thanks  . The issue is resolved based on your document's guidance.

    Extra: I need to install sudo apt install libzstd-dev

    • If not, Error missing LIBZSTD will occur when run command in Step 3 Configure & Build >> cmake ../ -DCPP_BINDINGS=ON -DPYTHON_BINDINGS=ON

    Here's the final result when I run iio_info (without connect any hardware) 

  • Just one thing, I would not recommend using v1 (main branch) unless required for your application. Its is unstable. Please you a tagged release if possible.

    -Travis