forked from Nuand/bladeRF
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started: Windows
Nuand edited this page Sep 22, 2013
·
17 revisions
This is a work in progress -- below are just some initial notes
- Download and install msysgit If you plan to submit patches to the bladeRF project, please select the Checkout as-is, commit Unix-style line endings option in the installer.
- Download and install tortoisegit
For more information, see the mysysgit and tortoisegit wiki pages about their install procedures.
- Download Visual Studio 2012 Express Desktop from Microsoft.
- Follow the installation instructions, including any post-install updates.
NOTE: Visual Studio 2012 Express Desktop corresponds to Visual Studio 11 in CMake.
- Download the latest Windows binary release of libusbx, which also include development headers: https://sourceforge.net/projects/libusbx/files/releases/1.0.16/binaries/
- Extract the contents to a location of your choice. Make note of this location so that you can later provide it to CMake. The default configuration assumes that files will be in
C:/Program Files (x86)/libusbx-1.0.16
If you wish to change the directory, edit\host\cmake\modules\FindLibUSB.cmake
- Get the device driver installer (zadig): http://sourceforge.net/projects/libwdi/files/zadig/
- Open Zadig.
- Go to Device->Create New Device.
- Type a device name (i.e., "bladeRF") in the text box. In the driver spinbox, select libusbK. Specify the VID/PID (
1d50
/6066
) in the USB ID fields. - Plug the device into the computer and open Device Manager. A new device called
bladeRF
should show up with a yellow bang next to it in device manager. - Right-click on the
bladeRF
entry and select "Update Driver Software...". Choose "Browse my computer for driver software", then "Let me pick from a list of device drivers on my computer". Click "Have Disk..." and point it to the location that Zadig installed the driver to (C:\usb_driver). Select "bladeRF" and continue through the wizard. - Device Manager should now show
bladeRF
underlibusbK USB Devices
.
The pthreads library is required to build a few tests and utilities. A few steps are required to install this pthreads implementation. See the pthreads-win32 website for more information.
- Download the latest release. Currently this is version 2.9.1.
- Extract the contents of the release zip.
- Copy the contents of the Pre-built.2 directory to C:\Program Files (x86)\pthreads-win32
- Download and install CMake for Windows: http://www.cmake.org/cmake/resources/software.html
- Run the CMake GUI utility.
- Under "Where is the source code", browse to
some_dir/bladeRF/host
. - Create a new directory,
some_dir/bladeRF/host/build
. - Under "Where to build the binaries", browse to the newly created /bladeRF/host/build. Click the Configure button.
- Select your appropriate version of Visual Studio. Current development is done using "Visual Studio 11" or "Visual Studio 11 Win64" as the generator (Visual Studio 2012). Select "Use default native compilers", then click "Finish".
- If the configuration fails, double check the values for
LIBUSB_PATH
andLIBPTHREADSWIN32_PATH
, and re-run the configuration. - Click on the Generate button.
- A visual studio solution should now be available,
bladeRF.sln
- CMake has created a
bladeRF.sln
file. Open Visual Studio, and open this file. - The following projects should show up in the Solution Explorer.
- ALL_BUILD
- bladeRF-cli
- INSTALL
- libbladerf_shared
- libbladerf_test_async
- uninstall
- ZERO_CHECK
- ...
Using the SuperSpeed USB Hardware/Software tools.