[Sample][Error] enable Object Detection ... check for missing dependencies when using sl_ai

Hi,
Just received my Zed 2i Camera and installed SDK and CUDA 10.2 on my i5 Nvidia 940mx.
ZED depth viewer, explorer, ZedFu, etc…all works fine

But when compiling sample project with visual studio 2019 C++
I have this error when trying to execute ZED_Body_Tracking_Viewer.exe.
Compilation was successfull but have this message :

[Sample][Error] enable Object Detection  | CORRUPTED SDK INSTALLATION : Corrupted SDK detected. Please reinstall the ZED SDK, or check for missing dependencies when using sl_ai(cuDNN, TensorRT).
Exit program.

I’ve reinstalled the latest Zed SDK 4.0.3.
Same message.

I followed this thread : Problem with object detection : [ZED] [Object Detection] SL_AI_NOT_FOUND
But Dependency Walker is freezing when open sl_ai64.dll

Don’t know what to do :confused:

Here are some screeshot when I generated the project in case it can help find the problem :
CMAKE:


CMAKE LOG

RELEASE BUILD EXECUTION ERROR

Can someone help me please?

Ok, it took some time but I have the walker dependency console log:

Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Error: A circular dependency was detected.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

I’ve also attached part of the full result :
depencywalker_log_modules_list.txt (154.7 KB)

Hi,

Depends.exe is quite old and you can use this one instead : GitHub - lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
In my experience, most of the time the missing dll is NvencodeApi64.dll

Hi,
Ok, just analyzed the file with Dependencies, not sure what to look for, it shows no errors.

Where can I get the NvencodeApi64.dll ?

Oh I do have an error, haven’t noticed it :
checksum for sl_zed64.dll is incorrect

besides, I do have NvencodeApi64.dll located in my c:\windows\system32 folder :confused:

This is quite weird. Can you properly remove 4.0.3, be sure that no dll is still here, then install it again ? in the meantime, it will be 4.0.4 (we released it this morning).

Hi,
I have exactly the same error.

  • I have uninstalled zed SDK
  • check no ddl left
  • reinstall zed sdk 4.0.4
  • reboot
  • cleaned the visual studio 2019 project
  • rebuild the body tracking project in RElease mode x64
  • execute the exe generated in Release folder
  • have same error
ZED_Body_Tracking_Viewer.exe
[Sample][Error] enable Object Detection  | CORRUPTED SDK INSTALLATION : Corrupted SDK detected. Please reinstall the ZED SDK, or check for missing dependencies when using sl_ai(cuDNN, TensorRT).
Exit program.

I also Analyzed the new sl_zed64.dll with Dependencies and it show again checksum incorrect same as before.

the build shows no errors but some weird warnings, don’t know if it’s relevant.

Rebuild started...
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Release x64 ------
1>Checking Build System
1>CMake is re-running because D:/DEV/zed-sdk-master/build/body tracking/body tracking/cpp/CMakeFiles/generate.stamp is out-of-date.
1>  the file 'C:/Program Files (x86)/ZED SDK/dependencies/opencv_3.1.0/OpenCVConfig-version.cmake'
1>  is newer than 'D:/DEV/zed-sdk-master/build/body tracking/body tracking/cpp/CMakeFiles/generate.stamp.depend'
1>  result='-1'
1>-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.18362.
1>CMake Warning (dev) at body tracking/export/fbx export/cpp/CMakeLists.txt:33 (message):
1>  FBX library not found
1>This warning is for project developers.  Use -Wno-dev to suppress it.
1>
1>-- Found CUDA: D:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found version "10.2")
1>-- Found CUDA: D:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found suitable version "10.2", minimum required is "10.2")
1>-- Could NOT find GPS (missing: GPS_INCLUDE_DIR GPS_LIBRARY)
1>GPSD was not FOUND. the sample will not be able to read live GNSS data
1>CMake Warning at geotracking/live geotracking/cpp/CMakeLists.txt:27 (find_package):
1>  By not providing "FindSL_IOT.cmake" in CMAKE_MODULE_PATH this project has
1>  asked CMake to find a package configuration file provided by "SL_IOT", but
1>  CMake did not find one.
1>
1>  Could not find a package configuration file provided by "SL_IOT" with any
1>  of the following names:
1>
1>    SL_IOTConfig.cmake
1>    sl_iot-config.cmake
1>
1>  Add the installation prefix of "SL_IOT" to CMAKE_PREFIX_PATH or set
1>  "SL_IOT_DIR" to a directory containing one of the above files.  If "SL_IOT"
1>  provides a separate development package or SDK, be sure it has been
1>  installed.
1>
1>
1>-- Configuring done
1>-- Generating done
1>-- Build files have been written to: D:/DEV/zed-sdk-master/build
2>------ Rebuild All started: Project: ZED_Body_Tracking_Viewer, Configuration: Release x64 ------
2>Building Custom Rule D:/DEV/zed-sdk-master/body tracking/body tracking/cpp/CMakeLists.txt
2>cl : command line warning D9002: ignoring unknown option '-g'
2>GLViewer.cpp
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6868,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6920,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6935,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6944,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7186,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7223,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7426,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7441,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7627,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(133,43): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(133,30): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(134,47): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(134,34): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(178,31): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(258,126): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(433,60): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(449,40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
2>        with
2>        [
2>            T=float
2>        ]
2>TrackingViewer.cpp
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6868,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6920,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6935,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6944,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7186,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7223,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7426,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7441,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7627,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\include\TrackingViewer.hpp(49,104): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
2>main.cpp
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6868,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6920,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6935,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6944,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7186,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7223,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7426,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7441,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7318): message : see declaration of 'std::pair<float,float>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7627,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7879): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
2>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7885): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\include\TrackingViewer.hpp(49,104): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(98,80): warning C4244: 'argument': conversion from 'float' to 'size_t', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(100,91): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(174,13): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2>D:\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(179,20): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2>Generating Code...
2>ZED_Body_Tracking_Viewer.vcxproj -> D:\DEV\zed-sdk-master\build\body tracking\body tracking\cpp\Release\ZED_Body_Tracking_Viewer.exe
2>Done building project "ZED_Body_Tracking_Viewer.vcxproj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

