[Sending to the list in case this information can help someone else:]

I just did this with the following dependencies. All from source
except python-2.7

* boost 1.68.0
- bzip2-1.0.6 (probably not required, but it was easy to add to boost)
- icu4c - 63.1
- zlib-1.2.11
- python 2.7

* building boost:
> bootstrap.bat

Add the following line to the file project-config.jam in the boost
source directory:

using python : 2.7 : C:\\Python27\\python : : : <address-model>64 ;


Then run b2 (boost build)
> b2 -sBZIP2_SOURCE="C:\uhd_stack_build\bzip2-1.0.6"
-sZLIB_SOURCE="C:\uhd_stack_build\zlib-1.2.11"
-sICU_PATH="C:\uhd_stack_build\icu\source" --build-type=complete
--libdir=c:\boost\lib architecture=x86 address-model=64 install

**note the library source paths must be correct**

Mako v1.0.7
> pip install mako

numpy v1.15.4
> pip install numpy

requests v2.20.1
> pip install requests

nsis v3.03 (not required, but I installed it anyway)

UHD 3.13.0.3-rc1

cmake GUI for windows

Run cmake-gui (Start->)

Set source path:
C:/uhd_build/uhd-3.13.0.3-rc1
Set build path (an empty dir):
C:/uhd_build/uhd-3.13.0.3-rc1/build
Check Advanced
click Configure
Set toolset = Visual Studio 15 2017 Win64

The dependencies have to be manually located if cmake didn't find
them. For example if you want to use USB USRPs then obviously you need
cmake to find libusb properly. cmake uses unix style forward slashes,
so click the [...] button to have it fix the path for you.

(this is the path containing libusb.h)
LIBUSB_INCLUDE_DIRS
 C:\uhd_stack_build\libusb-build\libusb-master\libusb\

(this is the full path to libusb-1.0.lib)
LIBUSB_LIBRARIES
C:\uhd_stack_build\libusb-build\libusb-master\x64\Release\lib\libusb-1.0.lib
PYTHON_LIBRARY    C:/Python27/libs/python27.lib
PYTHON_EXECUTABLE     C:/Python27/python.exe
PYTHON_INCLUDE_DIR     C:/Python27/include
Boost_LIBRARY_DIR_DEBUG    C:/boost/lib/x64
Boost_LIBRARY_DIR_RELEASE    C:/boost/lib/x64
Boost_PYTHON_LIBRARY_DEBUG
C:/boost/lib/x64/boost_python27-vc141-mt-gd-x64-1_68.lib
Boost_PYTHON_LIBRARY_RELEASE
C:/boost/lib/x64/boost_python27-vc141-mt-x64-1_68.lib

After fixing incorrect/unknown dependency paths, click Configure again.
This was the result of Configure after I had all the paths set correctly:

######################################################
# UHD enabled components
######################################################

* LibUHD
* LibUHD - C API
* LibUHD - Python API
* Examples
* Utils
* Tests
* USB
* B100
* B200
* USRP1
* USRP2
* X300
* N230
* MPMD
* N300
* E320
* OctoClock

######################################################
# UHD disabled components
######################################################

* LIBERIO
* GPSD
* E300
* Manual
* API/Doxygen
* Man Pages

Building version: 3.13.0.3-0-unknown
Using install prefix: C:/Program Files/UHD
Configuring done

**** Building UHD ****

After configuring, open the project in Visual Studio by clicking the
"Open Project" button in CMake
Change target to Release
Build Solution. Right click INSTALL project and Build
Change target to RelWithDebInfo
Build Solution. Right click INSTALL project and Build

(if you encounter a cryptic build error about unknown stdlib symbols:)
In the "uhd" project Properties pages, add in the: Additional
Dependencies, this library: legacy_stdio_definitions.lib

UHD Images Download

UHD will automatically load the correct FPGA images for your hardware.
To do this it needs to download the images from Ettus' website.
>python "C:\Program Files\UHD\lib\uhd\utils\uhd_images_downloader.py"
--verbose

(of course, python must be in your PATH)

** Testing UHD installation **

UHD can be tested by executing:

C:\Program Files\UHD\bin>uhd_usrp_probe.exe


--
Martin Klingensmith
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to