The easiest way to install GNU Radio on Windows is to use the Cygwin (http://www.cygwin.com) environment. Once Cygwin and the required utilities and third-party libraries are installed, installation of GNU Radio is as easy on Windows as it is on Linux.
These instructions are for release 3.2.2 and are current as of September 29, 2009. They cover installation of the core GNU Radio components and components for using the USRP, wxPython GUI, and PortAudio. They do not cover installation of components needed for USRP2, GRC, SDL video, or the Qt GUI.
To install GNU Radio with Cygwin you need to:
Installing Cygwin is easy, but there are a few details to worry about; see getting started with Cygwin. If you have previously installed Cygwin, you should check to see that your packages are up-to-date.
Utilities and third-party libraries are of two types: those that are available as Cygwin packages and those that must be downloaded and/or built separately.
apt-cyg may help you installing. It works like aptitude, so you can install and search packages from the command line.getting started with Cygwin:
Some of the libraries and utilities required by GNU Radio are not available as Cygwin packages. These packages must be installed manually:
If you have a USRP you will also need:
GNU Radio can be built either from a release tarball (more stable) or from the latest code in the svn repository (latest features). This section describes how to build from the release tarball. Additional considerations when building from the svn repository are described later.ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.2.2.tar.gz to a convenient working directory. Be sure that the name of your working directory does not contain any spaces. Unpack the tarball with
$ tar -zxf gnuradio-3.2.2.tar.gzto produce the directory
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$ cd gnuradio-3.2.2
This disables all components except those explicitly enabled, namely omnithread, gruel, gnuradio-core, and gr-audio-oss. To build and install these components use the commands:
You may get warning messages, but unless one of these commands stops with an error message you should have a working installation of GNU Radio. If you do get errors be sure to check hints, tips, known problems, and solutions for Windows. If an older version of GNU Radio was installed previously, you should remove it with
$ export PYTHONPATH=/usr/local/lib/python2.5/site-packagesThis should produce a dial tone through your speakers. If Python gives you an error message, there is a problem with your installation of GNU Radio. If you get no error messages but no sound, check to see that your speakers are turned on, your volume is turned up, and that the "Wave" source is enabled in your audio control panel. Use Ctrl-C to stop the dial tone. If
With this minimal GNU Radio system you can capture signals from your sound card, read signals from a file, or generate signals; process signals; and play signals on your sound card or save them to a file. Note that you cannot simultaneously capture and play signals using the same sound card with gr-audio-oss.
$ cd gnuradio-3.2.2This enables all components for which the required libraries and utilities are available. To build and install these components use the commands:
$ makeUnless one of these steps fails due to an error, you should have a working GNU Radio installation. If one of the steps fails, you may be able to disable the component that failed. Use
Be sure that
Note: These instructions are obsolete since the changeover to the
$ svn co http://gnuradio.org/svn/gnuradio/trunk gnuradioBe sure to use the Cygwin version of subversion (available from Cygwin setup); other versions of svn for Windows may produce files with an extra CR (
The procedure for building the svn version is like that given above for
building the release version, but because the svn version is
The following patches are needed:
$ patch -p0 -b -i file.patch
$ ./bootstrapand you must set the necessary environment variables:
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfigThe remainder of the build process is the same as for the release version except that boost should be found automatically in
Be sure that no older version of GNU Radio is installed when running
Expect `make check` to fail in
If you have a USRP you will need to install the driver for it; see installing the USRP driver for Windows.
Now that your GNU Radio system is installed, it is time to start exploring.
The best way to learn about GNU Radio is to study and modify the examples in the
various subdirectories of
注： Installing GNU Radio with Cygwin （原文出处，翻译整理仅供参考!）