usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD Open Source

YJ
Yeo Jin Kuang Alvin (IA)
Mon, Apr 23, 2018 4:43 AM

Hi all,

I would like to download Open Source UHD because I want to edit some files like the AD9361.cpp files.

I am currently using: Cmake 3.11.1 ; Visual Studio Express 2015; Boost_1_67_0; LibUSB-1.0.21; Python 2.7; Mako; UHD_3.10.1.1_release;

I followed the steps in https://kb.ettus.com/Building_and_Installing_the_USRP_Open_Source_Toolchain_(UHD_and_GNU_Radio)_on_Windows and this is the results shown in CMake:

Configuring the python interpreter...
Python interpreter: C:/Python27/python.exe
Override with: -DPYTHON_EXECUTABLE=<path-to-python>
fatal: Not a git repository (or any of the parent directories): .git

Could not determine git branch. Probably building from tarball.
fatal: Not a git repository (or any of the parent directories): .git

Using UHD Images Directory: ON

Configuring Boost C++ Libraries...
Boost version: 1.67.0
Found the following Boost libraries:
chrono
date_time
filesystem
program_options
regex
system
unit_test_framework
serialization
thread
atomic
Boost include directories: C:/local/boost_1_67_0_x86
Boost library directories: C:/local/boost_1_67_0_x86/lib32-msvc-14.0
Boost libraries: optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_chrono-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_chrono-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_date_time-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_date_time-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_filesystem-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_filesystem-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_program_options-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_program_options-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_regex-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_regex-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_system-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_system-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_unit_test_framework-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_unit_test_framework-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_serialization-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_serialization-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_thread-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_thread-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_atomic-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_atomic-vc140-mt-gd-x32-1_67.lib

Python checking for Python version 2.7 or greater
Python checking for Python version 2.7 or greater - found

Python checking for Mako templates 0.4.2 or greater
Python checking for Mako templates 0.4.2 or greater - found

Python checking for requests 2.0 or greater
Python checking for requests 2.0 or greater - found

Configuring LibUHD support...
Dependency Boost_FOUND = 1
Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
Enabling LibUHD support.
Override with -DENABLE_LIBUHD=ON/OFF

Configuring LibUHD - C API support...
Dependency ENABLE_LIBUHD = ON
Enabling LibUHD - C API support.
Override with -DENABLE_C_API=ON/OFF

Configuring Examples support...
Dependency ENABLE_LIBUHD = ON
Enabling Examples support.
Override with -DENABLE_EXAMPLES=ON/OFF

Configuring Utils support...
Dependency ENABLE_LIBUHD = ON
Enabling Utils support.
Override with -DENABLE_UTILS=ON/OFF

Configuring Tests support...
Dependency ENABLE_LIBUHD = ON
Enabling Tests support.
Override with -DENABLE_TESTS=ON/OFF

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Could NOT find LIBGPS (missing: LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR)

Configuring USB support...
Dependency ENABLE_LIBUHD = ON
Dependency LIBUSB_FOUND = TRUE
Enabling USB support.
Override with -DENABLE_USB=ON/OFF

Configuring GPSD support...
Dependency ENABLE_LIBUHD = ON
Dependency ENABLE_GPSD =
Dependency LIBGPS_FOUND = FALSE
Disabling GPSD support.
Override with -DENABLE_GPSD=ON/OFF

Configuring B100 support...
Dependency ENABLE_LIBUHD = ON
Dependency ENABLE_USB = ON
Enabling B100 support.
Override with -DENABLE_B100=ON/OFF

Configuring B200 support...
Dependency ENABLE_LIBUHD = ON
Dependency ENABLE_USB = ON
Enabling B200 support.
Override with -DENABLE_B200=ON/OFF

Configuring E100 support...
Dependency ENABLE_LIBUHD = ON
Dependency LINUX =
Disabling E100 support.
Override with -DENABLE_E100=ON/OFF

Configuring E300 support...
Dependency ENABLE_LIBUHD = ON
Disabling E300 support.
Override with -DENABLE_E300=ON/OFF

Configuring USRP1 support...
Dependency ENABLE_LIBUHD = ON
Dependency ENABLE_USB = ON
Enabling USRP1 support.
Override with -DENABLE_USRP1=ON/OFF

Configuring USRP2 support...
Dependency ENABLE_LIBUHD = ON
Enabling USRP2 support.
Override with -DENABLE_USRP2=ON/OFF

Configuring X300 support...
Dependency ENABLE_LIBUHD = ON
Enabling X300 support.
Override with -DENABLE_X300=ON/OFF

