Installation of tensorrt package removes file NvCaffeParser.h

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Orin AGX
• DeepStream Version None
• JetPack Version (valid for Jetson only) 5.1.1
• Issue Type( questions, new requirements, bugs) BUG
**• How to reproduce the issue ?

Build docker from dockerfile:

FROM nvcr.io/nvidia/deepstream:7.0-triton-multiarch

RUN apt install -y tensorrt
RUN cd /opt/nvidia/deepstream/deepstream/sources && \
git clone https://github.com/marcoslucianops/DeepStream-Yolo.git && \
cd DeepStream-Yolo/nvdsinfer_custom_impl_Yolo && \
export CUDA_VER=$(ls /usr/local | grep cuda- | tail -n 1| sed 's/cuda-//g') && \
echo "🟢 Found CUDA  version: $CUDA_VER (dir /usr/local/`ls /usr/local | grep cuda- | tail -n 1`)" && \
make

You will get error:

Cloning into 'DeepStream-Yolo'...
🟢 Found CUDA  version: 12.2 (dir /usr/local/cuda-12.2)
g++ -c  -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-12.2/include nvdsinfer_yolo_engine.cpp
In file included from nvdsinfer_yolo_engine.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer_custom_impl.h:127:10: fatal error: NvCaffeParser.h: No such file or directory
  127 | #include "NvCaffeParser.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:81: nvdsinfer_yolo_engine.o] Error 1

But dockerfile:

FROM nvcr.io/nvidia/deepstream:7.0-triton-multiarch

RUN cd /opt/nvidia/deepstream/deepstream/sources && \
git clone https://github.com/marcoslucianops/DeepStream-Yolo.git && \
cd DeepStream-Yolo/nvdsinfer_custom_impl_Yolo && \
export CUDA_VER=$(ls /usr/local | grep cuda- | tail -n 1| sed 's/cuda-//g') && \
echo "🟢 Found CUDA  version: $CUDA_VER (dir /usr/local/`ls /usr/local | grep cuda- | tail -n 1`)" && \
make

Builds without any problem

This is normal. On 22.04 the command above means to install tensorrt-10, which is not compatible with DS-7.0.

I see now, this docker has already installed tensorrt 8.x

dpkg -l | grep TensorRT
I don’t need to install it manually

Thanks