Closed doctorstoo closed 3 years ago
After installing the CUDA 8.0 and OpenCL, I rebuild again and log shows:
------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------ Checking Build System CMake is re-running because E:/libfreenect2/build/CMakeFiles/generate.stamp is out-of-date. the file 'E:/libfreenect2/CMakeLists.txt' is newer than 'E:/libfreenect2/build/CMakeFiles/generate.stamp.depend' result='-1' -- Selecting Windows SDK version to target Windows 10.0.19042. -- using tinythread as threading library -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) -- Could NOT find TegraJPEG (missing: TegraJPEG_LIBRARIES TegraJPEG_INCLUDE_DIRS TegraJPEG_WORKS) CMake Warning (dev) at CMakeLists.txt:243 (FIND_PACKAGE): Policy CMP0074 is not set: find_package uses
_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable TurboJPEG_ROOT is set to:
E:\libfreenect2\depends\libjpeg-turbo64
For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it.
-- Linking with these libraries: E:/libfreenect2/depends/libusb/MS64/dll/libusb-1.0.lib E:/libfreenect2/depends/libjpeg-turbo64/lib/turbojpeg.lib E:/libfreenect2/depends/glfw/lib-vc2015/glfw3dll.lib opengl32 C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/OpenCL.lib C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudart_static.lib -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configurating examples -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Using in-tree freenect2 target -- Feature list: -- CUDA yes -- CXX11 disabled -- Examples yes -- OpenCL yes -- OpenGL yes -- OpenNI2 yes -- 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: E:/libfreenect2/build ------ Build started: Project: generate_resources_tool, Configuration: Debug x64 ------ Building Custom Rule E:/libfreenect2/CMakeLists.txt generate_resources.cpp generate_resources_tool.vcxproj -> E:\libfreenect2\build\bin\Debug\generate_resources_tool.exe generate_resources_tool.vcxproj -> E:/libfreenect2/build/bin/Debug/generate_resources_tool.pdb (Full PDB) ------ Build started: Project: freenect2, Configuration: Debug x64 ------ Generating resources.inc.h Building NVCC (Device) object CMakeFiles/cuda_compile_1.dir/src/Debug/cuda_compile_1_generated_cuda_depth_packet_processor.cu.obj cuda_depth_packet_processor.cu CUSTOMBUILD : nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). cuda_depth_packet_processor.cu Building NVCC (Device) object CMakeFiles/cuda_compile_1.dir/src/Debug/cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.obj cuda_kde_depth_packet_processor.cu CUSTOMBUILD : nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). cuda_kde_depth_packet_processor.cu Building Custom Rule E:/libfreenect2/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 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): note: see declaration of 'std::copy::_Unchecked_iterators::_Deprecate' E:\libfreenect2\src\cpu_depth_packet_processor.cpp(864): note: see reference to function template instantiation '_OutIt std::copy<const float,ScalarT>(_InIt,_InIt,_OutIt)' being compiled with [ _OutIt=float , ScalarT=float, _InIt=const float ] 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 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): note: see declaration of 'std::copy::_Unchecked_iterators::_Deprecate' E:\libfreenect2\src\opengl_depth_packet_processor.cpp(918): note: see reference to function template instantiation '_OutIt std::copy<unsigned char,unsigned char>(_InIt,_InIt,_OutIt)' being compiled with [ _OutIt=unsigned char , _InIt=unsigned char ] Generating Code... Compiling... opencl_depth_packet_processor.cpp opencl_kde_depth_packet_processor.cpp Generating Code... Creating library E:/libfreenect2/build/lib/Debug/freenect2d.lib and object E:/libfreenect2/build/lib/Debug/freenect2d.exp cuda_compile_1_generated_cuda_depth_packet_processor.cu.obj : warning LNK4217: locally defined symbol ??0Frame@libfreenect2@@QEAA@_K00PEAE@Z (public: cdecl libfreenect2::Frame::Frame(unsigned int64,unsigned int64,unsigned int64,unsigned char )) imported in function "public: cdecl libfreenect2::CudaFrame::CudaFrame(class libfreenect2::Buffer )" (??0CudaFrame@libfreenect2@@QEAA@PEAVBuffer@1@@Z) cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.obj : warning LNK4049: locally defined symbol ??0Frame@libfreenect2@@QEAA@_K00PEAE@Z (public: cdecl libfreenect2::Frame::Frame(unsigned int64,unsigned int64,unsigned int64,unsigned char )) imported cuda_compile_1_generated_cuda_depth_packet_processor.cu.obj : warning LNK4217: locally defined symbol ??1Frame@libfreenect2@@UEAA@XZ (public: virtual cdecl libfreenect2::Frame::~Frame(void)) imported in function "public: virtual cdecl libfreenect2::CudaFrame::~CudaFrame(void)" (??1CudaFrame@libfreenect2@@UEAA@XZ) cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.obj : warning LNK4049: locally defined symbol ??1Frame@libfreenect2@@UEAA@XZ (public: virtual cdecl libfreenect2::Frame::~Frame(void)) imported cuda_compile_1_generated_cuda_depth_packet_processor.cu.obj : warning LNK4217: locally defined symbol ??0Config@Freenect2Device@libfreenect2@@QEAA@XZ (public: cdecl libfreenect2::Freenect2Device::Config::Config(void)) imported in function "public: cdecl libfreenect2::CudaDepthPacketProcessorImpl::CudaDepthPacketProcessorImpl(int)" (??0CudaDepthPacketProcessorImpl@libfreenect2@@QEAA@H@Z) cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.obj : warning LNK4049: locally defined symbol ??0Config@Freenect2Device@libfreenect2@@QEAA@XZ (public: __cdecl libfreenect2::Freenect2Device::Config::Config(void)) imported cuda_compile_1_generated_cuda_depth_packet_processor.cu.obj : warning LNK4217: locally defined symbol ?getGlobalLogger@libfreenect2@@YAPEAVLogger@1@XZ (class libfreenect2::Logger cdecl libfreenect2::getGlobalLogger(void)) imported in function "public: virtual void cdecl libfreenect2::CudaDepthPacketProcessor::process(struct libfreenect2::DepthPacket const &)" (?process@CudaDepthPacketProcessor@libfreenect2@@UEAAXAEBUDepthPacket@2@@Z) cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.obj : warning LNK4049: locally defined symbol ?getGlobalLogger@libfreenect2@@YAPEAVLogger@1@XZ (class libfreenect2::Logger __cdecl libfreenect2::getGlobalLogger(void)) imported freenect2.vcxproj -> E:\libfreenect2\build\bin\Debug\freenect2d.dll freenect2.vcxproj -> E:/libfreenect2/build/bin/Debug/freenect2d.pdb (Full PDB) ------ Build started: Project: Protonect, Configuration: Debug x64 ------ Building Custom Rule E:/libfreenect2/examples/CMakeLists.txt Protonect.cpp viewer.cpp C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2372): note: see declaration of 'std::copy::_Unchecked_iterators::_Deprecate' E:\libfreenect2\examples\viewer.cpp(209): note: see reference to function template instantiation '_OutIt std::copy<unsigned char,unsigned char>(_InIt,_InIt,_OutIt)' being compiled with [ _OutIt=unsigned char , _InIt=unsigned char * ] flextGL.cpp Generating Code... Protonect.vcxproj -> E:\libfreenect2\build\bin\Debug\Protonect.exe Protonect.vcxproj -> E:/libfreenect2/build/bin/Debug/Protonect.pdb (Full PDB) ========== Build: 4 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Error lists show nothing, But when I open the Protonect.exe, "Procedure Entry Point Could Not Be Located In the ...:\libfreenect2\build\bin\Debug\freenect2d.dll". Could you please help me about the problem? @xlz Thanks a lot!
After few months, I decided to reinstall my Win10 system and build the libfreenect2 agian. Finally, it works.
Hi there, I am deploying the libfreenect2 on Win10 x64 system, there are some debug errors and unable to start the \libfreenect2\build\x64\Debug\ALL_BUILD. Thanks for any help with troubleshooting :) Versions: UsbDk_1.0.22_x64 glfw-3.3.2.bin.WIN64 libjpeg-turbo-2.0.0-vc64 OpenNI-Windows-x64-2.2.0.33 libusb-1.0 cmake-3.18.3-win64-x64 Feature list: -- CUDA no -- CXX11 disabled -- Examples yes -- OpenCL no -- OpenGL yes -- OpenNI2 yes -- 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: E:/libfreenect2/build E:\libfreenect2\build>cmake --build . --config RelWithDebInfo --target install Checking Build System Building Custom Rule E:/libfreenect2/CMakeLists.txt generate_resources.cpp generate_resources_tool.vcxproj -> E:\libfreenect2\build\bin\RelWithDebInfo\generate_resources_tool.exe generate_resources_tool.vcxproj -> E:/libfreenect2/build/bin/RelWithDebInfo/generate_resources_tool.pdb (Full PDB) Generating resources.inc.h Building Custom Rule E:/libfreenect2/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 E:/libfreenect2/build/lib/RelWithDebInfo/freenect2.lib and object E:/libfreenect2/build/lib/RelWi thDebInfo/freenect2.exp freenect2.vcxproj -> E:\libfreenect2\build\bin\RelWithDebInfo\freenect2.dll freenect2.vcxproj -> E:/libfreenect2/build/bin/RelWithDebInfo/freenect2.pdb (Full PDB) Building Custom Rule E:/libfreenect2/examples/CMakeLists.txt Protonect.cpp viewer.cpp flextGL.cpp Generating Code... Protonect.vcxproj -> E:\libfreenect2\build\bin\RelWithDebInfo\Protonect.exe Protonect.vcxproj -> E:/libfreenect2/build/bin/RelWithDebInfo/Protonect.pdb (Full PDB) Building Custom Rule E:/libfreenect2/CMakeLists.txt ColorStream.cpp DepthStream.cpp DeviceDriver.cpp IrStream.cpp Registration.cpp Utility.cpp VideoStream.cpp tinythread.cpp Generating Code... Creating library E:/libfreenect2/build/lib/RelWithDebInfo/freenect2-openni2.lib and object E:/libfreenect2/build/l ib/RelWithDebInfo/freenect2-openni2.exp freenect2-openni2.vcxproj -> E:\libfreenect2\build\bin\RelWithDebInfo\freenect2-openni2.dll freenect2-openni2.vcxproj -> E:/libfreenect2/build/bin/RelWithDebInfo/freenect2-openni2.pdb (Full PDB) Building Custom Rule E:/libfreenect2/CMakeLists.txt -- Install configuration: "RelWithDebInfo" -- Installing: E:/libfreenect2/build/install/lib/freenect2.lib -- Installing: E:/libfreenect2/build/install/bin/freenect2.dll -- Installing: E:/libfreenect2/build/install/include/libfreenect2 -- Installing: E:/libfreenect2/build/install/include/libfreenect2/color_settings.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/frame_listener.hpp -- Installing: E:/libfreenect2/build/install/include/libfreenect2/frame_listener_impl.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/led_settings.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/libfreenect2.hpp -- Installing: E:/libfreenect2/build/install/include/libfreenect2/logger.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/packet_pipeline.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/registration.h -- Up-to-date: E:/libfreenect2/build/install/include/libfreenect2 -- Installing: E:/libfreenect2/build/install/include/libfreenect2/config.h -- Installing: E:/libfreenect2/build/install/include/libfreenect2/export.h -- Installing: E:/libfreenect2/build/install/lib/cmake/freenect2/freenect2Config.cmake -- Installing: E:/libfreenect2/build/install/lib/cmake/freenect2/freenect2ConfigVersion.cmake -- Installing: E:/libfreenect2/build/install/lib/pkgconfig/freenect2.pc -- Installing: E:/libfreenect2/build/install/lib/OpenNI2/Drivers/freenect2-openni2.lib -- Installing: E:/libfreenect2/build/install/bin/freenect2-openni2.dll -- Installing: E:/libfreenect2/build/install/bin/Protonect.exe -- Installing: E:/libfreenect2/build/install/bin/libusb-1.0.dll -- Installing: E:/libfreenect2/build/install/bin/turbojpeg.dll -- Installing: E:/libfreenect2/build/install/bin/glfw3.dll
First debug on VS2015, showed 4 C4996 warnings.There are: E:\libfreenect2\src\opengl_depth_packet_processor.cpp(918) E:\libfreenect2\src\cpu_depth_packet_processor.cpp(864) E:\libfreenect2\examples\viewer.cpp(209) E:\libfreenect2\src\openni2\VideoStream.cpp(99)
Try to fix in C/C++ -> Preprocessor -> add definiton as _SCL_SECURE_NO_WARNINGS Debug Protonect again, but failed to start the \libfreenect2\build\x64\Debug\ALL_BUILD.