ÎÒÊÇÔÚubuntu14.04LTSÉÏÃæ°²×°µÄ
1. ÔÚhttp://www.sbrac.org/files/build-gnuradioÉÏÃæÏÂÔØ½Å±¾
È»ºóÓÃÖÕ¶ËÔÙubuntuÖ÷ÎļþÏÂÃæÐ½¨Ò»¸ö½Å±¾£¬ÃüÁîÈçÏ $ gedit build-gnuradio.sh°Ñ¸Õ²Å¸´ÖƵĽű¾Õ³Ìù±£´æ ×îºÃÔÚÖ÷Îļþ¼ÐÏÂÃæ£¬²»ÈÝÒ׳ö´í 2. ÐÞ¸ÄȨÏÞ
$ chmod 775 build-gnuradio.sh 3. ÔËÐнű¾¿ªÊ¼°²×° $ ./build-gnuradio.sh
4.Ö´Ðнű¾¹ý³Ì
$ ./build-gnuradio.sh
This script will install Gnu Radio from current GIT sources
You will require Internet access from the computer on which this script runs. You will also require SUDO access. You will require approximately 500MB of free disk space to perform the build.
This script will, as a side-effect, remove any existing Gnu Radio
installation that was installed from your Linux distribution packages. It must do this to prevent problems due to interference between
alinux-distribution-installed Gnu Radio/UHD and one installed from GIT source.
The whole process may take up to two hours to complete, depending on the capabilities of your system.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE: if you run into problems while running this script, you can re-run it with the --verbose option to produce lots of diagnostic output to help debug problems.
This script has been written to anticipate some of the more common problems one might encounter building ANY large, complex software package. But it is not pefect, and there are certainly some situations it could encounter that it cannot deal with gracefully. Altering the system configuration from something reasonably standard, removing parts of the filesystem, moving system libraries around arbitrarily, etc, it likely cannot cope with. It is just a script. It isn't intuitive or artificially
intelligent. It tries to make life a little easier for you, but at the end of the day if it runs into trouble, a certain amount of knowledge on your part about system configuration and idiosyncrasies will inevitably be necessary.
Proceed?y¡¾ÊäÈëyÖ®ºó»Ø³µ¡¿
Starting all functions at: 2016Äê 04ÔÂ 30ÈÕÐÇÆÚÁù 23:01:31 CST SUDO privileges are required
Do you have SUDO privileges?y¡¾ÊäÈëyÖ®ºó»Ø³µ¡¿ Continuing with script
[sudo] password for hells: ¡¾ÊäÈëÃÜÂë¡¿ Installing prerequisites.
====> THIS MAY TAKE QUITE SOME TIME <=====¡¾¿ªÊ¼¼ì²é°ü¡¿ Checking for package libfontconfig1-dev Checking for package libxrender-dev Checking for package libpulse-dev Checking for package swig Checking for package g++
Checking for package automake Checking for package autoconf Checking for package libtool
Checking for package python-dev Checking for package libfftw3-dev Checking for package libcppunit-dev Checking for package libboost-all-dev Checking for package libusb-dev
Checking for package libusb-1.0-0-dev Checking for package fort77
Checking for package libsdl1.2-dev Checking for package python-wxgtk2.8 Checking for package git-core Checking for package libqt4-dev Checking for package python-numpy Checking for package ccache
Checking for package python-opengl Checking for package libgsl0-dev
Checking for package python-cheetah Checking for package python-mako Checking for package python-lxml Checking for package doxygen Checking for package qt4-default Checking for package qt4-dev-tools Checking for package libusb-1.0-0-dev Checking for package libqwt5-qt4-dev
Checking for package libqwtplot3d-qt4-dev Checking for package pyqt4-dev-tools Checking for package python-qwt5-qt4 Checking for package cmake Checking for package git-core Checking for package wget Checking for package libxi-dev
Checking for package python-docutils Checking for package gtk2-engines-pixbuf Checking for package r-base-dev Checking for package python-tk Checking for package liborc-0.4-0
Checking for package liborc-0.4-dev Checking for package libasound2-dev Checking for package python-gtk2 Checking for package libzmq1 Checking for package libzmq1-dev
Failed to find package 'libzmq1-dev' in known package repositories SOME THINGS MAY NOT BUILD AS A RESULT Checking for package libzmq Checking for package libzmq-dev
Checking for package python-requests Checking for package libncurses5 Checking for package libncurses5-dev
Done checking packages¡¾´Ë´¦Ê±¼ä»á³¤Ò»µã£¬µÈ¡¡¡¿ Done
This script will fetch Gnu Radio version 3.7/maint from the repositories, along with compatible extras.
Is this OK?y¡¾ÊäÈëy»Ø³µ¡¿
Fetching various packages (Gnu Radio, UHD, gr-osmosdr, gr-iqbal, etc) via the Internet
=======> THIS MAY TAKE QUITE SOME TIME <=========
Fetching Gnu Radio via GIT...Done¡¾¿ªÊ¼git³ÌÐò°ü£¬¸ù¾ÝÍøËÙ£¬Ê±¼ä²»Ò»Ñù£¬µ«Ò»°ã»áºÜ³¤¡¿ Fetching UHD via GIT...Fetching rtl-sdr (rtl-sdr, gr-osmosdr, gr-iqbal, hackrf, bladeRF and airspy) via GIT Done
Starting function uhd_build at: 2016Äê 04Ô 30ÈÕÐÇÆÚÁù 23:58:08 CST Building UHD...¡¾¿ªÊ¼°²×°UHD£¬Ê±¼äÓе㳤¡¡¡¿
=============> THIS WILL TAKE SOME TIME <=============
Done building/installing UHD
Done function uhd_build at: 2016Äê 05ÔÂ 01ÈÕÐÇÆÚÈÕ 00:17:53 CST Starting function firmware at: 2016Äê 05ÔÂ 01ÈÕÐÇÆÚÈÕ 00:17:53 CST Images destination: /usr/local/share/uhd/images Downloading images from: http://files.ettus.com/binaries/images/uhd-images_003.010.git-197-g053111dc.zip
Downloading images to: /tmp/tmpMlLS_l/uhd-images_003.010.git-197-g053111dc.zip 52600 kB / 52600 kB (100%)
Images successfully installed to: /usr/local/share/uhd/images
Done function firmware at: 2016Äê 05ÔÂ 01ÈÕÐÇÆÚÈÕ 00:27:21 CST
Starting function gnuradio_build at: 2016Äê 05ÔÂ 01ÈÕÐÇÆÚÈÕ 00:27:21 CST /usr/local/lib already in ld.so.conf.d Doing ldconfig...
Ò»Ö±µÈµ½ÔÙ´ÎÊäÈëÃÜÂë