1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Changing info of gnuradio-build script (it installs GNU Radio 3.6, which is not usable by GNSS-SDR) by PyBOMBS, that installs the lastest version (>3.7).

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@452 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2013-11-27 19:23:21 +00:00
parent fc317810cc
commit 5a292919f7

74
README
View File

@ -5,30 +5,42 @@ This document describes how to set up the compilation environment and build GNSS
GNU/Linux
-----------------------------------------------------------
Tested distributions: Ubuntu 12.04 (32 and 64 bits), Debian 6.0.6, Fedora 18 (newer versions should work, too)
Tested distributions: Ubuntu 12.04, 12.10, 13.04 and 13.10 (32 and 64 bits), Debian 6.0.6, Fedora 18 (newer versions should work, too)
* Install GNU Radio:
- Downloading, building and installing GNU Radio and all its dependencies is not a simple task. We recommend to use Marcus Leech's build-gnuradio script, which automatically does all the work for you. In a terminal, do:
- Downloading, building and installing GNU Radio and all its dependencies is not a simple task. We recommend to use PyBOMBS (Python Build Overlay Managed Bundle System), the GNU Radio install management system that automatically does all the work for you. In a terminal, type:
$ wget http://www.sbrac.org/files/build-gnuradio
$ chmod a+x build-gnuradio
$ ./build-gnuradio
$ git clone git://github.com/pybombs/pybombs
$ cd pybombs
This can take a while (up to two hours to complete, depending on your system), and installs the latest versions of UHD and GNU Radio in your system, including all their dependencies. In case you do not want to use the script and prefer to build and install GNU Radio manually from source, follow instructions in http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
Configure PyBOMBS:
- Set up some system variables needed by the GNSS-SDR build system:
$ ./pybombs config
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages
export LD_LIBRARY_PATH=/usr/local/lib
You can safely accept the default options but for prefix. We recommend to put /usr/local there. After the configuration, you should get something similar to:
gituser = username
prefix = /usr/local
satisfy_order = deb,src
forcepkgs =
timeout = 30
cmakebuildtype = RelWithDebInfo
builddocs = OFF
Then, you are ready to download and install UHD (the Universal Hardware Driver), GNU Radio and all their required dependencies by doing:
$ sudo ./pybombs install uhd gnuradio
This can take some time (up to two hours to complete, depending on your system), and installs the latest versions of the Universal Hardware Driver (UHD) and GNU Radio in your system, including all their dependencies.
In case you do not want to use PyBOMBS and prefer to build and install GNU Radio manually from source, follow instructions at the GNU Radio Building Guide at http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
In order to avoid defining these variables each time you enter a session, you may want to add these three lines to your $HOME/.bashrc file.
* Install other libraries used by GNSS-SDR:
- Download, compile, and install the Armadillo linear algebra library
$ sudo apt-get install libatlas-dev
$ sudo apt-get install libatlas-dev liblapack-dev gfortran
$ wget http://sourceforge.net/projects/arma/files/armadillo-3.920.2.tar.gz
$ tar xvfz armadillo-3.920.2.tar.gz
$ cd armadillo-3.920.2
@ -38,6 +50,25 @@ $ sudo make install
The full stop separated from "cmake" by a space is important. CMake will figure out what other libraries are currently installed and will modify Armadillo's configuration correspondingly. CMake will also generate a run-time armadillo library, which is a combined alias for all the relevant libraries present on your system (eg. BLAS, LAPACK and ATLAS).
- Download, unzip, configure, build and install Google's gflags package, a commandline flags processing module for C++:
$ wget http://gflags.googlecode.com/files/gflags-2.0.zip
$ unzip gflags-2.0.zip
$ cd gflags-2.0
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
- Download, unzip, configure, build and install glog, a Google's library that implements application-level logging:
$ wget http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
$ tar xvfz glog-0.3.3.tar.gz
$ cd glog-0.3.2
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
- Download, unzip, configure, build and install gperftools, a set of performance analysis tools:
@ -63,27 +94,6 @@ $ export GTEST_DIR=/home/username/gtest-1.7.0
changing /home/username/gtest-1.7.0 by the actual directory where you downloaded gtest. Again, it is recommended to add this line to your $HOME/.bashrc file.
- Download, unzip, configure, build and install Google's gflags package, a commandline flags processing module for C++:
$ wget http://gflags.googlecode.com/files/gflags-2.0.zip
$ unzip gflags-2.0.zip
$ cd gflags-2.0
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
- Download, unzip, configure, build and install glog, a Google's library that implements application-level logging:
$ wget http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
$ tar xvfz glog-0.3.3.tar.gz
$ cd glog-0.3.2
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
- Install Subversion
$ sudo apt-get install subversion