Skip to content

Instantly share code, notes, and snippets.

@charlie-x
Created January 7, 2021 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlie-x/b61719cf09bc07e3c83aae28fe781933 to your computer and use it in GitHub Desktop.
Save charlie-x/b61719cf09bc07e3c83aae28fe781933 to your computer and use it in GitHub Desktop.
build hackrf/windows msvc 2019 static
git clone https://github.com/mossmann/hackrf
vcpkg install libusb:x64-windows-static
vcpkg install pthreads:x64-windows-static
cmake-gui
select hackrf/host/libhackrf/
select build folder
if cmake isn't integrated
set pthreads include to vcpkg packages folder include e.g. E:\code\vcpkg\packages\pthreads_x64-windows-static\include
set pthreads lib var to vcpkg folder pthreadsVC3.lib e.g. E:/code/vcpkg/packages/pthreads_x64-windows-static/lib/pthreadVC3.lib
set LIBUSB_INLUDE_DIR to location of vcpkg \vcpkg\packages\libusb_x64-windows-static\include\libusb-1.0
set LIBUSB_LIBRARIES = basevcpkg +/vcpkg/packages/libusb_x64-windows-static/lib/libusb-1.0.lib
config/gen cmake, open sln and build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment