Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘class nvinfer1::IBuilder’ has no member named ‘getLogger’ nvinfer1::IRuntime* runtime = nvinfer1::createInferRuntime(*builder->getLogger()); #584

Open
Steven8686 opened this issue Nov 11, 2024 · 1 comment

Comments

@Steven8686
Copy link

Hi there!
When I am following your guidance of deploying YOLOV5s model, when I run

make -C nvdsinfer_custom_impl_Yolo clean && make -C nvdsinfer_custom_impl_Yolo

It gives the error

make: Entering directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
rm -rf libnvdsinfer_custom_impl_Yolo.so
rm -rf utils.o yolo.o nvdsinfer_yolo_engine.o nvdsparsebbox_Yolo.o yoloPlugins.o layers/convolutional_layer.o layers/batchnorm_layer.o layers/shortcut_layer.o layers/slice_layer.o layers/pooling_layer.o layers/reorg_layer.o layers/activation_layer.o layers/channels_layer.o layers/sam_layer.o layers/deconvolutional_layer.o layers/route_layer.o layers/upsample_layer.o layers/implicit_layer.o yoloForward_v2.o yoloForward.o yoloForward_nc.o nvdsparsebbox_Yolo_cuda.o
make: Leaving directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
make: Entering directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
g++ -c  -o utils.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-10.2/include utils.cpp
g++ -c  -o yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-10.2/include yolo.cpp
yolo.cpp: In member function ‘nvinfer1::ICudaEngine* Yolo::createEngine(nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*)’:
yolo.cpp:196:72: error: ‘class nvinfer1::IBuilder’ has no member named ‘getLogger’
   nvinfer1::IRuntime* runtime = nvinfer1::createInferRuntime(*builder->getLogger());
                                                                        ^~~~~~~~~
Makefile:86: recipe for target 'yolo.o' failed
make: *** [yolo.o] Error 1
make: Leaving directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'

My platform and env:
Jetson 4.6, Ubuntu==16.04, CUDA==10.2, Deepstream==6.0.1 Tensorrt==8.0.1
And I am using your latest repo.
How can I solve that problem?
Thanks

@marcoslucianops
Copy link
Owner

I updated the repo with a fix, please check now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants