Any pkg based on OpenGL (e.g. ros-kinetic-rviz) installed on Xavier, all programs which used EGL would end up runtime error.
NvMediaEglStreamWrapperInitializeEGL: Cannot find function NvEglApiGetAccess nvmEglStProducerCreateCommon:Wrapper initialization failed NvMediaEglStreamProducerCreate: Failed to create Producer
Only if we export LD_LIBRARY_PATH=/usr/lib under ~/.bashrc,
then the error messages won’t show up, and the program can execute correctly.