Table of Contents
Linux Notes: This is dependent on the distribution you are using, but most, if not all, of the dependencies should be available in the package repositories for your package manager.
Mac OS X Notes: Install the "Xcode Developer Tools" to get the build tools (gcc and make). Use MacPorts to get the Boost and Cheetah dependencies. Other dependencies can be downloaded as dmg installers from the web.
Windows Notes: The dependencies can be acquired through installable exe files. Usually, the windows installer can be found on the project's website. Some projects do not host windows installers, and if this is the case, follow the auxiliary download url for the windows installer (below).
Required to check out the repository. On windows, install cygwin with git support to checkout the repository, or install msysgit from http://code.google.com/p/msysgit/downloads/list
The following compilers are known to work:
Alternative method: Install setuptools, and use the easy_install command to install Cheetah. http://pypi.python.org/pypi/setuptools
Alternate method: Install setuptools, and use the easy_install command to install Docutils. http://pypi.python.org/pypi/setuptools
cd <uhd-repo-path>/host mkdir build cd build cmake ../
Additionally, configuration variables can be passed into cmake via the command line. The following common-use configuration variables are listed below:
Example usage:
cmake -DCMAKE_INSTALL_PREFIX=/opt/uhd ../
make make test sudo make install
Make sure that libuhd.so is in your LD_LIBRARY_PATH or add it to /etc/ld.so.conf and make sure to run:
sudo ldconfig
Make sure that libuhd.dylib is in your DYLD_LIBRARY_PATH
On Windows, cmake does not have the advantage of pkg-config, so we must manually tell cmake how to locate the LibUSB header and lib.
Note: you may not have permission to build the install target. You need to be an administrator or to run MSVC as administrator.
Open the Visual Studio Command Prompt Shorcut:
cd <uhd-repo-path>\host\build DevEnv uhd.sln /build Release /project ALL_BUILD DevEnv uhd.sln /build Release /project INSTALL
Note: The interface for editing environment variable paths in Windows is very poor. I recommend using "Rapid Environment Editor" (http://www.rapidee.com) over the default editor.
For USB-based devices, see the USB Transport Application Notes for platform-specific post-installation tasks.