FreeBSDInstall

From GNU Radio
Jump to navigation Jump to search

FreeBSDInstall

Thunderstorm-and-lightning.png NOTE: These instructions are both for a GNU Radio version that's a decade obsolete and incomplete in scope. If you're using FreeBSD, please update them.

Dependencies

portinstall wget sudo cmake boost-all orc swig doxygen cppunit gls py-numpy py-scipy

Installed Cheetah from source:
http://www.cheetahtemplate.org/download.html

sudo python setup.py install

Installed fftw3f from source (for single-precision libraries):
http://www.fftw.org/download.html

./configure --enable-single --enable-shared --enable-threads --enable-sse --enable-sse2
make && make install

UHD Setup

If you are not using a UHD device you may skip this section.

Start by cloning into the git tree:

git clone git://code.ettus.com/ettus/uhd.git

As FreeBSD has integrated LibUSB into the kernel we tell cmake to link to the compatibility library:

cd /host
mkdir build
cd build
cmake -DLIBUSB_INCLUDE_DIR=/usr/include -DLIBUSB_LIBRARIES=/usr/lib/libusb.so ../

After this we can build like normal:

make
make test
sudo make install

GnuRadio Setup

Start by fetching GnuRadio from Git ( or from a package ):

git clone git://git.gnuradio.org/gnuradio

Then use cmake to configure.

cd gnuradio
mkdir build
cd build
cmake ../

If anything is disabled that you want built, scroll back and check for the missing package, then run cmake again. After you have all components enabled that you need you can build, test, and install GnuRadio with:

make
make test
sudo make install