Fatal error: crt/host_defines.h: No such file or directory

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson AGX Orin 64G
• DeepStream Version 7.0
• JetPack Version (valid for Jetson only) 6.0+b106
• TensorRT Version
Cuda 12.2
After setup my Orin using SDKManager from host PC, tested deepstream-test1.
At make, I have this error.

cc -c -o deepstream_test1_app.o -DPLATFORM_TEGRA -I../../../includes -I /usr/local/cuda-12.2/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/aarch64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include deepstream_test1_app.c
In file included from deepstream_test1_app.c:16:
/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"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:53: deepstream_test1_app.o] Error 1

How can i solve?

Is /usr/local/cuda-12.2/targets/aarch64-linux/include/crt/host_defines.h exists ?

If not, I think CUDA is not installed correctly.Please check the sdkmanager log if there are some errors. Or try reburn JP-6.0

Is cuda-12.2 correct version for Orin?

Yes, DS-7.0 is compatible with CUDA-12.2.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Installation.html#id9

I have no crt.
Can I install only crt?

I don’t know how to do it, it may cause other unknown problems

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