How to compile Dense Optical Flow sample code under Drive OS 5.2.6 and DriveWorks 4.0

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.7.1.8928
other

Host Machine Version
native Ubuntu 18.04
other

Host machine: Ubuntu 18.04
Target board: Nvidia Drive AGX Xavier
Software: Drive OS 5.2 and DriveWorks 4.0
I am able to rebuild DriveWorks SDK sample apps except Denseopticalflow and pyramid.
In /usr/local/driveworks/sample/src/imageprocessing/CMakelists.txt
if(VIBRANTE)
add_subdirectory(motion/denseopticalflow)
add_subdirectory(filtering/pyramid)
endif()

there are 2 situations:
case 1: compile cmd:
sudo cmake -DCMAKE_BUILD_TYPE=Release -DTRT_VERSION:STRING=6.5.0.7
-DVIBRANTE=FALSE
-DVIBRANTE_PDK:STRING=/home/upower/nvidia/nvidia_sdk/DRIVE_OS_5.2.6_SDK_Linux_OSWithSamples_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux
/usr/local/driveworks-4.0/samples

I can rebuild other apps except denseoptiocalflow and pyramid.

case 2: compile cmd:
sudo cmake -DCMAKE_BUILD_TYPE=Release -DTRT_VERSION:STRING=6.5.0.7
-DVIBRANTE_PDK:STRING=/home/upower/nvidia/nvidia_sdk/DRIVE_OS_5.2.6_SDK_Linux_OSWithSamples_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux
/usr/local/driveworks-4.0/samples

I got error msg:

– Building GLFW for X11 (static)
– VIBRANTE_PDK_BRANCH = 5.2.6.0
CMake Error at 3rdparty/linux-aarch64/vibrante/vibrante-config.cmake:95 (if):
if given arguments:
“LESS_EQUAL” “5020000”
Unknown arguments specified
Call Stack (most recent call first):
cmake/Samples3rdparty.cmake:14 (find_package)
CMakeLists.txt:58 (include)
– Configuring incomplete, errors occurred!

Question: How to rebuild denseopticalflow sample? Are there any special settings to enable VIBRANTE build?

Thanks

Dear @user121210,
There is no need to do any special settings. Please double check the instructions at DriveWorks SDK Reference: Getting Started and DriveWorks SDK Reference: Installation on NVIDIA DRIVE OS Linux .

I could compile the samples without any issue on my host. Attaching the log(
DW-4.0-cross-compile.txt (30.9 KB))
for reference.

Dear @user121210,
Could you provide any update? Do you still have compilation issue?

Hi Siva,
The problem was solved by deleting output directory and creating a new one.

Thanks

1 Like