# Failed build TensorRT Yolo stand-alone app

**URL:** <https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425>\
**Category:** DeepStream SDK\
**Created:** [August 6, 2019, 9:04am UTC](https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425 "2019-08-06T09:04:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivder](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ivder](https://forums.developer.nvidia.com/u/ivder)\
**Post date:** [August 6, 2019, 9:04am UTC](https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425/1 "2019-08-06T09:04:10Z")

</div>

I have Jetson TX2 with JetPack 3.3, TensorRT 4 and CUDA 9

```auto
dpkg -l | grep tensorrt
ii tensorrt 4.0.2.0-1+cuda9.0 arm64 Meta package of TensorRT

```

Following the tutorial here : [https://github.com/NVIDIA-AI-IOT/deepstream\_reference\_apps/tree/master/yolo](https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/master/yolo) , I got several problems.

**First** , the table on Readme file says that if I only want to use TRT stand alone app, I don’t need deepstream and CUDA 10.  
**jetson-TX1/TX2 trt-yolo-app Not required Jetpack 3.3 (Cuda 9.0, TensorRT 4, OpenCV 3.3)**

But when I build using CMAKE, in CMakeLists.txt line 36 ([https://github.com/NVIDIA-AI-IOT/deepstream\_reference\_apps/blob/master/yolo/apps/trt-yolo/CMakeLists.txt](https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/blob/master/yolo/apps/trt-yolo/CMakeLists.txt)) , you can see that CUDA 10 is required.

```auto
find_package(CUDA 10.0 EXACT REQUIRED cudart cublas curand)

```

Why is CUDA 10 required meanwhile the readme file says CUDA 9 is required?

**Second** , I changed the CMakeLists.txt so it will accept CUDA 9. When I did sudo make install it gave error like this :

```auto
In file included from /home/boulderai/deepstream_reference_apps/yolo/lib/ds_image.h:28:0,
                 from /home/boulderai/deepstream_reference_apps/yolo/lib/calibrator.h:29,
                 from /home/boulderai/deepstream_reference_apps/yolo/lib/calibrator.cpp:26:
/home/boulderai/deepstream_reference_apps/yolo/lib/trt_utils.h:84:22: error: ‘nvinfer1::DimsHW YoloTinyMaxpoolPaddingFormula::compute(nvinfer1::DimsHW, nvinfer1::DimsHW, nvinfer1::DimsHW, nvinfer1::DimsHW, nvinfer1::DimsHW, const char*) const’ marked ‘override’, but does not override
     nvinfer1::DimsHW compute(nvinfer1::DimsHW inputDims, nvinfer1::DimsHW kernelSize,
                      ^
compilation terminated due to -Wfatal-errors.
lib/CMakeFiles/yolo-lib.dir/build.make:69: recipe for target 'lib/CMakeFiles/yolo-lib.dir/calibrator.cpp.o' failed
make[2]: *** [lib/CMakeFiles/yolo-lib.dir/calibrator.cpp.o] Error 1
CMakeFiles/Makefile2:127: recipe for target 'lib/CMakeFiles/yolo-lib.dir/all' failed
make[1]: *** [lib/CMakeFiles/yolo-lib.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

```

As far as I know, this problem is related to either Jetson Xavier or TensorRT 5, then why did I get this problem? Thank you.

---

<div class="post-metadata">

**Author:** ![ivder](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ivder](https://forums.developer.nvidia.com/u/ivder)\
**Post date:** [August 7, 2019, 4:26am UTC](https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425/2 "2019-08-07T04:26:39Z")

</div>

I solved the problem by changing the repository to [https://github.com/NVIDIA-AI-IOT/deepstream\_reference\_apps/releases/tag/DS2](https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/releases/tag/DS2).  
I think it would be good if NVIDIA states to use the release version instead of master version cleary in the Readme file. I wrote the installation steps here [https://gist.github.com/ivder/4d645935d65eb19bf27d99a8afeb33d8](https://gist.github.com/ivder/4d645935d65eb19bf27d99a8afeb33d8) or read the guide from the repo : [https://github.com/NVIDIA-AI-IOT/deepstream\_reference\_apps/tree/DS2](https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/DS2)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [August 7, 2019, 6:19am UTC](https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425/3 "2019-08-07T06:19:23Z")

</div>

Hi,

You can find this information on the README file.

```auto
Platform	Applications	Deepstream Version	Dependancies Repo Release 
jetson-TX1/TX2	trt-yolo-app	Not required Jetpack 3.3 (...)	<b>DS2 Release</b>

```

Thanks.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 4:19pm UTC](https://forums.developer.nvidia.com/t/failed-build-tensorrt-yolo-stand-alone-app/79425/4 "2021-10-12T16:19:22Z")

</div>

Closed on October 12, 2021, 4:19pm UTC


