Instalare libiio pe Raspberry Pi: Diferență între versiuni
Sari la navigare
Sari la căutare
| Linia 84: | Linia 84: | ||
===Tratare erori și librării lipsă=== | ===Tratare erori și librării lipsă=== | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt install -y libzstd-dev | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt install libavahi-client-dev | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libxml2-dev | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install bison | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install flex | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libaio1 | |||
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libaio-dev | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Versiunea de la data 19 martie 2025 23:46
Instalare libiio pe Raspberry Pi
Descărcare libiio și pregătire
tom@rpi-i2s:~/programare $ git clone https://github.com/analogdevicesinc/libiio.git
Cloning into 'libiio'...
remote: Enumerating objects: 20695, done.
remote: Counting objects: 100% (508/508), done.
remote: Compressing objects: 100% (276/276), done.
remote: Total 20695 (delta 346), reused 242 (delta 231), pack-reused 20187 (from 4)
Receiving objects: 100% (20695/20695), 20.65 MiB | 7.48 MiB/s, done.
Resolving deltas: 100% (13821/13821), done.
tom@rpi-i2s:~/programare $ cd libiio/
tom@rpi-i2s:~/programare/libiio $ mkdir build
tom@rpi-i2s:~/programare/libiio $ cd build/
tom@rpi-i2s:~/programare/libiio/build $ cmake ../
-- cmake version: 3.18.4
-- The C compiler identification is GNU 10.2.1
-- 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
-- Performing Test HAS_WPEDANTIC
-- Performing Test HAS_WPEDANTIC - Success
-- Performing Test HAS_WSHADOW
-- Performing Test HAS_WSHADOW - Success
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for newlocale
-- Looking for newlocale - found
-- Looking for in6addr_any
-- Looking for in6addr_any - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.24
-- Looking for libusb_get_version
-- Looking for libusb_get_version - found
-- Found Git: /usr/bin/git (found version "2.30.2")
CMake Error at CMakeLists.txt:474 (message):
Unable to find libzstd dependency.
If you want to disable ZSTD compression support, set WITH_ZSTD=OFF.
-- Performing Test WITH_NETWORK_EVENTFD
-- Performing Test WITH_NETWORK_EVENTFD - Success
CMake Error at CMakeLists.txt:543 (message):
Unable to find libavahi-common / libavahi-client dependencies.
If you want to disable DNS-SD (ZeroConf) support, set HAVE_DNS_SD=OFF.
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
CMake Error at CMakeLists.txt:579 (message):
Unable to find libxml2 dependency.
If you want to disable the XML backend, set WITH_XML_BACKEND=OFF.
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Could NOT find BISON (missing: BISON_EXECUTABLE)
-- Could NOT find FLEX (missing: FLEX_EXECUTABLE)
CMake Error at iiod/CMakeLists.txt:26 (flex_target):
Unknown CMake command "flex_target".
-- Configuring incomplete, errors occurred!
See also "/home/tom/programare/libiio/build/CMakeFiles/CMakeOutput.log".
Tratare erori și librării lipsă
tom@rpi-i2s:~/programare/libiio/build $ sudo apt install -y libzstd-dev
tom@rpi-i2s:~/programare/libiio/build $ sudo apt install libavahi-client-dev
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libxml2-dev
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install bison
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install flex
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libaio1
tom@rpi-i2s:~/programare/libiio/build $ sudo apt-get install libaio-dev