Driveworks 1.2 Samples Compilation Error

Hello,

My group is attempting to cross-compile the Driveworks samples provided in 1.2, but are getting an error about constraint graphs from cmake. I don’t fully understand this error and was not there at the time they were working on the cross-compilation but they sent me a screenshot of the error. I’m attaching it here in hopes to get some help in resolving this issue to get the samples compiling for us. Thanks!

Dear bjsmyth,

Could you please help to check the following? Thanks.

  1. Host System Prerequisites part in DriveWorks doc.
  2. CUDA environment set up in bashrc.
  • export PATH=/usr/local/cuda-9.2/bin/:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH

Hi Steve,

I checked the bashrc and saw the PATH and LD_LIBRARY_PATH were set to cuda-9.0. I updated them to 9.2 and that resolved the issue. Thanks!

Hi Steve,

I get the exact same errors. Unfortunately, this solution did not work for me.

- required libs installed:
reway@hil-003:~$ sudo apt-get install libx11-dev libxrandr-dev libxcursor-dev libxxf86vm-dev libxinerama-dev libxi-dev libglu1-mesa-dev libglew-dev
[sudo] password for reway:
Reading package lists… Done
Building dependency tree
Reading state information… Done
libglew-dev is already the newest version (1.13.0-2).
libglu1-mesa-dev is already the newest version (9.0.0-2.1).
libxi-dev is already the newest version (2:1.7.6-1).
libxinerama-dev is already the newest version (2:1.1.3-1).
libxrandr-dev is already the newest version (2:1.5.0-1).
libxxf86vm-dev is already the newest version (1:1.1.4-1).
libx11-dev is already the newest version (2:1.6.3-1ubuntu2.1).
libxcursor-dev is already the newest version (1:1.1.14-1ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
reway@hil-003:~$

- cuda cross compilation libs installed:
reway@hil-003:~$ sudo apt-get install cuda-cross-aarch64-9-2
Reading package lists… Done
Building dependency tree
Reading state information… Done
cuda-cross-aarch64-9-2 is already the newest version (9.2.88-1).
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
reway@hil-003:~$

- nvidia driver 396 (GeFoce GTX 745:
reway@hil-003:~$ nvidia-smi
Thu Oct 18 14:40:51 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 396.54 Driver Version: 396.54 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 745 Off | 00000000:01:00.0 Off | N/A |
| 21% 49C P0 N/A / N/A | 353MiB / 4043MiB | 8% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1053 G /usr/lib/xorg/Xorg 285MiB |
| 0 1892 G compiz 62MiB |
| 0 3542 G /usr/lib/firefox/firefox 1MiB |
±----------------------------------------------------------------------------+
reway@hil-003:~$

- paths set:
reway@hil-003:~$ echo $PATH
/usr/local/cuda-9.2/bin/:/home/reway/bin:/home/reway/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
reway@hil-003:~$
reway@hil-003:~$ echo $LD_LIBRARY_PATH
/usr/local/cuda/targets/aarch64-linux/lib:
reway@hil-003:~$

Any other idea what could it be causing this error?

Hi Steve,

I get the exact same errors.

my bashrc is
export PATH=/usr/local/cuda-9.2/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH

But the solution is not.

However, it is work well when i execute make command by ignoring the above error.

The executable also works.
Is this an error i can ignore?

We are having the same issue. Is there any update?

Dear philipj1fff,

Please refer below link for your topic. Thanks.
https://devtalk.nvidia.com/default/topic/1044026/driveworks/cross-compile-failure/