There is below problem when I run the Protonect.exe (\libfreenect2\build\install\bin) after building libfreenect2 code.
"Unable to find procedure entry point libusb_set_option at ...\libfreenect2\build\install\bin\freenect2.dll. "
I build it following order. What is the problem?
Step1. Installations
libfreenect2 (Commits on Mar 1, 2020)
libusb(libusb-1.0.23.7z) ----> extract as depends/libusb
TurboJPEG (libjpeg-turbo-2.0.4-vc64.exe) ----> extract as C:\libjpeg-turbo64
glfw-3.3.2.bin.WIN64 ----> extract as depends/glfw
Step3. Run the test program: .\install\bin\Protonect.exe
procedure start point libusb_set_option error
C:\libfreenect2_code\build>cmake .. -G "Visual Studio 14 2015 Win64"
-- Selecting Windows SDK version to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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)
-- Found LibUSB: C:/libfreenect2_code/depends/libusb/MS64/dll/libusb-1.0.lib
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find TegraJPEG (missing: TegraJPEG_LIBRARIES TegraJPEG_INCLUDE_DIRS TegraJPEG_WORKS)
-- Performing Test TURBOJPEG_WORKS
-- Performing Test TURBOJPEG_WORKS - Success
-- Found TurboJPEG: C:/libjpeg-turbo64/lib/turbojpeg.lib
-- Found GLFW3: C:/libfreenect2_code/depends/glfw/lib-vc2015/glfw3dll.lib
-- Found OpenGL: opengl32
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Linking with these libraries:
C:/libfreenect2_code/depends/libusb/MS64/dll/libusb-1.0.lib
C:/libjpeg-turbo64/lib/turbojpeg.lib
C:/libfreenect2_code/depends/glfw/lib-vc2015/glfw3dll.lib
opengl32
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configurating examples
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Using in-tree freenect2 target
-- Could NOT find OpenNI2 (missing: OpenNI2_LIBRARY_DIR OpenNI2_INCLUDE_DIRS)
-- Feature list:
-- CUDA no
-- CXX11 disabled
-- Examples yes
-- OpenCL no
-- OpenGL yes
-- OpenNI2 no
-- TegraJPEG no
-- Threading tinythread
-- TurboJPEG yes
-- VAAPI no
-- VideoToolbox no (Apple only)
-- streamer_recorder disabled
-- Configuring done
-- Generating done
-- Build files have been written to: C:/libfreenect2_code/build
C:\libfreenect2_code\build>cmake --build . --config RelWithDebInfo --target install
Microsoft (R) Build Engine version 14.0.25420.1]
Copyright (C) Microsoft Corporation. All rights reserved.
There is below problem when I run the Protonect.exe (\libfreenect2\build\install\bin) after building libfreenect2 code.
"Unable to find procedure entry point libusb_set_option at ...\libfreenect2\build\install\bin\freenect2.dll. "
I build it following order. What is the problem?
Step1. Installations libfreenect2 (Commits on Mar 1, 2020) libusb(libusb-1.0.23.7z) ----> extract as depends/libusb TurboJPEG (libjpeg-turbo-2.0.4-vc64.exe) ----> extract as C:\libjpeg-turbo64 glfw-3.3.2.bin.WIN64 ----> extract as depends/glfw
Step2. Build mkdir build && cd build @ \libfreenect2\ cmake .. -G "Visual Studio 14 2015 Win64" @ \libfreenect2\build cmake --build . --config RelWithDebInfo --target install @ \libfreenect2\build
Step3. Run the test program: .\install\bin\Protonect.exe procedure start point libusb_set_option error
C:\libfreenect2_code\build>cmake .. -G "Visual Studio 14 2015 Win64"
-- Selecting Windows SDK version to target Windows 10.0.17134. -- The C compiler identification is MSVC 19.0.24215.1 -- The CXX compiler identification is MSVC 19.0.24215.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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 14.0/VC/bin/x86_amd64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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) -- Found LibUSB: C:/libfreenect2_code/depends/libusb/MS64/dll/libusb-1.0.lib -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) -- Could NOT find TegraJPEG (missing: TegraJPEG_LIBRARIES TegraJPEG_INCLUDE_DIRS TegraJPEG_WORKS) -- Performing Test TURBOJPEG_WORKS -- Performing Test TURBOJPEG_WORKS - Success -- Found TurboJPEG: C:/libjpeg-turbo64/lib/turbojpeg.lib -- Found GLFW3: C:/libfreenect2_code/depends/glfw/lib-vc2015/glfw3dll.lib -- Found OpenGL: opengl32 -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - not found -- Looking for CL_VERSION_1_2 -- Looking for CL_VERSION_1_2 - not found -- Looking for CL_VERSION_1_1 -- Looking for CL_VERSION_1_1 - not found -- Looking for CL_VERSION_1_0 -- Looking for CL_VERSION_1_0 - not found -- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR) CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed -- Performing Test COMPILER_HAS_DEPRECATED -- Performing Test COMPILER_HAS_DEPRECATED - Success -- Linking with these libraries: C:/libfreenect2_code/depends/libusb/MS64/dll/libusb-1.0.lib C:/libjpeg-turbo64/lib/turbojpeg.lib C:/libfreenect2_code/depends/glfw/lib-vc2015/glfw3dll.lib opengl32 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configurating examples -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Using in-tree freenect2 target -- Could NOT find OpenNI2 (missing: OpenNI2_LIBRARY_DIR OpenNI2_INCLUDE_DIRS) -- Feature list: -- CUDA no -- CXX11 disabled -- Examples yes -- OpenCL no -- OpenGL yes -- OpenNI2 no -- TegraJPEG no -- Threading tinythread -- TurboJPEG yes -- VAAPI no -- VideoToolbox no (Apple only) -- streamer_recorder disabled -- Configuring done -- Generating done -- Build files have been written to: C:/libfreenect2_code/build
C:\libfreenect2_code\build>cmake --build . --config RelWithDebInfo --target install Microsoft (R) Build Engine version 14.0.25420.1] Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System Building Custom Rule C:/libfreenect2_code/CMakeLists.txt generate_resources.cpp generate_resources_tool.vcxproj -> C:\libfreenect2_code\build\bin\RelWithDebInfo\generate_resources_tool.exe generate_resources_tool.vcxproj -> C:/libfreenect2_code/build/bin/RelWithDebInfo/generate_resources_tool.pdb (Full PD B) Generating resources.inc.h Building Custom Rule C:/libfreenect2_code/CMakeLists.txt transfer_pool.cpp event_loop.cpp usb_control.cpp allocator.cpp frame_listener_impl.cpp packet_pipeline.cpp rgb_packet_stream_parser.cpp rgb_packet_processor.cpp depth_packet_stream_parser.cpp depth_packet_processor.cpp cpu_depth_packet_processor.cpp resource.cpp command_transaction.cpp registration.cpp logging.cpp libfreenect2.cpp tinythread.cpp turbo_jpeg_rgb_packet_processor.cpp flextGL.cpp opengl_depth_packet_processor.cpp Generating Code... Creating library C:/libfreenect2_code/build/lib/RelWithDebInfo/freenect2.lib and object C:/libfreenect2_code/build /lib/RelWithDebInfo/freenect2.exp freenect2.vcxproj -> C:\libfreenect2_code\build\bin\RelWithDebInfo\freenect2.dll freenect2.vcxproj -> C:/libfreenect2_code/build/bin/RelWithDebInfo/freenect2.pdb (Full PDB) Building Custom Rule C:/libfreenect2_code/examples/CMakeLists.txt Protonect.cpp viewer.cpp flextGL.cpp Generating Code... Protonect.vcxproj -> C:\libfreenect2_code\build\bin\RelWithDebInfo\Protonect.exe Protonect.vcxproj -> C:/libfreenect2_code/build/bin/RelWithDebInfo/Protonect.pdb (Full PDB) Building Custom Rule C:/libfreenect2_code/CMakeLists.txt -- Install configuration: "RelWithDebInfo" -- Installing: C:/libfreenect2_code/build/install/lib/freenect2.lib -- Installing: C:/libfreenect2_code/build/install/bin/freenect2.dll -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2 -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/color_settings.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/frame_listener.hpp -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/frame_listener_impl.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/led_settings.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/libfreenect2.hpp -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/logger.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/packet_pipeline.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/registration.h -- Up-to-date: C:/libfreenect2_code/build/install/include/libfreenect2 -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/config.h -- Installing: C:/libfreenect2_code/build/install/include/libfreenect2/export.h -- Installing: C:/libfreenect2_code/build/install/lib/cmake/freenect2/freenect2Config.cmake -- Installing: C:/libfreenect2_code/build/install/lib/cmake/freenect2/freenect2ConfigVersion.cmake -- Installing: C:/libfreenect2_code/build/install/lib/pkgconfig/freenect2.pc -- Installing: C:/libfreenect2_code/build/install/bin/Protonect.exe -- Installing: C:/libfreenect2_code/build/install/bin/libusb-1.0.dll -- Installing: C:/libfreenect2_code/build/install/bin/turbojpeg.dll -- Installing: C:/libfreenect2_code/build/install/bin/glfw3.dll