# Deepstream custom parsing ,make file error

**URL:** <https://forums.developer.nvidia.com/t/deepstream-custom-parsing-make-file-error/199334>\
**Category:** Compute Sanitizer\
**Tags:** deepstream, tensorrt\
**Created:** [December 31, 2021, 12:22pm UTC](https://forums.developer.nvidia.com/t/deepstream-custom-parsing-make-file-error/199334 "2021-12-31T12:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user54502](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user54502](https://forums.developer.nvidia.com/u/user54502)\
**Post date:** [December 31, 2021, 12:22pm UTC](https://forums.developer.nvidia.com/t/deepstream-custom-parsing-make-file-error/199334/1 "2021-12-31T12:22:47Z")

</div>

Hi i am trying to do custom object detection using deepstream  
CUDA\_VER=10.2  
ifeq ($(CUDA\_VER),)  
$(error “CUDA\_VER is not set”)  
endif  
CC:= g++

CFLAGS:= -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations  
CFLAGS+= -I…/…/includes -I/usr/local/cuda-$(CUDA\_VER)/include **-I/usr/src/tensorrt-8.0.1/include**

LIBS:= -lnvinfer -lnvparsers -L/usr/local/cuda-$(CUDA\_VER)/lib64 -lcudart -lcublas **-L/usr/src/tensorrt-8.0.1/lib**  
LFLAGS:= -Wl,–start-group $(LIBS) -Wl,–end-group

SRCFILES:= nvdsparsebbox\_ssd.cpp nvdsiplugin\_ssd.cpp  
TARGET\_LIB:= libnvdsinfer\_custom\_impl\_ssd.so

all: $(TARGET\_LIB)

$(TARGET\_LIB) : $(SRCFILES)  
$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)

clean:  
rm -rf $(TARGET\_LIB)  
this is the make file i am using for ssd  
i included tensorrt path in the make file but not compiling  
command used:  
make -C nvdsinfer\_custom\_impl\_ssd

outmake: Entering directory ‘/home/dst/Deepstream/opt/nvidia/deepstream/deepstream-6.0/sources/objectDetector\_SSD/nvdsinfer\_custom\_impl\_ssd’  
g++ -o libnvdsinfer\_custom\_impl\_ssd.so nvdsparsebbox\_ssd.cpp nvdsiplugin\_ssd.cpp -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include **-I/usr/src/tensorrt-8.0.1/include** -Wl,–start-group -lnvinfer -lnvparsers -L/usr/local/cuda-10.2/lib64 -lcudart -lcublas **-L/usr/src/tensorrt-8.0.1/lib** -Wl,–end-group  
/bin/sh: 1: cannot open b: No such file  
Makefile:41: recipe for target ‘libnvdsinfer\_custom\_impl\_ssd.so’ failed  
make: \*\*\* [libnvdsinfer\_custom\_impl\_ssd.so] Error 2  
make: Leaving directory ‘/home/dst/Deepstream/opt/nvidia/deepstream/deepstream-6.0/sources/objectDetector\_SSD/nvdsinfer\_custom\_impl\_ssd’  
put:

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![achartiernv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/achartiernv/32/14047_2.png) [@achartiernv](https://forums.developer.nvidia.com/u/achartiernv)\
**Post date:** [January 14, 2022, 10:01pm UTC](https://forums.developer.nvidia.com/t/deepstream-custom-parsing-make-file-error/199334/2 "2022-01-14T22:01:03Z")

</div>

Hello, this forum is dedicated to discussions related to using the sanitizer tools and API.  
Questions related to TensorRT can be raised at [TensorRT - NVIDIA Developer Forums](https://forums.developer.nvidia.com/c/ai-data-science/deep-learning/tensorrt/92)
