Path to toolchain for cross compilation on drive orin

Hi team,
I am working on drive Orin. I have installed driveworks sdk on host by docker.My question is we cross compile the samples on host and execute its binary file on target which is drive orin, but what if I transfer the main.cpp and CMakeLists.txt file on target, compile the file on target itself and directly run it on target. Is it possible?

Dear @akshay.tupkar,
On target compilation of Driveworks, NvMedia is not supported. You can compile TensorRT and CUDA on target.

Dear @SivaRamaKrishnaNV
Okay so none of the driveworks samples can be compiled on target. We need to compile it on host itself and execute on target.
Is there any particular reason for being not supported on target?

Dear @akshay.tupkar,
We expect the development to happen on host and cross compile the application to deploy on the target.