Statistics
| Branch: | Tag: | Revision:

root / README @ 0c73985a

History | View | Annotate | Download (9.2 kB)

1
#
2
# Copyright 2001,2002,2003,2004,2005,2006,2007,2009 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 3, 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
Please see http://gnuradio.org for the wiki, bug tracking,
26
and source code viewer.  
27
28
If you've got questions about GNU Radio, please subscribe to the
29
discuss-gnuradio mailing list and post your questions there.
30
http://gnuradio.org/redmine/projects/gnuradio/wiki/MailingLists
31
32
There is also a "Build Guide" in the wiki that contains OS specific
33
recommendations:
34
http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
35
36
37
The bleeding edge code can be found in our git repository at
38
http://gnuradio.org/git/gnuradio.git/. To checkout the latest, use
39
this command:
40
41
  $ git clone git://gnuradio.org/gnuradio
42
43
For information about using Git, please see:
44
http://gnuradio.org/redmine/projects/gnuradio/wiki/DevelopingWithGit
45
46
47
How to Build GNU Radio:
48
49
  (1) Ensure that you've satisfied the external dependencies listed
50
      below.  The word "system" is used to mean "operating system
51
      and/or distribution", and means a full operating system,
52
      including kernel, user-space utilties, and a packaging system
53
      for additional software.  On Linux, this means what
54
      "distribution" means.
55
56
      With the exception of SDCC, the following GNU/Linux
57
      distributions are known to come with all required dependencies
58
      pre-packaged: Ubuntu 8.10, SuSE 10.0 (the pay version, not the
59
      free download), Fedora Core 9.  Other distribution may work too.
60
      We know these three are easy.  The required packages may be
61
      contained on your installation CD/DVD, or may be loaded over the
62
      net.  The specifics vary depending on your GNU/Linux
63
      distribution.
64
65
      On systems using pkgsrc (e.g. NetBSD and Dragonfly), build
66
      meta-packages/gnuradio, which will build a previous release and
67
      force installation of the dependencies.  Then pkg_delete the
68
      gnuradio package, which will leave the dependencies.  (This
69
      should also work on OSX.)
70
71
      See the wiki at http://gnuradio.org for details.
72
73
74
  (2) Building from cmake:
75
76
      $ mkdir $(builddir)
77
      $ cd $(builddir)
78
      $ cmake [OPTIONS] $(srcdir)
79
      $ make
80
      $ make test
81
      $ sudo make instal
82
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
GNU/Linux packages of single-precision fftw are typically called
164
fftw3f.
165
166
In systems using pkgsrc, install math/fftwf, which provides the
167
single-precision libraries.
168
169
170
(4) Python 2.5 or later	      http://www.python.org
171
172
Python 2.5 or later is now required.  If your system splits
173
python into a bunch of separate packages including python-devel or
174
libpython you'll most likely need those too.
175
176
177
(5) Numpy python library   http://numeric.scipy.org
178
179
Provides a high performance array type for Python.
180
http://numpy.scipy.org
181
http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
182
183
184
(6) The Boost C++ Libraries (1.35 or later)  http://www.boost.org
185
186
We use Smart Pointers, the thread library and a bunch of other boost stuff.
187
If your system doesn't have boost 1.35 or later, see README.building-boost
188
for additional info.  (Note: Mac OSX systems require 1.37 or later.)
189
190
191
(7) cppunit 1.9.14 or later.	http://cppunit.sourceforge.net
192
193
Unit testing framework for C++.
194
195
196
(8) Simple Wrapper Interface Generator.  http://www.swig.org
197
198
As of repository version 4045, gnuradio requires version 1.3.31 or newer.
199
200
201
(9) SDCC: Small Device C Compiler.  http://sdcc.sourceforge.net/
202
203
--> Not required as of v3.5
204
205
206
(10) Guile 1.6 or 1.8 
207
208
Scheme interpreter.  http://www.gnu.org/software/guile/guile.html
209
210
211
(11) GNU Scientific Library (gsl) 1.10 or later
212
213
The GNU Radio core library uses some routines from here.
214
215
216
Optional, but nice to have:
217
218
(12) wxPython.  Python binding for the wxWidgets GUI framework.  Use
219
version 2.8 or later.  Again, almost all systems have this
220
available.
221
222
As a last resort, build it from source (not recommended!)
223
http://www.wxpython.org
224
225
(13) xmlto version ? or later.   http://cyberelk.net/tim/xmlto/index.html
226
227
Wrapper for XML conversion tools to ease e.g. making html from docbook.
228
229
(14) Python Cheetah extensions 2.0.0 or later
230
(15) Python lxml wrappers 2.0.0 or later
231
(16) Python gtk wrappers 2.10.0 or later
232
233
The GNU Radio Companion application requires these additional Python libraries
234
to be installed.
235
236
----------------------------------------------------------------
237
238
If you've got doxygen installed, the build process creates 
239
documentation for the class hierarchy etc.  Point your browser at
240
gnuradio/gnuradio-core/doc/html/index.html
241
242
243
To run the examples you may need to set PYTHONPATH.  Note that the
244
prefix and python version number in the path needs to match your
245
installed version of python.
246
247
  $ export PYTHONPATH=/usr/local/lib/python2.5/site-packages
248
249
You may want to add this to your shell init file (~/.bash_profile if
250
you use bash).
251
252
253
254
Another handy trick if for example your fftw includes and libs are
255
installed in, say ~/local/include and ~/local/lib, instead of
256
/usr/local is this:
257
258
    $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
259
    $ make CPPFLAGS="-I$HOME/local/include"
260
261
262
Sometimes the prerequisites are installed in a location which is not
263
included in the default compiler and linker search paths.  This
264
happens with pkgsrc and NetBSD.  To build, tell configure to use these
265
locations:
266
267
	LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" ./configure --prefix=/usr/gnuradio
268
269
270
-------------------------------------------------------------------------------
271
272
			  Legal Matters
273
274
-------------------------------------------------------------------------------
275
276
Some files have been changed many times throughout the
277
years. Copyright notices at the tops of these files list which years
278
changes have been made. For some files, changes have occurred in many
279
consecutive years. These files may often have the format of a year
280
range (e.g., "2006 - 2011"), which indicates that these files have had
281
copyrightable changes made during each year in the range, inclusive.
282