couldn't launch cameras after upgrading to driveworks-0.6

I flashed Tegra and upgrade driveworks to latest released version. However, I couldn’t launch the sample camera code. It showed me following errors:

nvidia@nvidia:/usr/local/driveworks/bin$ ./sample_camera_gmsl
Program Arguments:
--camera-type=ar0231-rccb
--csi-port=ab
--fifo-size=3
--serialize-bitrate=8000000
--serialize-framerate=30
--serialize-type=h264
--slave=0
--write-file=

nvrm_gpu: Bug 200215060 workaround enabled.
Initialize DriveWorks SDK v0.6.54
Release build with GNU 4.9.2 from v0.6.0-rc5-0-g3f25786 against Vibrante PDK v5.0.5.0
TimeSource: monotonic epoch time offset is 1515370509471972
TimeSource: PTP ioctl returned error. Synchronized time will not be available.
TimeSource: Could not detect valid PTP time source at 'eth0'. Fallback to CLOCK_MONOTONIC.

SDK: Resources mounted from /usr/local/driveworks-0.6/data/resources
SDK: Create NvMediaDevice
SDK: use EGL display as provided
SDK: Default GPU Device set to device number 0. Total number of devices detected: 2
SAL: identified board as DrivePX2-TegraA
SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=ab,fifo-size=3,serialize-bitrate=8000000,serialize-framerate=30,serialize-type=h264,slave=0,write-file=,output-format=yuv
CameraGMSL: required FPS = 30, resolution = 1920x1208
***** aurix state *****
 CAM_PWR_ON: 0x0
 TEGRA_GMSL: TEGRA B
 TEGRA_FPDL: TEGRA B
 TEGRA_A_HDMI: MXM
 TEGRA_B_HDMI: MXM
 TEGRA_PCI: TEGRA B
 FAN_STATE: UNKNOWN
***********************
***** aurix state *****
 CAM_PWR_ON: 0x1
 TEGRA_GMSL: UNKNOWN
 TEGRA_FPDL: UNKNOWN
 TEGRA_A_HDMI: UNKNOWN
 TEGRA_B_HDMI: UNKNOWN
 TEGRA_PCI: UNKNOWN
 FAN_STATE: UNKNOWN
***********************
Camera image with 1920x1208 at 30 FPS
nvmEglStProducerCreateCommon: Entered
NvMediaEglStreamWrapperInitializeEgl: Cannot find function NvEglApiGetAccess
nvmEglStProducerCreateCommon:Wrapper initialization failed
NvMediaEglStreamProducerCreate: Failed to Create Producer
StreamProducerNvMediaImage: could not create NvMedia Image stream producer!
Driveworks exception thrown: DW_CANNOT_CREATE_OBJECT: could not create NvMedia Image stream producer

Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr

Is there anything I missed during upgrade?

export LD_LIBRARY_PATH worked… thanks!

export LD_LIBRARY_PATH worked… thanks!

This fixed the issue:
echo PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda-9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > /etc/environment
echo LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib:/usr/local/cuda-9.0/lib64:/usr/lib:/usr/local/cuda/targets/aarch64-linux/lib:/usr/local/cuda-9.0/lib:/usr/local/cuda-9.0/lib64:/usr/lib:/usr/local/cuda/targets/aarch64-linux/lib: >> /etc/environment