当前位置: 代码迷 >> 综合 >> 自己编写 DeepStream 插件编译时找不到头文件
  详细解决方案

自己编写 DeepStream 插件编译时找不到头文件

热度:0   发布时间:2023-12-12 15:30:39.0

没有设置搜索路径,DeepStream 头文件位置在 

/opt/nvidia/deepstream/deepstream-5.1/sources/includes

把下面两行代码添加到 /etc/profile 文件中即可。

export C_INCLUDE_PATH=/usr/include/gstreamer-1.0:/usr/include/glib-2.0:/usr/lib/aarch64-linux-gnu/glib-2.0/include:/opt/nvidia/deepstream/deepstream-5.1/sources/includes:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/include/gstreamer-1.0:/usr/include/glib-2.0:/usr/lib/aarch64-linux-gnu/glib-2.0/include:/opt/nvidia/deepstream/deepstream-5.1/sources/includes:$CPLUS_INCLUDE_PATH