Undefined symbol: vpiGetLastStatusMessage

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) AGX Xavier/1080Ti
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.4

I am using docker running on x86 with 1080Ti for development.
I am able to compile and run 02-stereo_disparity sample under /opt/nvidia/vpi/samples in my docker.
Now I am trying to integrate the vpi stereo disparity vpi calls into gst-dsexample plugin. It was compiled OK (no warning, no error). After make install, I run the plugin in a deepstream pipeline and it complains “undefined symbol: vpiGetLastStatusMessage”.

I did add the vpi library path in the Makefile (otherwise, it will report this symbol is not referenced error.) Since the “make” doesn’t have any error assuming the linking of vpiGetLastStatusMessage in vpi lib is ok. Why during the runtime, it cannot find the vpiGetLastStatusMessage?

Please advise. Thank you very much for your help.

after adding the vpi targets lib into LD_LIBRARY_PATH, the problem resolved:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/nvidia/vpi/targets/x86_64-linux/lib