Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 错误:环境中未设置XDG\U运行时\U目录_Linux_Gstreamer_Ubuntu 18.04_Vaapi - Fatal编程技术网

Linux 错误:环境中未设置XDG\U运行时\U目录

Linux 错误:环境中未设置XDG\U运行时\U目录,linux,gstreamer,ubuntu-18.04,vaapi,Linux,Gstreamer,Ubuntu 18.04,Vaapi,我运行GStreamer的管道从rtsp服务器获取数据 然后我得到一个错误:error:XDG\u RUNTIME\u DIR未在环境中设置 我已经在visudo中添加了一些配置:sudoVisudo Defaults env_keep += "DISPLAY XAUTHORITY" Defaults env_keep += "https_proxy" 还是不行。但它在Ubuntu 16.04中运行良好 我的环境是“5.0.0-29-generic#31~18.04.1-Ubuntu SMP-

我运行GStreamer的管道从rtsp服务器获取数据

然后我得到一个错误:error:XDG\u RUNTIME\u DIR未在环境中设置

我已经在visudo中添加了一些配置:sudoVisudo

Defaults env_keep += "DISPLAY XAUTHORITY"
Defaults env_keep += "https_proxy"
还是不行。但它在Ubuntu 16.04中运行良好

我的环境是“5.0.0-29-generic#31~18.04.1-Ubuntu SMP-Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux”


如果你有什么解决办法,请告诉我。非常感谢

我已经解决了我的问题。我的经验是再次检查我们的源代码或环境。我也尝试使用“”,但对我的情况没有帮助

我还在userroot下键入“$printenv”,我看到用户的环境中有许多“XDG\u RUNTIME\u DIR”的设置。因此,我尝试在user:/app下运行我的应用程序。结果是一样的

然后,我再次检查了我的源代码(export GST_DEBUG=2)。我看到我的源代码使用pluginautovideoconvert将BGR转换为I420,结果出错。因此,我将autovideoconvert更改为videoconvert,然后错误被修复。 谢谢