Check the lines at 1.096.
On Thu, Sep 21, 2023 at 11:14 AM Guillermo Lena <guille-lena@hotmail.com> wrote:
Hello everyone,
I have been trying to install the gr-iio module to interface with the PlutoSDR device from analog devices for GNU Radio 3.8 using a Docker. I have been following the instructions in the following link https://wiki.analog.com/resources/tools-software/linux-software/gnuradio but i dont seem to get it right. I dont know if i am doing some step wrong that i am unaware of or what it is. Any insight on it would be much appreciated.
The Dockerfile i am using is the following:
FROM ubuntu:20.04
# You use this mode when you need zero interaction while installing or upgrading the system via apt.ENV DEBIAN_FRONTEND=noninteractiveENV LC_ALL=C.UTF-8ENV LANG=C.UTF-8
RUN apt-get update && apt-get install -y \xterm \cmake \software-properties-common \git
RUN apt-get update && apt-get install -y \libusb-1.0-0-dev \liborc-dev \libzmq5 \libzmq3-dev \swig \python3 \python3-pip \vim \nano\gcc-10 g++-10
# install Visual Code for embedded python blocks edditingRUN apt update && apt install software-properties-common apt-transport-https wget -yRUN apt install -y code
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \--slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
# else it will output an error about Gtk namespace not foundRUN apt-get update && apt-get install -y gir1.2-gtk-3.0
# to have add-apt-repository availableRUN apt-get update && apt-get install -y software-properties-commonRUN apt-get update && add-apt-repository -y ppa:gnuradio/gnuradio-releases-3.8
RUN apt-get update
RUN apt-get install -y gnuradio
# installing other packages needed for downloading and installing OOT modulesRUN apt-get install -y gnuradio-dev cmake git libboost-all-dev libcppunit-dev liblog4cpp5-dev swig liborc-dev libgsl-dev
# install gr-satellitesRUN pip install --user --upgrade construct requests
RUN pip install websocket-client
WORKDIR /gr-satellites/RUN git checkout maint-3.8RUN mkdir buildWORKDIR /gr-satellites/build/RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make && make install && ldconfigWORKDIR /gr-satellites/grc/RUN mkdir buildWORKDIR /gr-satellites/grc/build/RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make && make install && ldconfigWORKDIR /
RUN ldconfig
# install gr-gpredict-dopplerRUN cd gr-gpredict-doppler && \git checkout maint-3.8 && \mkdir build && \cd build && \cmake ../ && \make install
RUN ldconfig
WORKDIR /home/gnuradio
# dependencies for gr-opssat python appRUN pip3 install PyQt5 pyzmq crccheck numpy
RUN ldconfig
WORKDIR /
# ------ gr-iio
RUN apt-get updateRUN apt-get install -y libxml2 libxml2-dev bison flex cmake git libaio-dev libboost-all-devRUN apt-get install -y doxygenRUN apt-get install -y libusb-1.0-0-devRUN apt-get install -y libavahi-common-dev libavahi-client-devRUN apt-get -y install libzstd-devRUN apt-get install -y bison flex cmake git libgmp-devRUN apt-get install -y swigRUN apt-get install -y liborc-devRUN apt-get install -y libiio-utils
WORKDIR libiioRUN mkdir buildWORKDIR buildRUN cmake .. -DPYTHON_BINDINGS=ONRUN make && make install && ldconfigWORKDIR /
WORKDIR libad9361-iioRUN mkdir buildWORKDIR buildRUN cmake .. -DPYTHON_BINDINGS=ONRUN make && make install && ldconfigWORKDIR /
WORKDIR gr-iioRUN mkdir buildWORKDIR buildRUN cmake ..RUN make && make installWORKDIR /RUN ldconfig# -------------------
ENV PYTHONPATH /usr/local/lib/python3/dist-packages/
# Create non-root userRUN groupadd -r -g 1000 gnuradio && \useradd -r -m -s /sbin/nologin -u 1000 -g gnuradio gnuradio# Must be done as root ?????RUN gpasswd -a gnuradio audio
USER gnuradio
WORKDIR /home/gnuradio
CMD bash
Then the error that i am getting is the following:
=> ERROR [57/73] RUN cmake .. -DPYTHON_BINDINGS=ON 1.1s------> [57/73] RUN cmake .. -DPYTHON_BINDINGS=ON:0.598 -- The C compiler identification is GNU 10.5.00.608 -- Check for working C compiler: /usr/bin/cc0.667 -- Check for working C compiler: /usr/bin/cc -- works0.669 -- Detecting C compiler ABI info0.731 -- Detecting C compiler ABI info - done0.743 -- Detecting C compile features0.743 -- Detecting C compile features - done0.757 -- Found Git: /usr/bin/git (found version "2.25.1")0.910 -- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen missing components: dot1.096 -- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3.6") found components: Interpreter1.096 -- Found Python: Building bindings1.098 CMake Error at bindings/python/CMakeLists.txt:41 (message):1.098 Can not build python doc without sphinx-build1.0981.0981.099 -- Configuring incomplete, errors occurred!1.099 See also "/libad9361-iio/build/CMakeFiles/CMakeOutput.log".1.099 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.1.099 Please set them or make sure they are set and tested correctly in the CMake files:1.099 LIBIIO_INCLUDEDIR1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/test1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099 used as include directory in directory /libad9361-iio/bindings/python1.099------Dockerfile:119--------------------117 | RUN mkdir build118 | WORKDIR build119 | >>> RUN cmake .. -DPYTHON_BINDINGS=ON120 | RUN make && make install && ldconfig121 | WORKDIR /--------------------ERROR: failed to solve: process "/bin/sh -c cmake .. -DPYTHON_BINDINGS=ON" did not complete successfully: exit code: 1
No comments:
Post a Comment