You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardware: Device, CPU, GPU, etc.
i5 10th gen
rtx 3070
cuda 11.1
Software: OS, Compiler, etc.
ubuntu 20.04
gcc 9.4.0
g++ 9.4.0
Project Name
pj_tensorrt_det_yolov7
Issue Details
building the pj_tensorrt_det_yolov7 has error, i just did what is said on the instructions
cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
[main] CMAKE_SYSTEM_PROCESSOR = x86_64, BUILD_SYSTEM = x64_linux
-- No build type selected, default to Release
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-11.1 (found suitable exact version "11.1")
-- Found OpenCV: /usr/local (found version "4.5.2")
-- Found CUDA: /usr/local/cuda-11.1 (found version "11.1")
CUDA_INCLUDE_DIRS: /usr/local/cuda-11.1/include
-- Found CUDA: /usr/local/cuda-11.1 (found suitable exact version "11.1")
-- Configuring done
-- Generating done
make
Scanning dependencies of target InferenceHelper
Scanning dependencies of target CommonHelper
[ 14%] Building CXX object image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/inference_helper_tensorrt.cpp.o
[ 14%] Building CXX object image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/inference_helper.cpp.o
[ 21%] Building CXX object image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/tensorrt/logger.cpp.o
[ 28%] Building CXX object image_processor/common_helper/CMakeFiles/CommonHelper.dir/common_helper.cpp.o
[ 35%] Building CXX object image_processor/common_helper/CMakeFiles/CommonHelper.dir/bounding_box.cpp.o
[ 42%] Building CXX object image_processor/common_helper/CMakeFiles/CommonHelper.dir/tracker.cpp.o
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp: In member function ‘virtual int32_t InferenceHelperTensorRt::Initialize(const string&, std::vector&, std::vector&)’:
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:178:69: error: ‘class nvinfer1::IBuilder’ has no member named ‘buildSerializedNetwork’
178 | auto plan = std::unique_ptrnvinfer1::IHostMemory(builder->buildSerializedNetwork(network, config));
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:32:
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/tensorrt/common.h: In instantiation of ‘void samplesCommon::InferDeleter::operator()(T) const [with T = nvinfer1::IBuilder]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::IBuilder; _Dp = samplesCommon::InferDeleter]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/tensorrt/common.h:962:116: required from here
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/tensorrt/common.h:387:9: error: ‘virtual nvinfer1::IBuilder::~IBuilder()’ is protected within this context
387 | delete obj;
| ^~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInfer.h:7261:13: note: declared protected here
7261 | virtual ~IBuilder()
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp) const [with _Tp = nvinfer1::IRuntime]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::IRuntime; _Dp = std::default_deletenvinfer1::IRuntime]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.h:35:7: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::IRuntime::~IRuntime()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:801:13: note: declared protected here
801 | virtual ~IRuntime() {}
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvinfer1::ICudaEngine]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::ICudaEngine; _Dp = std::default_deletenvinfer1::ICudaEngine]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.h:35:7: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::ICudaEngine::~ICudaEngine()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:1358:13: note: declared protected here
1358 | virtual ~ICudaEngine() {}
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvinfer1::IExecutionContext]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::IExecutionContext; _Dp = std::default_deletenvinfer1::IExecutionContext]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.h:35:7: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::IExecutionContext::~IExecutionContext()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:1693:13: note: declared protected here
1693 | virtual ~IExecutionContext() noexcept {}
| ^
[ 50%] Building CXX object image_processor/common_helper/CMakeFiles/CommonHelper.dir/common_helper_cv.cpp.o
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvinfer1::IBuilder]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::IBuilder; _Dp = std::default_deletenvinfer1::IBuilder]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:142:120: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::IBuilder::~IBuilder()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInfer.h:7261:13: note: declared protected here
7261 | virtual ~IBuilder()
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvinfer1::INetworkDefinition]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::INetworkDefinition; _Dp = std::default_deletenvinfer1::INetworkDefinition]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:144:109: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::INetworkDefinition::~INetworkDefinition()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInfer.h:5434:13: note: declared protected here
5434 | virtual ~INetworkDefinition() {}
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvinfer1::IBuilderConfig]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvinfer1::IBuilderConfig; _Dp = std::default_deletenvinfer1::IBuilderConfig]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:145:95: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvinfer1::IBuilderConfig::~IBuilderConfig()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:30:
/usr/include/x86_64-linux-gnu/NvInfer.h:6756:13: note: declared protected here
6756 | virtual ~IBuilderConfig() {}
| ^
In file included from /usr/include/c++/9/memory:80,
from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:26:
/usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = nvonnxparser::IParser]’:
/usr/include/c++/9/bits/unique_ptr.h:292:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = nvonnxparser::IParser; _Dp = std::default_deletenvonnxparser::IParser]’
/SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:147:130: required from here
/usr/include/c++/9/bits/unique_ptr.h:81:2: error: ‘virtual nvonnxparser::IParser::~IParser()’ is protected within this context
81 | delete __ptr;
| ^~~~~~
In file included from /SSD2/Python/play_with_tensorrt/InferenceHelper/inference_helper/inference_helper_tensorrt.cpp:31:
/usr/include/x86_64-linux-gnu/NvOnnxParser.h:232:13: note: declared protected here
232 | virtual ~IParser() {}
| ^
make[2]: *** [image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/build.make:76: image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/inference_helper_tensorrt.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:221: image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Linking CXX static library libCommonHelper.a
[ 57%] Built target CommonHelper
make: *** [Makefile:84: all] Error 2
The text was updated successfully, but these errors were encountered:
AKOBIBILI
changed the title
what GCC and G++
what GCC and G++ is needed to compile?
Oct 1, 2023
AKOBIBILI
changed the title
what GCC and G++ is needed to compile?
what GCC and G++ versions is needed to compile?
Oct 1, 2023
Environment (Hardware)
Hardware: Device, CPU, GPU, etc.
i5 10th gen
rtx 3070
cuda 11.1
Software: OS, Compiler, etc.
ubuntu 20.04
gcc 9.4.0
g++ 9.4.0
Project Name
pj_tensorrt_det_yolov7
Issue Details
building the pj_tensorrt_det_yolov7 has error, i just did what is said on the instructions
cmake ..
make
The text was updated successfully, but these errors were encountered: