Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
resources:tools-software:linux-software:libiio [25 Apr 2022 13:19] – [Network Backends] Michael Hennerichresources:tools-software:linux-software:libiio [15 Nov 2023 23:50] – Update libiio branch Travis Collins
Line 32: Line 32:
 ===== Building on the Linux/Zynq Target ===== ===== Building on the Linux/Zynq Target =====
  
-Check out how to [[/resources/tools-software/linux-software/zynq_images#staying_up_to_date|stay up to date]]. This will check out and build the latest version.+Check out how to [[:resources:tools-software:linux-software:kuiper-linux |stay up to date]]. This will check out and build the latest version.
  
 ===== Building on the Linux Host Target ===== ===== Building on the Linux Host Target =====
Line 39: Line 39:
  
 The first step is to fetch the dependencies, which as of now is only libxml2. The first step is to fetch the dependencies, which as of now is only libxml2.
 +
 +==== Debian based distributions ====
 +
 On a Debian-flavoured GNU/Linux distribution, like Ubuntu for instance: On a Debian-flavoured GNU/Linux distribution, like Ubuntu for instance:
 <xterm>rgetz@pinky:~$ **sudo apt-get install libxml2 libxml2-dev bison flex libcdk5-dev cmake**</xterm> <xterm>rgetz@pinky:~$ **sudo apt-get install libxml2 libxml2-dev bison flex libcdk5-dev cmake**</xterm>
Line 45: Line 48:
 <xterm>rgetz@pinky:~$ **sudo apt-get install libaio-dev libusb-1.0-0-dev libserialport-dev libxml2-dev libavahi-client-dev doxygen graphviz**</xterm> <xterm>rgetz@pinky:~$ **sudo apt-get install libaio-dev libusb-1.0-0-dev libserialport-dev libxml2-dev libavahi-client-dev doxygen graphviz**</xterm>
  
-If you want to have local context attributes, its a good idea to install libini. This will allow reading of a local file in ''/etc/libiio.ini'' for this purpose. +==== RedHAT based distributions ====
-<xterm>analog@pinky:~$ **git clone https:%%//%%github.com/pcercuei/libini.git** +
-analog@pinky:~$ **cd libini** +
-analog@pinky:~/libini$ **mkdir build && cd build && cmake ../ && make && sudo make install**</xterm>+
  
-Then, you can clone the GIT repository: +<xterm>[liveuser@localhost-live ~]$ **sudo dnf install libxml2 libxml2-devel bison flex make gcc cmake rpmdevtools**</xterm> 
-<xterm>rgetz@pinky:~$ **git clone https:%%//%%github.com/analogdevicesinc/libiio.git**</xterm>+ 
 +Depending on the backend (how you want to attach the IIO device), you may need at least one of: 
 +<xterm>[liveuser@localhost-live ~]$ **sudo dnf install libaio-devel libusb1-devel libserialport-devel avahi-devel doxygen graphviz**</xterm> 
 + 
 +==== FreeBSD based distributions ==== 
 + 
 +<xterm>rgetz@freebsd:~ $ **sudo pkg update && sudo pkg upgrade && sudo pkg install libxml2 bison flex gcc cmake git**</xterm> 
 + 
 +Depending on the backend (how you want to attach the IIO device), you may need at least one of: 
 +<xterm>rgetz@freebsd:~ $ **sudo pkg install libserialport avahi doxygen graphviz**</xterm> 
 + 
 +add these lines to ''/etc/rc.conf'': 
 +<code> 
 +dbus_enable="YES" 
 +avahi_daemon_enable="YES" 
 +avahi_dnsconfd_enable="YES" 
 +</code> 
 + 
 +FreeBSD does not automount USB drives by default, so you need to install an automounter: 
 +<xterm>rgetz@freebsd:~ $ **sudo pkg install automount**</xterm> 
 +==== Remaining steps1 ==== 
 + 
 +<note warning>At this time the main branch of libiio in under heavy development. It is recommended to use the latest release if not a developer. That would be a v0.XX release.</note> 
 + 
 +Now you have the prerequisite installed, you can clone a release branch from the GIT repository: 
 +<xterm>rgetz@pinky:~$ **git clone https:%%//%%github.com/analogdevicesinc/libiio.git --branch v0.25**</xterm>
  
 Finally, in the ''libiio/'' directory, Finally, in the ''libiio/'' directory,
Line 63: Line 88:
 /libiio$ PATH=/usr/lib/:$PATH /libiio$ PATH=/usr/lib/:$PATH
 </xterm> </xterm>
 +
  
 ==== Understanding which libiio is being used ==== ==== Understanding which libiio is being used ====
resources/tools-software/linux-software/libiio.txt · Last modified: 12 Jan 2024 21:30 by Robin Getz