0

I am trying to install libfreenect2 (https://github.com/OpenKinect/libfreenect2) to connect my Kinect V2 to my laptop. When I run the following command:

mkdir build && cd build
cmake .. -G "Visual Studio 12 2013 Win64"

The error it gives:

C:\libfreenect2-master\build>cmake .. -G "Visual Studio 15 2017 Win64"
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.16.27026.1
-- The CXX compiler identification is MSVC 19.16.27026.1
-- 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)
CMake Error at C:/cmake-3.13.2-win64-x64/cmake-3.13.2-win64-x64/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find LibUSB (missing: LibUSB_LIBRARIES LibUSB_INCLUDE_DIRS)
Call Stack (most recent call first):
  C:/cmake-3.13.2-win64-x64/cmake-3.13.2-win64-x64/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindLibUSB.cmake:79 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:94 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "C:/libfreenect2-master/build/CMakeFiles/CMakeOutput.log".

I am quite new to all of this, so any help would be much appreciated. Thanks!

  • 1
    "Could NOT find PkgConfig" means that CMake cannot find `pkg-config` on your system. See that question about `pkg-config` on Windows: https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows. Note, that missing `pkg-config` is not **an error** in your case. The error message is about missing `libusb` library. If you want to install libusb library on your machine, just google. – Tsyvarev Jan 11 '19 at 15:47

0 Answers0