FreeBSDInstall

From GNU Radio
Jump to: navigation, search

FreeBSDInstall

NOTE: These instructions are a work in progress. Please edit with corrections or more steps.

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