Installing GNU Radio with CygwinThe 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 CygwinInstalling 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. Installing Utilities and Third-Party LibrariesUtilities 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. Installing Cygwin packagesYou will need the following Cygwin packages to build GNU Radio. For instructions on installing Cygwin packages see getting started with Cygwin:
Other libraries and utilitiesSome 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:
Building and Installing a GNU Radio ReleaseGNU 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. Downloading the Release Source CodeDownload the latest release of the GNU Radio source code from 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 gnuradio-3.2.2 .
Preparing to BuildYou must specify where to find the pkg-config configuration files:$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig Building a Minimal GNU Radio SystemGNU Radio is a large system with many options. The simplest build procedure configures and builds all the modules that it can, but you can customize your installation (and maybe save some time) by specifying appropriate options. For a first test, it is helpful to build a minimal GNU Radio. This is done with the commands:$ 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: $ make 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 make uninstall before you get to make
check . To actually make GNU Radio do something, try:$ 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 dial_tone.py stops by itself without producing sound or gives a
Windows error pop-up, your version of Cygwin may be out of date (see hints, tips, known problems, and
solutions for Windows).
The 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. Building a Full GNU Radio SystemBuilding a full GNU Radio system is simpler but takes longer:$ 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 ./configure --help to see
how the components are named. Look for the "--enable-..." options and add the
corresponding "--disable-..." option to your ./configure command
and repeat the above steps. If an old version of GNU Radio is installed, you
should remove it with make uninstall before doing make
check .
Note that Be sure that Building and Installing GNU Radio from the SVN RepositoryNote: 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 ( ^M ) character at the end of each line.
The procedure for building the svn version is like that given above for
building the release version, but because the svn version is
constantly Extra requirements:
The following patches are needed:
$ patch -p0 -b -i file.patch (replacing file.patch with the name of the patch file) to
apply the patch. After applying any patches and before running
./configure you must initialize the build with$ ./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 /usr/local/include :$ ./configure Be sure that no older version of GNU Radio is installed when running
Expect `make check` to fail in Installing the Driver for the USRPIf you have a USRP you will need to install the driver for it; see installing the USRP driver for Windows. Where to Go From HereNow 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 |