I’ve tried to build other projects form the zed sdk samples :

  • ZED_Depth_Sensing : works
  • ZED_Body_export_FBX : don’t work, i have this error :
ZED_Body_export_FBX.exe"
Error enable ODCORRUPTED SDK INSTALLATION, exit program.
  • ZED_Object_detection_bird_eye_viewer : don’t work :
ZED_Object_detection_birds_eye_viewer.exe"
[ZED][INFO] Logging level INFO
[ZED SDK][Input] Using USB input... Switched to HD720
[ZED][INFO] [Init]  Depth mode: ULTRA
[ZED][INFO] [Init]  Camera successfully opened.
[ZED][INFO] [Init]  Sensors FW version: 777
[ZED][INFO] [Init]  Camera FW version: 1523
[ZED][INFO] [Init]  Video mode: HD720@60
[ZED][INFO] [Init]  Serial Number: S/N 37419506
[Sample] Object Detection: Loading Module...
[ZED][ERROR] sl_ai library loading failed details: "sl_ai64.dll": Le module spÚcifiÚ est introuvable.
[Sample] [Error] enableObjectDetection  | CORRUPTED SDK INSTALLATION : [ZED][ERROR] [Object Detection]  Missing sl_ai library
Corrupted SDK detected. Please reinstall the ZED SDK, or check for missing dependencies when using sl_ai(cuDNN, TensorRT).
Exit program.
[ZED][ERROR] [ZED] [Object Detection]  SL AI NOT FOUND
[ZED][WARNING] CORRUPTED SDK INSTALLATION in enum sl::ERROR_CODE __cdecl sl::Camera::enableObjectDetection(struct sl::ObjectDetectionParameters)

It may be related to the fact that your GPU is very old. What is your nvidia driver ? Can you update it ? Can you run the CUDA samples to check that your CUDA installation does correctly work ?

Hi,
I’ve builded ZED_CUDA_Refocus
it works but not sure what it is supposed to do, clicking onimage to “Refocus” doesn’t do anything… :confused:

After that I uninstalled again ZED SDK 4.0.4,
updated nvidia driver which was indeed not up to date since a long time.
I have installed nvidia version 512.15 (512.15-notebook-win10-win11-64bit-international-dch-whql.exe) before I had 441.22

Reinstall ZED SDK

Rebuild ZED_Body_Tracking_Viewer
But have exact same error message :

\ZED_Body_Tracking_Viewer.exe"
[Sample][Error] enable Object Detection  | CORRUPTED SDK INSTALLATION : Corrupted SDK detected. Please reinstall the ZED SDK, or check for missing dependencies when using sl_ai(cuDNN, TensorRT).
Exit program.

In case it is relevant.
When using the included ZED SDK Depth viewer, and selecting Neural for the camera parameters,
it failed.
Neural mode not working

Your whole AI setup does not work. Neural, body tracking, object detection, etc. I think your CUDA is incomplete in some way. What if you run the dependency program on sl_ai.dll ?

As i said, when analyzing sl_ai64.dll
I have checksum uncorrect. See my previous post the screenshot.
Despite reinstalling the sdk

About my CUDA, I have installed 10.2 like you told me

Sorry, I’m going in a loop :sweat_smile:
It can be an error of tensorrt / cudnn. Can you try to install them from nvidia’s website ? TensorRT SDK | NVIDIA Developer and CUDA Deep Neural Network (cuDNN) | NVIDIA Developer

Ok,
Just downloaded

But it 's not installation program. Just files insides.
What should I do with them?

besides for tensorflow they have GA or EA version, I picked EA. But don’t know the difference

doesn’t it seems like it can’t locate sl_ai64.dll somehow ?

Hi,
thanks for trying to solve my problem.
But is it possible to continue by email and get faster reply?
I received my Zed 2i 2 weeks ago and still have’nt been able to make it work yet.
It’s really annoying in my project planning for my client :confused:
I’m kinda stucked now and need to validate fast (or invalidate) the use of the Zed 2i camera for my game.

Hi,
I got a brand new PC

    1. windows 11
    1. i7 32go RAM
    1. NVIDIA RTX 3070 Laptop 8go

Installed latest nvidia driver, CUDA 12.2 and latest ZED SDK

Tried ZED Depth Viewer and selected Mode Neural and have an error message :

Warning
Failed to optimize model. NEURAL mode won't be available.

Please help me solve this fast :confused: I have latest hadware now, why is it not still working?

If it is relevant I didn’t installed the Geforce Experience, only drivers.