No EGL Display 报错解决

x33g5p2x  于2022-07-26 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(785)

版本情况如下
CUDA版本:10.2

tensorrt版本:8.0.1.6

JetPack版本:32.6.1

deepstream版本:6.0

官网的系统版本适配图如下:

通过对比发现:我的版本是没有问题的。于是开始细细地检查报错。

第一种类别报错
报错如下

nvbuf_utils: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display

解决方法,在命令行执行:
unset DISPLAY
rm ${HOME}/.cache/gstreamer-1.0/registry.*

输入上面的命令的目的是:将DISPLAY的值设为:0。

可以输入以下的命令查看:

echo $DISPLAY

输出为 :0

如果上述的命令并没有将DISPLAY的值设为0,请使用下面这种方法:

export DISPLAY=:0

然后再次输入命令查看:

echo $DISPLAY

输出为 :0

其实第一类报错算是已经解决了。

再次输入:

gst-inspect-1.0

发现报错减少了,但是还有4个:

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.622: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.628: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.634: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libcustom2d_preprocess.so': /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libcustom2d_preprocess.so: undefined symbol: NvBufSurfTransformAsync

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.650: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_preprocess.so': /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_preprocess.so: undefined symbol: NvBufSurfTransformAsync

说明第一类的报错已经解决了。

第二类报错
(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.622: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.628: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.634: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libcustom2d_preprocess.so': /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libcustom2d_preprocess.so: undefined symbol: NvBufSurfTransformAsync

(gst-plugin-scanner:32277): GStreamer-WARNING **: 15:05:17.650: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_preprocess.so': /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_preprocess.so: undefined symbol: NvBufSurfTransformAsync

参考
https://blog.csdn.net/zong596568821xp/article/details/121231336

通过这篇文章发现,这些问题是Deepstream6.0所为解决的问题,可以忽略。

重新推理,得到正确的结果了。
————————————————
版权声明:本文为CSDN博主「零碎@流年絮语」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_44824148/article/details/122841870

相关文章