跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

故障排除#

问题:OpenCV 的 DLL 或依赖项问题#

Issue: The code execution cannot proceed because opencv_core.dll was not found.

Solution: Add the folder containing the OpenCV DLLs to your PATH environment variable.

See Adding OpenCV to PATH Environment Variable in the C++ Programmer's Guide.

Issue: opencv_core.so: cannot open shared object file.

Solution: Make sure OpenCV is properly installed and the library path is added to LD_LIBRARY_PATH.

Issue: opencv_core.so: cannot open shared object file.

Solution: Make sure OpenCV is properly installed and the library path is added to LD_LIBRARY_PATH.

问题:PCL 的 DLL 或依赖项问题#

Issue: The code execution cannot proceed because OpenNI2.dll was not found.

Solution: Download OpenNI2 and add the folder containing the OpenNI2.dll to your PATH environment variable.

Issue: OpenNI2.so: cannot open shared object file.

Solution: Install the required OpenNI2 library package.

Issue: OpenNI2.so: cannot open shared object file.

Solution: Install the required OpenNI2 library package.

问题:PCL 的 CMake 配置错误 (RelWithDebInfo)#

Issue: When compiling a program that uses PCL with cmake, an error message similar to Compiler: C++ compiler determination failed occurs.

Solution: When building PCL in the CMake GUI, use the Release configuration instead of RelWithDebInfo.

Issue: PCL compilation problems.

Solution: Use the libpcl-dev package instead of building from source.

Issue: PCL compilation problems.

Solution: Use the distribution's PCL package if available, or build from source with Release configuration.

问题:混合使用 32 位和 64 位库#

问题:混合使用 32 位和 64 位库时出现链接器错误。

解决方案:确保所有库(pylon、OpenCV、PCL)均针对与您的应用程序相同的架构进行编译(全部为 32 位或全部为 64 位)。

问题:Debug 模式下帧率低#

问题:与 Release 模式相比,在 Debug 模式下运行时的帧率明显较低。

解决方案:这是正常现象。请在 Release 模式下编译以获得更好的性能。Debug 模式具有额外的开销。

问题:设备已连接错误#

问题:程序崩溃或异常终止后,由于应用程序报告错误,导致无法连接到设备 Device already in use.

解决方案:

  • 重启 pylon 运行时或重新启动系统。
  • 检查是否还有其他进程仍在保持与该设备的连接。