I am using a Kinect for Windows v2 so I am trying to install the libfreenect2 libraries.
libfreenect2
When I build libusb I get a succesfull build and two warnings:
"C:\Users\ DonJoe>\Desktop\openFrameworks\libs\libfreenect2\depends\libusb_src\msvc\libusb_usbdk_dll_2015.vcxproj
" (Rebuild target) (1) ->
(Link target) ->
libusb-usbdk-1.0.exp : warning LNK4070: /OUT:libusb-1.0.dll directive in .EXP differs from output filename 'C:\Users\
<DonJoe>\Desktop\openFrameworks\libs\libfreenect2\depends\libusb_src\msvc\..\x64\Release\dll\libusb-usbdk-1.0.dll
'; ignoring directive [C:\Users\<DonJoe>\Desktop\openFrameworks\libs\libfreenect2\depends\libusb_src\msvc\libusb_
usbdk_dll_2015.vcxproj]
libusb-usbdk-1.0.exp : warning LNK4070: /OUT:libusb-1.0.dll directive in .EXP differs from output filename 'C:\Users\
<DonJoe>\Desktop\openFrameworks\libs\libfreenect2\depends\libusb_src\msvc\..\x64\Release\dll\libusb-usbdk-1.0.dll
'; ignoring directive [C:\Users\<DonJoe>\Desktop\openFrameworks\libs\libfreenect2\depends\libusb_src\msvc\libusb_
usbdk_dll_2015.vcxproj]
So when I go to the next step ‘Build’ and execute this line:
cmake … -G “Visual Studio 14 2015 Win64”
I get the error No package ‘libusb-1.0’
This is the whole output with the error
C:\Users\Tariq Bakhtali\Desktop\openFrameworks\libs\libfreenect2\build> cmake .. -G "Visual Studio 14 2015 Win64"
-- using tinythread as threading library
-- Checking for module 'libusb-1.0'
-- No package 'libusb-1.0' found
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindPkgConfig.cmake:415 (message):
A required package was not found
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.7/Modules/FindPkgConfig.cmake:588 (_pkg_check_modules_internal)
cmake_modules/FindLibUSB.cmake:21 (PKG_CHECK_MODULES)
CMakeLists.txt:93 (FIND_PACKAGE)