10 | | Stable release branch: |
11 | | deb http://gnuradio.org/ubuntu stable main |
12 | | deb-src http://gnuradio.org/ubuntu stable main |
13 | | Unstable development branch: |
14 | | deb http://gnuradio.org/ubuntu unstable main |
15 | | deb-src http://gnuradio.org/ubuntu unstable main |
| 10 | Stable release branch: |
| 11 | deb http://gnuradio.org/ubuntu stable main |
| 12 | deb-src http://gnuradio.org/ubuntu stable main |
| 13 | Unstable development branch: |
| 14 | deb http://gnuradio.org/ubuntu unstable main |
| 15 | deb-src http://gnuradio.org/ubuntu unstable main |
19 | | === Building from sources === |
| 20 | == Building from sources == |
| 21 | |
| 22 | === Perquisites === |
| 23 | Before we build the actual Gnu radio we must satisfy this list of prerequisites: |
| 24 | * sdcc-libraries_2.6.0-5 |
| 25 | * boost-build |
| 26 | * wx-common |
| 27 | * libqt3-mt-dev |
| 28 | * libgsl0-dev |
| 29 | * guile-1.8 |
| 30 | * libcomedi-0.7.22 |
| 31 | * locales |
| 32 | * Python |
| 33 | * build-essentials |
| 34 | * auto-make |
| 35 | |
| 36 | Most of these are can be installed with apt-get ([http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/apt-and-install.html.en reference]). You may need to modify your source list to include: |
| 37 | {{{ |
| 38 | deb http://ftp.at.debian.org/debian/ etch main non-free contrib |
| 39 | }}} |
| 40 | |
| 41 | You may find it usefull to run the following two commands: |
| 42 | {{{ |
| 43 | apt-get build-dep gnuradio |
| 44 | apt-get build-dep usrp |
| 45 | }}} |
| 46 | |
| 47 | These commands would install any of the packages that the gnuradio and usrp packages depend on. Although we will not be installing the gnuraido and usrp packages, there is probably some packages that are common to both the package installation and source build of GNU Radio. |
| 48 | |
| 49 | One noteable exception is sdcc-library which had to be installed via a deb package, because the repository version does not support a feature we need (asx8051). We will |
| 50 | have to downgrade to version sdcc 2.6.0-5: |
| 51 | |
| 52 | {{{ |
| 53 | wget http://ftp.egr.msu.edu/debian/pool/main/s/sdcc/sdcc-libraries_2.6.0-5_all.deb |
| 54 | dpkg -i sdcc-libraries_2.6.0-5_all.deb |
| 55 | }}} |
| 56 | |
| 57 | It may be necessary to modify the compiler and documentation packages as well. [[BR]] |
| 58 | http://packages.debian.org/etch/all/sdcc-doc/download [[BR]] |
| 59 | http://packages.debian.org/etch/i386/sdcc/download [[BR]] |
| 60 | |
| 61 | '''Note:''' Our architecture is i686, but the only debs for i386. We have used the i386 ones sucessfully. The install process was the same as for the libraries. |
| 62 | |
| 63 | === Sources === |
| 64 | |
| 65 | Once we have all the dependencies in place, we can begin building the actual GNU Radio software. There are many ways to get the sources. The most straight forward |
| 66 | is to download the file from http://gnuradio.org/redmine/wiki/gnuradio/Download. If you are using the node's console you can use [http://en.wikipedia.org/wiki/Wget wget]. As an alternative you can download the file to some other machine, and them copy file to the node with [http://help.ischool.washington.edu/faqs/30_32_en.html scp]. Once you have the source on your node you'll need to extract it ([http://www.tech-recipes.com/rx/65/decompress-and-extract-a-tgz-or-targz-archive-in-a-single-step/ refrence]). |
| 67 | |
| 68 | === Building === |
| 69 | |
| 70 | If you copied from the repositories you man need to run '''./bootstrap'''. Once bootstrap completes you will need to run '''./configure'''. Once completed a list of components being built will be displayed: |
| 71 | {{{ |
| 72 | ********************************************************************* |
| 73 | The following GNU Radio components have been successfully configured: |
| 74 | |
| 75 | config |
| 76 | omnithread |
| 77 | gnuradio-core |
| 78 | usrp |
| 79 | gr-usrp |
| 80 | gr-audio-alsa |
| 81 | gr-audio-jack |
| 82 | gr-audio-oss |
| 83 | gr-audio-portaudio |
| 84 | gr-atsc |
| 85 | gr-gpio |
| 86 | gr-gsm-fr-vocoder |
| 87 | gr-pager |
| 88 | gr-radar-mono |
| 89 | gr-radio-astronomy |
| 90 | gr-trellis |
| 91 | gr-video-sdl |
| 92 | gr-wxgui |
| 93 | gr-sounder |
| 94 | gr-utils |
| 95 | gnuradio-examples |
| 96 | |
| 97 | You my now run the make command to build these components. |
| 98 | |
| 99 | ********************************************************************* |
| 100 | The following components were skipped either because you asked not |
| 101 | to build them or they didn't pass configuration checks: |
| 102 | |
| 103 | gr-audio-osx |
| 104 | gr-audio-windows |
| 105 | gr-comedi |
| 106 | |
| 107 | These components will not be built. |
| 108 | }}} |
| 109 | |
| 110 | It should be checked for the components you are interested in. A file named ''config.log'' is created when the configure script is being built. If there are any missing components, this file should have useful information. At a minimum, gr-usrp will be needed. This component steers the USRP, and is vital to the rest of the process. |
| 111 | |
| 112 | Once the configure process completes, we can simply run '''make'''. |
| 113 | |