diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-09-29 17:51:16 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-09-29 17:51:16 -0700 |
commit | 9c58df56e805cc924aef980f466cd45a42b2d1a4 (patch) | |
tree | e9948fd27458df4d59a37378fc1137ace97a51f9 /host/docs/build.rst | |
parent | 6fe533e19a29ea6cd241b70c38081499a8f3ba55 (diff) | |
parent | 83596f1feb73a15a1ef8741c1c520e8cae46c2a6 (diff) | |
download | uhd-9c58df56e805cc924aef980f466cd45a42b2d1a4.tar.gz uhd-9c58df56e805cc924aef980f466cd45a42b2d1a4.tar.bz2 uhd-9c58df56e805cc924aef980f466cd45a42b2d1a4.zip |
Merge branch 'get_codec_rate' of ettus.sourcerepo.com:ettus/uhdpriv into tvrx_uhd
Diffstat (limited to 'host/docs/build.rst')
-rw-r--r-- | host/docs/build.rst | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/host/docs/build.rst b/host/docs/build.rst index f37b5dce7..9cf37db4a 100644 --- a/host/docs/build.rst +++ b/host/docs/build.rst @@ -58,7 +58,8 @@ LibUSB * **Purpose:** USB-based hardware support * **Version:** at least 1.0 * **Usage:** build time + run time (optional) -* **Download URL:** http://www.libusb.org/ +* **Download URL:** http://sourceforge.net/projects/libusb/files/libusb-1.0/ +* **Download URL (windows binaries):** http://www.libusb.org/wiki/windows_backend#LatestBinarySnapshots ^^^^^^^^^^^^^^^^ Python @@ -152,6 +153,19 @@ Generate the project with cmake * Click generate and a project file will be created in the build directory. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +LibUSB cmake notes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +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. + +From the cmake gui, select "Advanded View": + +* Set LIBUSB_INCLUDE_DIR to the directory with "libusb.h". +* Set LIBUSB_LIBRARIES to the full path for "libusb-1.0.lib". + +Then check the boxes to enable USRP1 support, click configure and generate. + +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Build the project in MSVC ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Open the generated project file in MSVC. @@ -177,3 +191,8 @@ Setup the PATH environment variable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Add the boost library path to %PATH% (usually c:\\program files\\boost\\<version>\\lib) * Add the uhd library path to %PATH% (usually c:\\program files\\uhd\\lib) +* Add the libusb library to %PATH% (if using usb support) + +**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. |