Configuring N230 support...
Dependency ENABLE_LIBUHD = ON
Enabling N230 support.
Override with -DENABLE_N230=ON/OFF

Configuring OctoClock support...
Dependency ENABLE_LIBUHD = ON
Enabling OctoClock support.
Override with -DENABLE_OCTOCLOCK=ON/OFF

Configuring high resolution timing...
High resolution timing supported through QueryPerformanceCounter.

Could NOT find UDev (missing: UDEV_INCLUDE_DIR UDEV_LIBS)

Configuring priority scheduling...
Priority scheduling supported through windows SetThreadPriority.

Configuring module loading...
Module loading supported through LoadLibrary.

Processing NI-RIO FPGA LVBITX Bitstreams...
Using x300.lvbitx_base for codegen
Using x310.lvbitx_base for codegen

USB support enabled via libusb.

Configuring interface address discovery...
Interface address discovery supported through SIO_GET_INTERFACE_LIST.

Loading build info.
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

Adding B2XX device test target
Adding X3x0 device test target

Could NOT find UDev (missing: UDEV_INCLUDE_DIR UDEV_LIBS)
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

Configuring Manual support...
Dependency DOXYGEN_FOUND = NO
Disabling Manual support.
Override with -DENABLE_MANUAL=ON/OFF

Configuring API/Doxygen support...
Dependency DOXYGEN_FOUND = NO
Disabling API/Doxygen support.
Override with -DENABLE_DOXYGEN=ON/OFF
Could NOT find GZip (missing: GZIP_EXECUTABLE)

Configuring Man Pages support...
Dependency GZIP_FOUND = FALSE
Dependency NOT_WIN32 =
Disabling Man Pages support.
Override with -DENABLE_MAN_PAGES=ON/OFF

######################################################

UHD enabled components

######################################################

  • LibUHD
  • LibUHD - C API
  • Examples
  • Utils
  • Tests
  • USB
  • B100
  • B200
  • USRP1
  • USRP2
  • X300
  • N230
  • OctoClock

######################################################

UHD disabled components

######################################################

  • GPSD
  • E100
  • E300
  • Manual
  • API/Doxygen
  • Man Pages

Building version: 003.010.001.001-0-unknown
Using install prefix: C:/USRP_B210/Installation/UHD (CMake)
Configuring done
Generating done

However, when I try to compile the ALL_BUILD in MSVC, I got this error: LNK1181 cannot open input file '..\lib\Release\uhd.lib' . Did I missed out any of the configurations?

