Cross compile questions

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
[yes] 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

Target Operating System
[yes] Linux

Hardware Platform
[yes] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
[yes] native Ubuntu 18.04

When i cross compile exec by cmake, i get following erros:
skiooing incompatible /usr/lib/gcc/x86_64-linux-gnu/7/ when searching for -lstdc++

In my cmake, i set comiple with aarch64, so why it still search lib in x86?

Dear @wang_chen2,
Could you confirm what you are trying to cross compile for target? Is it DW/TRT/
NvMedia/CUDA samples?

Hi, @ SivaRamaKrishnaNV,
I am trying to code my own demo which now just some c++ and cuda process and run it on Xavier.

Dear @wang_chen2,
If you are using C++, CUDA APIs in your application, Could you check any CUDA sample as a reference. You may include your application as a CUDA sample and check compiling quickly. Does this work for you?

Dear @wang_chen2,
Could you provide some update on this issue?

I had compiled successfully. Thank u very much.