Changes between Initial Version and Version 1 of Documentation/dSDR/GNURadio/Installation32Ubuntu


Ignore:
Timestamp:
Jan 16, 2010, 3:23:08 AM (14 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/dSDR/GNURadio/Installation32Ubuntu

    v1 v1  
     1= Installing GNU Radio ver. >= 3.2 on the (Ubuntu) image =
     2
     3== Install prerequisite packages ==
     4
     5If you are upgrading from an older install, you may have python-wxgtk2.6 installed. Because python-wxgtk2.6 takes precedence over python-wxgtk2.8, it must be removed:
     6
     7{{{
     8sudo apt-get remove python-wxgtk2.6
     9}}}
     10
     11For Jaunty (9.04) version of Ubuntu:
     12
     13{{{
     14sudo apt-get -y install swig g++ automake1.9 libtool python2.5-dev \
     15fftw3-dev libcppunit-dev libboost1.35-dev sdcc-nf libusb-dev \
     16libsdl1.2-dev python-wxgtk2.8 subversion git guile-1.8-dev \
     17libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
     18python-cheetah python-lxml doxygen qt4-dev-tools \
     19libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools
     20}}}
     21
     22=== Install Boost ===
     23
     24Download the latest version of boost from boost.sourceforge.net (boost_1_37_0.tar.bz2 was the latest when this was written). Unpack it somewhere and cd into the resulting directory, pick a prefix to install it into (for example use /opt/boost_1_37_0), conifgure, compile and install the package:
     25
     26{{{
     27$ cd boost_1_37_0
     28$ BOOST_PREFIX=/opt/boost_1_37_0
     29$ ./configure --prefix=$BOOST_PREFIX –with-libraries=thread,date_time,program_options
     30...
     31$ make
     32...
     33$ sudo make install
     34...
     35}}}
     36
     37=== Installing GNU Radio ===
     38
     39Download latest version of GNU Radio package:
     40
     41 * from SVN
     42{{{
     43svn co http://gnuradio.org/svn/gnuradio/trunk gnuradio   
     44}}}
     45 * or from git
     46{{{
     47git clone http://gnuradio.org/git/gnuradio.git
     48}}}
     49
     50Bootstrap, configure, and compile it
     51
     52{{{
     53cd gnuradio
     54export LD_LIBRARY_PATH=$BOOST_PREFIX/lib     # As per the instructions for installing Boost
     55
     56./bootstrap
     57./configure --with-boost=$BOOST_PREFIX   # As per the instructions for installing Boost
     58
     59make
     60...
     61}}}
     62
     63Optionally: Run the GNU Radio software self-check (does not require a USRP or USRP2)
     64{{{
     65make check
     66}}}
     67
     68Now install GNU Radio for general use (default is in to /usr/local ):
     69{{{
     70sudo make install
     71}}}
     72
     73==== Broken libtool on Debian and Ubuntu ====
     74
     75Because Debian and Ubuntu apply a poorly implemented "enhancement" to the upstream version of libtool, they break the ability to test code and libraries prior to installing them. We think that testing before installation is a good idea. To work around their damage, be sure to include $PREFIX/lib (and $PREFIX/lib64 on 64-bit machines) in /etc/ld.so.conf.
     76If you don't include $PREFIX/lib in /etc/ld.so.conf, you will see errors during the linking phase of the build. There are several places it shows up. The first one is often during the build of mblocks. It's not an mblock problem. It's a Debian/Ubuntu problem.
     77
     78Work around:
     79   * Make a copy from the current ld.so.conf file and save it in a temp folder:
     80{{{
     81cp /etc/ld.so.conf /tmp/ld.so.conf
     82}}}
     83   * Add /usr/local/lib path to it :
     84{{{
     85echo /usr/local/lib >> /tmp/ld.so.conf
     86}}}
     87  * If you installed Boost (version 1_37_0 for example) manually, then add its library path to the file:
     88{{{
     89echo /opt/boost_1_37_0/lib >> /tmp/ld.so.conf
     90}}}
     91  * Delete the original ld.so.conf file and put the modified file instead:
     92{{{
     93sudo mv /tmp/ld.so.conf /etc/ld.so.conf
     94}}}
     95  * Do ldconfig:
     96{{{
     97sudo ldconfig
     98}}}