我正在尝试在 64 位 Windows 10 中使用 cmake 和 Visual Studio 2019 为我的 Kinect 1414 构建libfreenect,但是我遇到了与此日志详述的libusb相关的各种错误:
PS C:\ComputerStuff\libfreenect\build> cmake --build .
Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Creating library C:/ComputerStuff/libfreenect/build/lib/Debug/freenect.lib and object C:/ComputerStuff/libfreenect/build/lib/Debug/freenect.exp
tilt.obj : error LNK2019: unresolved external symbol libusb_error_name referenced in function fnusb_set_led_alt [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2001: unresolved external symbol libusb_error_name [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
tilt.obj : error LNK2019: unresolved external symbol libusb_bulk_transfer referenced in function fnusb_set_led_alt [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2001: unresolved external symbol libusb_bulk_transfer [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_init referenced in function fnusb_init [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_exit referenced in function fnusb_shutdown [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_device_list referenced in function fnusb_list_device_attributes [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_free_device_list referenced in function fnusb_list_device_attributes [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_device_descriptor referenced in function fnusb_find_sibling_device [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_active_config_descriptor referenced in function fnusb_num_interfaces [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_free_config_descriptor referenced in function fnusb_num_interfaces [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_bus_number referenced in function fnusb_find_sibling_device [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_parent referenced in function fnusb_find_sibling_device [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_max_iso_packet_size referenced in function fnusb_get_max_iso_packet_size [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_open referenced in function fnusb_keep_alive_led [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_close referenced in function fnusb_claim_camera [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_device referenced in function fnusb_get_max_iso_packet_size [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_claim_interface referenced in function fnusb_claim_camera [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_release_interface referenced in function fnusb_close_subdevices [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_set_interface_alt_setting referenced in function fnusb_claim_camera [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_reset_device referenced in function fnusb_keep_alive_led [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_alloc_transfer referenced in function fnusb_start_iso [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_submit_transfer referenced in function fnusb_start_iso [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_cancel_transfer referenced in function fnusb_stop_iso [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_free_transfer referenced in function fnusb_stop_iso [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_control_transfer referenced in function fnusb_control [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_get_string_descriptor_ascii referenced in function fnusb_list_device_attributes [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_handle_events_timeout referenced in function fnusb_process_events_timeout [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
usb_libusb10.obj : error LNK2019: unresolved external symbol libusb_handle_events referenced in function fnusb_process_events [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
C:\ComputerStuff\libusb-win32-bin-1.2.6.0\lib\msvc\libusb.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64' [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
C:\ComputerStuff\libfreenect\build\lib\Debug\freenect.dll : fatal error LNK1120: 27 unresolved externals [C:\ComputerStuff\libfreenect\build\src\freenect.vcxproj]
任何提示和帮助将不胜感激