Cross Compiling

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
[y] NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[y] Linux
QNX
other

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

SDK Manager Version
[y] 1.7.0.8846
other

Host Machine Version
[y] native Ubuntu 18.04
other

So I am trying to do cross compiling of dw samples using the tutorial here:
https://docs.nvidia.com/drive/driveworks-3.5/dwx_samples_building_V5L.html

But I am getting an error as:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:16 (project):
  The CMAKE_C_COMPILER:

    /../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:16 (project):
  The CMAKE_CXX_COMPILER:

    /../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

The command I used was:

ai@ai-PC:~/nvidia/dw_samples/build-agx$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-2.2/samples/cmake/Toolchain-V5L.cmake -DCVIBRANTE_PDK:STRING=/home/ai/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux .. -DTRT_VERSION:STRING=6.3.1.3 /usr/local/driveworks-2.2/samples/src

this thread talks about the same problem:

But I tried re-flashing using nvidia SDK manager, but to no avail, any help will be appreciated. Thanks.

I am fairly new to NVIDIA, Drive and making these topic threads, if I should have created this thread somewhere else, feel free to let me know I will delete/close it and re-ask somewhere else.

Hi, @praveen.p.kumar
Was it due to the typo? Could you compare the command provided in the other topic you pointed out?

1 Like

Yes, I am so sorry!!! i will be very careful next time. Thank you.
There is another error though, perhaps I should start another thread for it, or can we address it here?:

Error below:

CMake Error at cmake/ResourcesConfiguration.cmake:35 (message):
  Combination of TRT version 6.3.1.3 and PDK version 5.1.6.1 not supported
Call Stack (most recent call first):
  CMakeLists.txt:30 (include)

how can I check which version of TRT is supported for which version of PDK?

It looks you’re using DRIVE Software 10 which has DriveWorks 2.2. For the cross-compiling command, you should refer to /usr/local/driveworks-2.2/doc/nvsdk_html/dwx_samples_building_V5L.html document on your host system (installed along with DRIVE Software 10 by SDK Manager).
It will be similar to the one in the other topic (also based on DRIVE Software 10).

1 Like

Got it compiled, thanks much!

Good to hear you solved the problem.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.