Hi all, I would like to download Open Source UHD because I want to edit some files like the AD9361.cpp files. I am currently using: Cmake 3.11.1 ; Visual Studio Express 2015; Boost_1_67_0; LibUSB-1.0.21; Python 2.7; Mako; UHD_3.10.1.1_release; I followed the steps in https://kb.ettus.com/Building_and_Installing_the_USRP_Open_Source_Toolchain_(UHD_and_GNU_Radio)_on_Windows and this is the results shown in CMake: Configuring the python interpreter... Python interpreter: C:/Python27/python.exe Override with: -DPYTHON_EXECUTABLE=<path-to-python> fatal: Not a git repository (or any of the parent directories): .git Could not determine git branch. Probably building from tarball. fatal: Not a git repository (or any of the parent directories): .git Using UHD Images Directory: ON Configuring Boost C++ Libraries... Boost version: 1.67.0 Found the following Boost libraries: chrono date_time filesystem program_options regex system unit_test_framework serialization thread atomic Boost include directories: C:/local/boost_1_67_0_x86 Boost library directories: C:/local/boost_1_67_0_x86/lib32-msvc-14.0 Boost libraries: optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_chrono-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_chrono-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_date_time-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_date_time-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_filesystem-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_filesystem-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_program_options-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_program_options-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_regex-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_regex-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_system-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_system-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_unit_test_framework-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_unit_test_framework-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_serialization-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_serialization-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_thread-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_thread-vc140-mt-gd-x32-1_67.lib;optimized;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_atomic-vc140-mt-x32-1_67.lib;debug;C:/local/boost_1_67_0_x86/lib32-msvc-14.0/boost_atomic-vc140-mt-gd-x32-1_67.lib Python checking for Python version 2.7 or greater Python checking for Python version 2.7 or greater - found Python checking for Mako templates 0.4.2 or greater Python checking for Mako templates 0.4.2 or greater - found Python checking for requests 2.0 or greater Python checking for requests 2.0 or greater - found Configuring LibUHD support... Dependency Boost_FOUND = 1 Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE Dependency HAVE_PYTHON_MODULE_MAKO = TRUE Enabling LibUHD support. Override with -DENABLE_LIBUHD=ON/OFF Configuring LibUHD - C API support... Dependency ENABLE_LIBUHD = ON Enabling LibUHD - C API support. Override with -DENABLE_C_API=ON/OFF Configuring Examples support... Dependency ENABLE_LIBUHD = ON Enabling Examples support. Override with -DENABLE_EXAMPLES=ON/OFF Configuring Utils support... Dependency ENABLE_LIBUHD = ON Enabling Utils support. Override with -DENABLE_UTILS=ON/OFF Configuring Tests support... Dependency ENABLE_LIBUHD = ON Enabling Tests support. Override with -DENABLE_TESTS=ON/OFF Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could NOT find LIBGPS (missing: LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR) Configuring USB support... Dependency ENABLE_LIBUHD = ON Dependency LIBUSB_FOUND = TRUE Enabling USB support. Override with -DENABLE_USB=ON/OFF Configuring GPSD support... Dependency ENABLE_LIBUHD = ON Dependency ENABLE_GPSD = Dependency LIBGPS_FOUND = FALSE Disabling GPSD support. Override with -DENABLE_GPSD=ON/OFF Configuring B100 support... Dependency ENABLE_LIBUHD = ON Dependency ENABLE_USB = ON Enabling B100 support. Override with -DENABLE_B100=ON/OFF Configuring B200 support... Dependency ENABLE_LIBUHD = ON Dependency ENABLE_USB = ON Enabling B200 support. Override with -DENABLE_B200=ON/OFF Configuring E100 support... Dependency ENABLE_LIBUHD = ON Dependency LINUX = Disabling E100 support. Override with -DENABLE_E100=ON/OFF Configuring E300 support... Dependency ENABLE_LIBUHD = ON Disabling E300 support. Override with -DENABLE_E300=ON/OFF Configuring USRP1 support... Dependency ENABLE_LIBUHD = ON Dependency ENABLE_USB = ON Enabling USRP1 support. Override with -DENABLE_USRP1=ON/OFF Configuring USRP2 support... Dependency ENABLE_LIBUHD = ON Enabling USRP2 support. Override with -DENABLE_USRP2=ON/OFF Configuring X300 support... Dependency ENABLE_LIBUHD = ON Enabling X300 support. Override with -DENABLE_X300=ON/OFF Configuring N230 support... Dependency ENABLE_LIBUHD = ON Enabling N230 support. Override with -DENABLE_N230=ON/OFF Configuring OctoClock support... Dependency ENABLE_LIBUHD = ON Enabling OctoClock support. Override with -DENABLE_OCTOCLOCK=ON/OFF Configuring high resolution timing... High resolution timing supported through QueryPerformanceCounter. Could NOT find UDev (missing: UDEV_INCLUDE_DIR UDEV_LIBS) Configuring priority scheduling... Priority scheduling supported through windows SetThreadPriority. Configuring module loading... Module loading supported through LoadLibrary. Processing NI-RIO FPGA LVBITX Bitstreams... Using x300.lvbitx_base for codegen Using x310.lvbitx_base for codegen USB support enabled via libusb. Configuring interface address discovery... Interface address discovery supported through SIO_GET_INTERFACE_LIST. Loading build info. Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) Adding B2XX device test target Adding X3x0 device test target Could NOT find UDev (missing: UDEV_INCLUDE_DIR UDEV_LIBS) Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Configuring Manual support... Dependency DOXYGEN_FOUND = NO Disabling Manual support. Override with -DENABLE_MANUAL=ON/OFF Configuring API/Doxygen support... Dependency DOXYGEN_FOUND = NO Disabling API/Doxygen support. Override with -DENABLE_DOXYGEN=ON/OFF Could NOT find GZip (missing: GZIP_EXECUTABLE) Configuring Man Pages support... Dependency GZIP_FOUND = FALSE Dependency NOT_WIN32 = Disabling Man Pages support. Override with -DENABLE_MAN_PAGES=ON/OFF ###################################################### # UHD enabled components ###################################################### * LibUHD * LibUHD - C API * Examples * Utils * Tests * USB * B100 * B200 * USRP1 * USRP2 * X300 * N230 * OctoClock ###################################################### # UHD disabled components ###################################################### * GPSD * E100 * E300 * Manual * API/Doxygen * Man Pages Building version: 003.010.001.001-0-unknown Using install prefix: C:/USRP_B210/Installation/UHD (CMake) Configuring done Generating done However, when I try to compile the *ALL_BUILD* in MSVC, I got this error: LNK1181 cannot open input file '..\lib\Release\uhd.lib' . Did I missed out any of the configurations?