NetBSDInstall

From GNU Radio
Jump to: navigation, search

These instructions should work for most systems using pkgsrc (such as DragonflyBSD).

The most recent release of GNU Radio is usually available in pkgsrc, currently meta-pkgs/gnuradio. An easy way to get most of the dependencies installed in order to build from SVN is to build the GNU Radio meta-pkg. It can then be deleted, or left in place.

As of 2006-10, the GNU Radio sources build with BSD make as well as GNU make. In case of mysterious failures, try GNU make and report the bug.

To use dependencies provided by pkgsrc, one must pass CPPFLAGS and LDFLAGS to configure. Programs not built by pkgsrc should not be placed in /usr/pkg, so use a different prefix.

./bootstrap.sh
LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" ./configure --prefix=/usr/gnuradio
make
sudo make install

To run "make distcheck", one must pass LDFLAGS and CPPFLAGS as above because distcheck runs configure after creating a tarball and unpacking it.

To run "make check", one must have large amounts of space free in /tmp (over 128 MB?) One can do "TMP=/usr/tmp make check" after creating another tmp dir to work around this problem.

(Note: the links below do no longer work. BBN Technologies was acquired by Raytheon in 2009. The ADROIT project seems defunct and the relevant web servers no longer work)

Support for improved USB speed was committed to NetBSD-current in July, 2006. This code is also in the netbsd-4 branch. Code to use the new USB driver enhancements was committed to GNU Radio svn in September, 2006 prior to the creation of the 3.0 release branch. Documentation of speed tests of the USB code are at the ACERT ADROIT GNU Radio project CVS repository. See also the main project page.

The vmcircbuf tests use large amounts of sysv shm resources because 64 mapping objects are created and then all are freed.