OpenKinect / libfreenect2

Open source drivers for the Kinect for Windows v2 device
2.08k stars 752 forks source link

Could NOT find LibUSB (missing: LibUSB_LIBRARIES LibUSB_INCLUDE_DIRS) on Win10 #1127

Closed WestbrookZero closed 4 years ago

WestbrookZero commented 4 years ago

D:\InstallPath\Source\SourceVersion\libfreenect2-0.2.0\build>cmake .. -G "Visual Studio 15 2017 Win64" -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. -- The C compiler identification is MSVC 19.16.27034.0 -- The CXX compiler identification is MSVC 19.16.27034.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- using tinythread as threading library -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Performing Test LIBUSB_WITH_LIBUSBK -- Performing Test LIBUSB_WITH_LIBUSBK - Failed -- Performing Test LIBUSB_WITH_USBDK -- Performing Test LIBUSB_WITH_USBDK - Success CMake Error at D:/InstallPath/Develop/CMake/3.16.5/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find LibUSB (missing: LibUSB_LIBRARIES) Call Stack (most recent call first): D:/InstallPath/Develop/CMake/3.16.5/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindLibUSB.cmake:102 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:93 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred! See also "D:/InstallPath/Source/SourceVersion/libfreenect2-0.2.0/build/CMakeFiles/CMakeOutput.log". See also "D:/InstallPath/Source/SourceVersion/libfreenect2-0.2.0/build/CMakeFiles/CMakeError.log".