Missing crt directory in CUDA installation on Jetson

Hello everyone,

I am trying to run the deepstream application on the Jetson AGX Orin dev kit with the latest Jetpack installation:

Ubuntu 22.04
Jetpack 6.0 DP
CUDA 12.2

During compilation on the Jetson I get the following error:

In file included from ../../apps-common/src/deepstream_sink_bin.c:33:
/usr/local/cuda-12.2/include/cuda_runtime_api.h:148:10: fatal error: crt/host_defines.h: No such file or directory
  148 | #include "crt/host_defines.h"

This seems to be an error that is not uncommon from what I see searching this forum. However, most topics are left unanswered so I am trying my luck again.

This solution is not working as the crt directory is nowhere to be found on the jetson installation.

Any chances someone can help me out here?

Thanks!

As I eventually found the culprit of this error, let me add the solution here in case anyone else runs into the same issue in the future.

Basically the problem arises from an incomplete Jetpack installation. Not sure how or why this happened but from what I found it is not that uncommon.

In any case, reinstalling Jetpack solved the issue:

$ sudo apt update
$ sudo apt install nvidia-jetpack

Thanks

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