1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-02-05 13:40:09 +00:00

Simplify installation instructions for gr-iio

This commit is contained in:
Carles Fernandez 2017-11-01 20:50:20 +01:00
parent a9be24420e
commit 36200183d2

View File

@ -373,51 +373,38 @@ $ sudo make install
Install the [libiio](https://github.com/analogdevicesinc/libiio.git) (>=v0.11), [libad9361](https://github.com/analogdevicesinc/libad9361-iio.git) (>=v0.1-1) libraries and [gr-iio](https://github.com/analogdevicesinc/gr-iio.git) (>=v0.2) gnuradio block. For example in Ubuntu 16.04 follow these instructions (based on https://github.com/blurbdust/blurbdust.github.io): Install the [libiio](https://github.com/analogdevicesinc/libiio.git) (>=v0.11), [libad9361](https://github.com/analogdevicesinc/libad9361-iio.git) (>=v0.1-1) libraries and [gr-iio](https://github.com/analogdevicesinc/gr-iio.git) (>=v0.2) gnuradio block. For example in Ubuntu 16.04 follow these instructions (based on https://github.com/blurbdust/blurbdust.github.io):
~~~~~~ ~~~~~~
$ sudo apt-get install libxml2-dev bison flex
$ git clone https://github.com/analogdevicesinc/libiio.git $ git clone https://github.com/analogdevicesinc/libiio.git
$ cd libiio $ cd libiio
$ mkdir build $ mkdir build
$ cd build $ cd build
$ cmake .. $ cmake ..
$ make $ make && sudo make install && sudo ldconfig
$ sudo make install $ cd ../..
$ sudo ldconfig
$ git clone https://github.com/analogdevicesinc/libad9361-iio.git $ git clone https://github.com/analogdevicesinc/libad9361-iio.git
$ cd libad9361-iio $ cd libad9361-iio
$ mkdir build $ mkdir build
$ cd build $ cd build
$ cmake .. $ cmake ..
$ make $ make && sudo make install && sudo ldconfig
$ sudo make install $ cd ../..
$ sudo ldconfig
$ git clone https://github.com/analogdevicesinc/gr-iio.git $ git clone https://github.com/analogdevicesinc/gr-iio.git
$ cd gr-iio $ cd gr-iio
$ mv include/gnuradio/iio include/iio
$ rm -r include/gnuradio
$ sed -i 's/gnuradio\/iio/iio/g' CMakeLists.txt
$ sed -i 's/gnuradio\/iio/iio/g' swig/*
$ sed -i 's/gnuradio\/iio/iio/g' include/iio/*
$ sed -i 's/gnuradio\/iio/iio/g' lib/*
$ sed -i 's/gnuradio\/iio/iio/g' python/iio/*
$ sed -i 's/from\ gnuradio\ import\ iio/import\ iio/g' grc/iio_pluto_sink.xml
$ sed -i 's/from\ gnuradio\ import\ iio/import\ iio/g' grc/iio_pluto_source.xml
$ sed -i 's/from\ gnuradio\ import\ iio/import\ iio/g' grc/iio_fmcomms2_sink.xml
$ sed -i 's/from\ gnuradio\ import\ iio/import\ iio/g' grc/iio_fmcomms2_source.xml
$ mkdir build $ mkdir build
$ cd build $ cd build
$ cmake .. $ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$ make $ make && sudo make install && sudo ldconfig
$ sudo make install $ cd ../..
$ sudo ldconfig
~~~~~~ ~~~~~~
Then configure the gnss-sdr to build the `Fmcomms2_Signal_Source` and `Plutosdr_Signal_Source`: Then configure the gnss-sdr to build the `Fmcomms2_Signal_Source` implementation:
~~~~~~ ~~~~~~
$ cmake -DENABLE_FMCOMMS2=ON ../ $ cmake -DENABLE_FMCOMMS2=ON ../
$ make $ make
$ sudo make install $ sudo make install
~~~~~~ ~~~~~~
or configure only `Plutosdr_Signal_Source`: or configure it to build `Plutosdr_Signal_Source`:
~~~~~~ ~~~~~~
$ cmake -DENABLE_PLUTOSDR=ON ../ $ cmake -DENABLE_PLUTOSDR=ON ../
$ make $ make