minor doc tweak
[debian/gnuradio] / README
1 #
2 # Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 Welcome to GNU Radio!
23
24
25 As of August 3, 2006 we have restructured the GNU Radio build process
26 and moved the source code repository from CVS to subversion.
27
28 Please see http://gnuradio.org/trac for the wiki, bug tracking,
29 and source code viewer.
30
31 The bleeding edge code can be found in our subversion repository at
32 http://gnuradio.org/svn.  To checkout the latest, use this
33 command:
34
35   $ svn co http://gnuradio.org/svn/gnuradio/trunk gnuradio
36
37 For information about subversion, please see:
38   http://subversion.tigris.org/
39
40
41
42 GNU Radio is now distributed as one giant blob, instead of N smaller
43 blobs.  We believe that this will reduce some of the build problems
44 people were seeing.  Now you'll always get all of the code, and the
45 configure step will determine which components can be built on your
46 system.
47
48
49 How to Build GNU Radio:
50
51   (1) Ensure that you've satisfied the external dependencies listed
52       below.  The word "system" is used to mean "operating system
53       and/or distribution", and means a full operating system,
54       including kernel, user-space utilties, and a packaging system
55       for additional software.  On Linux, this means what
56       "distribution" means.
57
58       With the exception of SDCC, the following GNU/Linux
59       distributions are known to come with all required dependencies
60       pre-packaged: Ubuntu 6.06, SuSE 10.0 (the pay version, not the
61       free download), Fedora Core 5.  Other distribution may work too.
62       We know these three are easy.  The required packages may be
63       contained on your installation CD/DVD, or may be loaded over the
64       net.  The specifics vary depending on your GNU/Linux
65       distribution.
66
67       On systems using pkgsrc (e.g. NetBSD and Dragonfly), build
68       meta-packages/gnuradio, which will build a previous release and
69       force installation of the dependencies.  Then pkg_delete the
70       gnuradio and usrp packages, which will leave the dependencies.
71       (This should also work on OSX.)
72
73       See the wiki at http://gnuradio.org/trac/wiki for details.
74
75       FIXME: update the wiki; talk about OS/X, NetBSD and MinGW too.
76
77   (2) do the "usual dance"
78
79       $ ./bootstrap        # not reqd when building from the tarball
80       $ ./configure
81       $ make && make check
82       $ sudo make install
83
84
85 That's it!
86
87
88 -------------------------------------------------------------------------------
89
90                        KNOWN INCOMPATIBILITIES
91
92
93   GNU Radio triggers bugs in g++ 3.3 for X86.  DO NOT USE GCC 3.3 on
94   the X86 platform.  g++ 3.2, 3.4, and the 4.* series are known to work well.
95
96 -------------------------------------------------------------------------------
97
98 -------------------------------------------------------------------------------
99
100                           External dependencies
101
102 -------------------------------------------------------------------------------
103
104 Prerequisites: Before trying to build these from source, please try
105 your system's installation tool (apt-get, pkg_install, YaST, yum,
106 urpmi, etc.) first.  Most recent systems have these packages
107 available.
108
109 You'll need to do a bit of sleuthing to figure out what your OS and
110 packaging system calls these.  If your system uses the convention of
111 splitting files needed to run programs compiled with foo and files
112 needed to do the compilation into packages named foo and foo-devel,
113 install both packages.  (Most GNU/Linux systems are like this, but
114 pkgsrc is not and instead uses -devel to indicate a package of a
115 not-yet-released or unstable version.)
116
117 For those using pkgsrc, see gnuradio-pkg_chk.conf.  Those not using
118 pkgsrc may also find the list useful.
119
120 (0) GNU make
121
122 It used to be required to have a "reasonable make", meaning GNU make,
123 BSD make, or perhaps Solaris make.  It is now required to use GNU
124 make.  Version 3.81 should certainly work; the intent is not to
125 require the bleeding edge.
126
127 Note that the examples below are written with "make".  They probably
128 should say "gmake", as GNU make is installed as gmake when it is not
129 the native make.
130
131 (1) The "autotools"
132
133        autoconf 2.57    or later
134        automake 1.7.4   or later
135        libtool  1.5     or later
136
137 If your system has automake-1.4, there's a good chance it also has
138 automake-1.7 or later.  Check your install disk and/or (on GNU/Linux)
139 try:
140
141   $ man update-alternatives
142
143 for info on how some distributions support multiple versions.
144
145
146 (2)  pkgconfig 0.15.0 or later  http://www.freedesktop.org/Software/pkgconfig
147
148 From the web site:
149
150 pkgconfig is a system for managing library compile/link flags that
151 works with automake and autoconf. It replaces the ubiquitous *-config
152 scripts you may have seen with a single tool.
153
154
155 (3)  FFTW 3.0 or later        http://www.fftw.org
156
157 IMPORTANT!!!  When building FFTW, you MUST use the --enable-single and
158 --enable-shared configure options.  This builds the single precision
159 floating point version which we use.  You should also use either the
160 --enable-3dnow or --enable-sse options if you're on an Athlon or Pentium
161 respectively.
162
163 [FIXME: GNU/Linux packages of single-precision fftw are typically called ??]
164
165 In systems using pkgsrc, install math/fftwf, which provides the
166 single-precision libraries.
167
168
169 (4) Python 2.3 or later       http://www.python.org
170
171 Python 2.3 or later is now required.  If your system splits
172 python into a bunch of separate packages including python-devel or
173 libpython you'll most likely need those too.
174
175
176 (5) Numpy python library   http://numeric.scipy.org
177
178 Provides a high performance array type for Python.
179 http://numpy.scipy.org
180 http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
181
182 (6) The Boost C++ Libraries     http://www.boost.org
183
184 We use the Smart Pointer library.  Most systems already have the boost
185 libraries available.  In the unlikely event that yours doesn't,
186 download the source and follow the build instructions.  They're
187 different from the normal ./configure && make
188
189
190 (7) cppunit 1.9.14 or later.    http://cppunit.sourceforge.net
191
192 Unit testing framework for C++.
193
194
195 (8) Simple Wrapper Interface Generator.  http://www.swig.org
196
197 As of repository version 4045, gnuradio requires version 1.3.31 or newer.
198
199
200 (9) SDCC: Small Device C Compiler.  http://sdcc.sourceforge.net/
201
202 Use version 2.4.0 or later.
203
204 This includes a C compiler and linker for the 8051.  It's required to
205 build the firmware for the USRP.  If you don't have a USRP, don't
206 worry about it.
207
208 (10) Guile 1.6 or 1.8 
209
210 Scheme interpreter.  http://www.gnu.org/software/guile/guile.html
211
212
213
214 Optional, but nice to have:
215
216 (11) wxPython.  Python binding for the wxWidgets GUI framework.  Use
217 version 2.5.2.7 or later.  Again, almost all systems have this
218 available.
219
220 As a last resort, build it from source (not recommended!)
221 http://www.wxpython.org
222
223 (12) xmlto version ? or later.   http://cyberelk.net/tim/xmlto/index.html
224
225 Wrapper for XML conversion tools to ease e.g. making html from docbook.
226
227
228 ----------------------------------------------------------------
229
230 If you've got doxygen installed and provide the --enable-doxygen
231 configure option, the build process creates documentation for the
232 class hierarchy etc.  Point your browser at
233 gnuradio/gnuradio-core/doc/html/index.html
234
235
236 To run the examples you'll need to set PYTHONPATH.  Note that the
237 prefix and python version number in the path needs to match your
238 installed version of python.
239
240   $ export PYTHONPATH=/usr/local/lib/python2.4/site-packages
241
242 You may want to add this to your shell init file (~/.bash_profile if
243 you use bash).
244
245 Note that on Fedora Core 4 and 5 when running on X86_64 machines,
246 python is shippped with a strange (wrong) configuration that requires
247 you to add both the lib64 and lib paths to your PYTHONPATH.
248 E.g.,
249
250   $ export PYTHONPATH=/usr/local/lib64/python2.4/site-packages:/usr/local/lib/python2.4/site-packages
251
252 [Don't complain to us, complain to the Fedora Core packagers.]
253
254
255 Another handy trick if for example your fftw includes and libs are
256 installed in, say ~/local/include and ~/local/lib, instead of
257 /usr/local is this:
258
259     $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
260     $ make CPPFLAGS="-I$HOME/local/include"
261
262
263 Sometimes the prerequisites are installed in a location which is not
264 included in the default compiler and linker search paths.  This
265 happens with pkgsrc and NetBSD.  To build, tell configure to use these
266 locations:
267
268         LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" ./configure --prefix=/usr/gnuradio