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
但是对于3rdparty/tensorrtbuffer的编译依然遇到了下面的报错信息
`[ 1%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/logger.cpp.o
[ 3%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/sample_options.cpp.o
[ 5%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/sample_utils.cpp.o
[ 19%] Built target DBoW2
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:19:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h: In member function ‘virtual void TensorRTErrorRecorder::clear()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:78:13: error: ‘tensorrt_log’ has not been declared
78 | tensorrt_log::gLogFatal << "Internal Error: " << e.what() << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h: In member function ‘virtual bool TensorRTErrorRecorder::reportError(nvinfer1::ErrorCode, nvinfer1::IErrorRecorder::ErrorDesc)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:93:13: error: ‘tensorrt_log’ has not been declared
93 | tensorrt_log::gLogError << "Error[" << static_cast<int32_t>(val) << "]: " << desc << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:98:13: error: ‘tensorrt_log’ has not been declared
98 | tensorrt_log::gLogFatal << "Internal Error: " << e.what() << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:22:23: error: conflicting declaration ‘TensorRTErrorRecorder gRecorder’
22 | TensorRTErrorRecorder gRecorder;
| ^~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:18:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:24:28: note: previous declaration as ‘SampleErrorRecorder gRecorder’
24 | extern SampleErrorRecorder gRecorder;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:25:5: error: ‘Logger’ does not name a type; did you mean ‘getLogger’?
25 | Logger gLogger{Logger::Severity::kINFO};
| ^~~~~~
| getLogger
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:26:5: error: ‘LogStreamConsumer’ does not name a type
26 | LogStreamConsumer gLogVerbose{LOG_VERBOSE(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:27:5: error: ‘LogStreamConsumer’ does not name a type
27 | LogStreamConsumer gLogInfo{LOG_INFO(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:28:5: error: ‘LogStreamConsumer’ does not name a type
28 | LogStreamConsumer gLogWarning{LOG_WARN(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:29:5: error: ‘LogStreamConsumer’ does not name a type
29 | LogStreamConsumer gLogError{LOG_ERROR(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:30:5: error: ‘LogStreamConsumer’ does not name a type
30 | LogStreamConsumer gLogFatal{LOG_FATAL(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:32:32: error: variable or field ‘setReportableSeverity’ declared void
32 | void setReportableSeverity(Logger::Severity severity)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:32:32: error: ‘Logger’ has not been declared
make[2]: *** [AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/build.make:76:AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/logger.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:62,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:35,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h: In member function ‘void tensorrt_buffer::TrtCudaGraphSafe::endCaptureOnError(CUstream_st*&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h:182:13: error: ‘tensorrt_log’ has not been declared
182 | tensorrt_log::gLogError << "The CUDA graph capture on the stream has failed." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h: In function ‘void tensorrt_buffer::safeLoadLibrary(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h:203:13: error: ‘tensorrt_log’ has not been declared
203 | tensorrt_log::gLogError << "Could not load plugin library: " << path << ", due to: " << dlerror() << std::endl;
| ^~~~~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:35,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘int32_t tensorrt_buffer::calculateSoftmax(float*, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::setAllDynamicRanges(nvinfer1::INetworkDefinition*, float, float)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::setDummyInt8DynamicRanges(const nvinfer1::IBuilderConfig*, nvinfer1::INetworkDefinition*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:586:13: error: ‘tensorrt_log’ has not been declared
586 | tensorrt_log::gLogWarning << "Int8 calibrator not provided. Generating dummy per-tensor dynamic range. Int8 accuracy "
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘int64_t tensorrt_buffer::volume(const Dims&, int32_t, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In destructor ‘tensorrt_buffer::DynamicLibrary::~DynamicLibrary()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:968:17: error: ‘tensorrt_log’ has not been declared
968 | tensorrt_log::gLogError << "Unable to close library: " << mLibName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In constructor ‘tensorrt_buffer::FileLock::FileLock(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1067:13: error: ‘tensorrt_log’ has not been declared
1067 | tensorrt_log::gLogVerbose << "Trying to set exclusive file lock " << lockFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1077:13: error: ‘tensorrt_log’ has not been declared
1077 | tensorrt_log::gLogVerbose << "File locked in " << time << " seconds." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In destructor ‘tensorrt_buffer::FileLock::~FileLock()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1101:17: error: ‘tensorrt_log’ has not been declared
1101 | tensorrt_log::gLogVerbose << "Trying to remove exclusive file lock " << lockFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1106:21: error: ‘tensorrt_log’ has not been declared
1106 | tensorrt_log::gLogVerbose << "Failed to unlock " << lockFileName << "!" << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1114:21: error: ‘tensorrt_log’ has not been declared
1114 | tensorrt_log::gLogVerbose << "File unlocked in " << time << " seconds." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘std::vector tensorrt_buffer::loadTimingCacheFile(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1140:13: error: ‘tensorrt_log’ has not been declared
1140 | tensorrt_log::gLogWarning << "Could not read timing cache from: " << inFileName
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1150:9: error: ‘tensorrt_log’ has not been declared
1150 | tensorrt_log::gLogInfo << "Loaded " << fsize << " bytes of timing cache from " << inFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::saveTimingCacheFile(const string&, const nvinfer1::IHostMemory*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1160:13: error: ‘tensorrt_log’ has not been declared
1160 | tensorrt_log::gLogWarning << "Could not write timing cache to: " << outFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1165:9: error: ‘tensorrt_log’ has not been declared
1165 | tensorrt_log::gLogInfo << "Saved " << blob->size() << " bytes of timing cache to " << outFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::updateTimingCacheFile(const string&, const nvinfer1::ITimingCache*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1186:13: error: ‘tensorrt_log’ has not been declared
1186 | tensorrt_log::gLogInfo << "Loaded " << fsize << " bytes of timing cache from " << fileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1202:13: error: ‘tensorrt_log’ has not been declared
1202 | tensorrt_log::gLogWarning << "Could not write timing cache to: " << fileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1207:9: error: ‘tensorrt_log’ has not been declared
1207 | tensorrt_log::gLogInfo << "Saved " << blob->size() << " bytes of timing cache to " << fileName << std::endl;
| ^~~~~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:41: error: ‘IOFormat’ was not declared in this scope; did you mean ‘sample::IOFormat’?
79 | bool broadcastIOFormats(std::vector const& formats, size_t nbBindings, bool isInput = true);
| ^~~~~~~~
| sample::IOFormat
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:132:7: note: ‘sample::IOFormat’ declared here
132 | using IOFormat = std::pair<nvinfer1::DataType, nvinfer1::TensorFormats>;
| ^~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:49: error: template argument 1 is invalid
79 | bool broadcastIOFormats(std::vector const& formats, size_t nbBindings, bool isInput = true);
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:49: error: template argument 2 is invalid
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:136:9: error: ‘IOFormat’ does not name a type
136 | IOFormat stringToValue(const std::string& option)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:153:9: error: ‘SparsityFlag’ does not name a type
153 | SparsityFlag stringToValue(std::string const& option)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:30: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:41: error: ‘arguments’ was not declared in this scope
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:52: error: expected primary-expression before ‘const’
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:80: error: expected primary-expression before ‘&’ token
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:82: error: ‘value’ was not declared in this scope; did you mean ‘volume’?
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~
| volume
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:87: error: expression list treated as compound expression in initializer [-fpermissive]
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:88: error: expected ‘;’ before ‘{’ token
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
| ;
243 | {
| ~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:44: error: ‘arguments’ was not declared in this scope
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:55: error: expected primary-expression before ‘const’
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:82: error: expected primary-expression before ‘bool’
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:93: error: expression list treated as compound expression in initializer [-fpermissive]
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:38: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:49: error: ‘arguments’ was not declared in this scope
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:60: error: expected primary-expression before ‘const’
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:101: error: expected primary-expression before ‘&’ token
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:103: error: ‘values’ was not declared in this scope
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:109: error: expression list treated as compound expression in initializer [-fpermissive]
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:110: error: expected ‘;’ before ‘{’ token
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
| ;
274 | {
| ~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:32: error: variable or field ‘insertShapesBuild’ declared void
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:32: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:60: error: ‘shapes’ was not declared in this scope
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:97: error: expected primary-expression before ‘selector’
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:290:32: error: expected primary-expression before ‘const’
290 | const std::string& name, const std::vector<int32_t>& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:290:57: error: expected primary-expression before ‘const’
290 | const std::string& name, const std::vector<int32_t>& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:17: error: variable or field ‘insertShapesInference’ declared void
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:17: error: ‘InferenceOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:49: error: ‘shapes’ was not declared in this scope
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:69: error: expected primary-expression before ‘const’
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:103: error: expected primary-expression before ‘const’
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:33: error: variable or field ‘getLayerPrecisions’ declared void
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:44: error: ‘arguments’ was not declared in this scope
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:55: error: expected primary-expression before ‘char’
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:77: error: ‘LayerPrecisions’ was not declared in this scope; did you mean ‘sample::LayerPrecisions’?
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~~~~~~~
| sample::LayerPrecisions
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:136:7: note: ‘sample::LayerPrecisions’ declared here
136 | using LayerPrecisions = std::unordered_map<std::string, nvinfer1::DataType>;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:94: error: ‘layerPrecisions’ was not declared in this scope
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:34: error: variable or field ‘getLayerOutputTypes’ declared void
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:34: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:45: error: ‘arguments’ was not declared in this scope
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:56: error: expected primary-expression before ‘char’
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:78: error: ‘LayerOutputTypes’ was not declared in this scope; did you mean ‘sample::LayerOutputTypes’?
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~~~~~~~~
| sample::LayerOutputTypes
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:137:7: note: ‘sample::LayerOutputTypes’ declared here
137 | using LayerOutputTypes = std::unordered_map<std::string, std::vectornvinfer1::DataType>;
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:96: error: ‘layerOutputTypes’ was not declared in this scope
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:34: error: variable or field ‘getLayerDeviceTypes’ declared void
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:34: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:45: error: ‘arguments’ was not declared in this scope
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:56: error: expected primary-expression before ‘char’
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:78: error: ‘LayerDeviceTypes’ was not declared in this scope; did you mean ‘sample::LayerDeviceTypes’?
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~~~~~~~~
| sample::LayerDeviceTypes
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:138:7: note: ‘sample::LayerDeviceTypes’ declared here
138 | using LayerDeviceTypes = std::unordered_map<std::string, nvinfer1::DeviceType>;
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:96: error: ‘layerDeviceTypes’ was not declared in this scope
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:29: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:40: error: ‘arguments’ was not declared in this scope
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:51: error: ‘BuildOptions’ has not been declared
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:79: error: ‘shapes’ was not declared in this scope
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:87: error: expected primary-expression before ‘char’
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:372:58: error: expected primary-expression before ‘selector’
372 | nvinfer1::OptProfileSelector selector)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:372:66: error: expression list treated as compound expression in initializer [-fpermissive]
372 | nvinfer1::OptProfileSelector selector)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:44: error: ‘arguments’ was not declared in this scope
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:55: error: ‘InferenceOptions’ has not been declared
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:87: error: ‘shapes’ was not declared in this scope
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:95: error: expected primary-expression before ‘const’
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:115: error: expression list treated as compound expression in initializer [-fpermissive]
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:25: error: variable or field ‘fillShapes’ declared void
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:25: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:53: error: ‘shapes’ was not declared in this scope
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:73: error: expected primary-expression before ‘const’
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:86: error: ‘ShapeRange’ was not declared in this scope; did you mean ‘sample::ShapeRange’?
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~~~~~
| sample::ShapeRange
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:134:7: note: ‘sample::ShapeRange’ declared here
134 | using ShapeRange = std::array<std::vector<int32_t>, nvinfer1::EnumMaxnvinfer1::OptProfileSelector()>;
| ^~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:403:54: error: expected primary-expression before ‘minDimsSource’
403 | nvinfer1::OptProfileSelector minDimsSource, nvinfer1::OptProfileSelector optDimsSource,
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:403:98: error: expected primary-expression before ‘optDimsSource’
403 | nvinfer1::OptProfileSelector minDimsSource, nvinfer1::OptProfileSelector optDimsSource,
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:404:54: error: expected primary-expression before ‘maxDimsSource’
404 | nvinfer1::OptProfileSelector maxDimsSource)
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:28: error: variable or field ‘processShapes’ declared void
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:28: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:56: error: ‘shapes’ was not declared in this scope
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:64: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:80: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:96: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:112: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printBatch(std::ostream&, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:515:29: error: ‘maxBatchNotProvided’ was not declared in this scope; did you mean ‘sample::maxBatchNotProvided’?
515 | if (maxBatch != maxBatchNotProvided)
| ^~~~~~~~~~~~~~~~~~~
| sample::maxBatchNotProvided
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:36:19: note: ‘sample::maxBatchNotProvided’ declared here
36 | constexpr int32_t maxBatchNotProvided{0};
| ^~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:555:56: error: ‘BuildOptions’ has not been declared
555 | std::ostream& printPrecision(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printPrecision(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:558:25: error: request for member ‘fp16’ in ‘options’, which is of non-class type ‘const int’
558 | if (options.fp16)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:562:25: error: request for member ‘int8’ in ‘options’, which is of non-class type ‘const int’
562 | if (options.int8)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:566:25: error: request for member ‘fp8’ in ‘options’, which is of non-class type ‘const int’
566 | if (options.fp8)
| ^~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:570:25: error: request for member ‘precisionConstraints’ in ‘options’, which is of non-class type ‘const int’
570 | if (options.precisionConstraints == PrecisionConstraints::kOBEY)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:570:49: error: ‘PrecisionConstraints’ has not been declared
570 | if (options.precisionConstraints == PrecisionConstraints::kOBEY)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:574:25: error: request for member ‘precisionConstraints’ in ‘options’, which is of non-class type ‘const int’
574 | if (options.precisionConstraints == PrecisionConstraints::kPREFER)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:574:49: error: ‘PrecisionConstraints’ has not been declared
574 | if (options.precisionConstraints == PrecisionConstraints::kPREFER)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:595:58: error: ‘TimingCacheMode’ has not been declared
595 | std::ostream& printTimingCache(std::ostream& os, TimingCacheMode const& timingCacheMode)
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printTimingCache(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:599:22: error: ‘TimingCacheMode’ has not been declared
599 | case TimingCacheMode::kGLOBAL: os << "global"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:600:22: error: ‘TimingCacheMode’ has not been declared
600 | case TimingCacheMode::kLOCAL: os << "local"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:601:22: error: ‘TimingCacheMode’ has not been declared
601 | case TimingCacheMode::kDISABLE: os << "disable"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:606:55: error: ‘BuildOptions’ has not been declared
606 | std::ostream& printSparsity(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printSparsity(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:608:29: error: request for member ‘sparsity’ in ‘options’, which is of non-class type ‘const int’
608 | switch (options.sparsity)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:610:22: error: ‘SparsityFlag’ has not been declared
610 | case SparsityFlag::kDISABLE: os << "Disabled"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:611:22: error: ‘SparsityFlag’ has not been declared
611 | case SparsityFlag::kENABLE: os << "Enabled"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:612:22: error: ‘SparsityFlag’ has not been declared
612 | case SparsityFlag::kFORCE: os << "Forced"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:618:58: error: ‘BuildOptions’ has not been declared
618 | std::ostream& printMemoryPools(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printMemoryPools(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:631:41: error: request for member ‘workspace’ in ‘options’, which is of non-class type ‘const int’
631 | printValueOrDefault(options.workspace);
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:634:41: error: request for member ‘dlaSRAM’ in ‘options’, which is of non-class type ‘const int’
634 | printValueOrDefault(options.dlaSRAM);
| ^~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:637:41: error: request for member ‘dlaLocalDRAM’ in ‘options’, which is of non-class type ‘const int’
637 | printValueOrDefault(options.dlaLocalDRAM);
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:640:41: error: request for member ‘dlaGlobalDRAM’ in ‘options’, which is of non-class type ‘const int’
640 | printValueOrDefault(options.dlaGlobalDRAM);
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:657:59: error: ‘BuildOptions’ has not been declared
657 | std::ostream& printPreviewFlags(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printPreviewFlags(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:659:25: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
659 | if (options.previewFeatures.empty())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In lambda function:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:667:29: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
667 | if (options.previewFeatures.find(featVal) != options.previewFeatures.end())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:667:70: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
667 | if (options.previewFeatures.find(featVal) != options.previewFeatures.end())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:669:68: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
669 | os << previewFeatureToString(feat) << (options.previewFeatures.at(featVal) ? " [ON], " : " [OFF], ");
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:682:5: error: ‘Arguments’ does not name a type
您好,我在catkin_make的过程中遇到了问题。从报错信息我认为可能是TensorRT的问题,我的TensorRT为8.6.1.6,并在CmakeList.txt设置了TensorRT文件的路径。
include_directories(/home/csw/downloads/TensorRT-8.6.1.6/include) link_directories(/home/csw/downloads/TensorRT-8.6.1.6/lib)
但是对于3rdparty/tensorrtbuffer的编译依然遇到了下面的报错信息
`[ 1%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/logger.cpp.o
[ 3%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/sample_options.cpp.o
[ 5%] Building CXX object AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/sample_utils.cpp.o
[ 19%] Built target DBoW2
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:19:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h: In member function ‘virtual void TensorRTErrorRecorder::clear()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:78:13: error: ‘tensorrt_log’ has not been declared
78 | tensorrt_log::gLogFatal << "Internal Error: " << e.what() << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h: In member function ‘virtual bool TensorRTErrorRecorder::reportError(nvinfer1::ErrorCode, nvinfer1::IErrorRecorder::ErrorDesc)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:93:13: error: ‘tensorrt_log’ has not been declared
93 | tensorrt_log::gLogError << "Error[" << static_cast<int32_t>(val) << "]: " << desc << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/error_recorder.h:98:13: error: ‘tensorrt_log’ has not been declared
98 | tensorrt_log::gLogFatal << "Internal Error: " << e.what() << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:22:23: error: conflicting declaration ‘TensorRTErrorRecorder gRecorder’
22 | TensorRTErrorRecorder gRecorder;
| ^~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:18:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:24:28: note: previous declaration as ‘SampleErrorRecorder gRecorder’
24 | extern SampleErrorRecorder gRecorder;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:25:5: error: ‘Logger’ does not name a type; did you mean ‘getLogger’?
25 | Logger gLogger{Logger::Severity::kINFO};
| ^~~~~~
| getLogger
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:26:5: error: ‘LogStreamConsumer’ does not name a type
26 | LogStreamConsumer gLogVerbose{LOG_VERBOSE(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:27:5: error: ‘LogStreamConsumer’ does not name a type
27 | LogStreamConsumer gLogInfo{LOG_INFO(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:28:5: error: ‘LogStreamConsumer’ does not name a type
28 | LogStreamConsumer gLogWarning{LOG_WARN(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:29:5: error: ‘LogStreamConsumer’ does not name a type
29 | LogStreamConsumer gLogError{LOG_ERROR(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:30:5: error: ‘LogStreamConsumer’ does not name a type
30 | LogStreamConsumer gLogFatal{LOG_FATAL(gLogger)};
| ^~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:32:32: error: variable or field ‘setReportableSeverity’ declared void
32 | void setReportableSeverity(Logger::Severity severity)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/logger.cpp:32:32: error: ‘Logger’ has not been declared
make[2]: *** [AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/build.make:76:AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/logger.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:62,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:35,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h: In member function ‘void tensorrt_buffer::TrtCudaGraphSafe::endCaptureOnError(CUstream_st*&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h:182:13: error: ‘tensorrt_log’ has not been declared
182 | tensorrt_log::gLogError << "The CUDA graph capture on the stream has failed." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h: In function ‘void tensorrt_buffer::safeLoadLibrary(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/safe_common.h:203:13: error: ‘tensorrt_log’ has not been declared
203 | tensorrt_log::gLogError << "Could not load plugin library: " << path << ", due to: " << dlerror() << std::endl;
| ^~~~~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:35,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘int32_t tensorrt_buffer::calculateSoftmax(float*, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::setAllDynamicRanges(nvinfer1::INetworkDefinition*, float, float)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::setDummyInt8DynamicRanges(const nvinfer1::IBuilderConfig*, nvinfer1::INetworkDefinition*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:586:13: error: ‘tensorrt_log’ has not been declared
586 | tensorrt_log::gLogWarning << "Int8 calibrator not provided. Generating dummy per-tensor dynamic range. Int8 accuracy "
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘int64_t tensorrt_buffer::volume(const Dims&, int32_t, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In destructor ‘tensorrt_buffer::DynamicLibrary::~DynamicLibrary()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: error: ‘tensorrt_log’ has not been declared
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:91:13: note: in definition of macro ‘ASSERT’
91 | tensorrt_log::gLogError << "Assertion failure: " << #condition << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:968:17: error: ‘tensorrt_log’ has not been declared
968 | tensorrt_log::gLogError << "Unable to close library: " << mLibName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In constructor ‘tensorrt_buffer::FileLock::FileLock(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1067:13: error: ‘tensorrt_log’ has not been declared
1067 | tensorrt_log::gLogVerbose << "Trying to set exclusive file lock " << lockFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1077:13: error: ‘tensorrt_log’ has not been declared
1077 | tensorrt_log::gLogVerbose << "File locked in " << time << " seconds." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In destructor ‘tensorrt_buffer::FileLock::~FileLock()’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1101:17: error: ‘tensorrt_log’ has not been declared
1101 | tensorrt_log::gLogVerbose << "Trying to remove exclusive file lock " << lockFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1106:21: error: ‘tensorrt_log’ has not been declared
1106 | tensorrt_log::gLogVerbose << "Failed to unlock " << lockFileName << "!" << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1114:21: error: ‘tensorrt_log’ has not been declared
1114 | tensorrt_log::gLogVerbose << "File unlocked in " << time << " seconds." << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘std::vector tensorrt_buffer::loadTimingCacheFile(const string&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1140:13: error: ‘tensorrt_log’ has not been declared
1140 | tensorrt_log::gLogWarning << "Could not read timing cache from: " << inFileName
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1150:9: error: ‘tensorrt_log’ has not been declared
1150 | tensorrt_log::gLogInfo << "Loaded " << fsize << " bytes of timing cache from " << inFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::saveTimingCacheFile(const string&, const nvinfer1::IHostMemory*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1160:13: error: ‘tensorrt_log’ has not been declared
1160 | tensorrt_log::gLogWarning << "Could not write timing cache to: " << outFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1165:9: error: ‘tensorrt_log’ has not been declared
1165 | tensorrt_log::gLogInfo << "Saved " << blob->size() << " bytes of timing cache to " << outFileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h: In function ‘void tensorrt_buffer::updateTimingCacheFile(const string&, const nvinfer1::ITimingCache*)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1186:13: error: ‘tensorrt_log’ has not been declared
1186 | tensorrt_log::gLogInfo << "Loaded " << fsize << " bytes of timing cache from " << fileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1202:13: error: ‘tensorrt_log’ has not been declared
1202 | tensorrt_log::gLogWarning << "Could not write timing cache to: " << fileName << std::endl;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/common.h:1207:9: error: ‘tensorrt_log’ has not been declared
1207 | tensorrt_log::gLogInfo << "Saved " << blob->size() << " bytes of timing cache to " << fileName << std::endl;
| ^~~~~~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:41: error: ‘IOFormat’ was not declared in this scope; did you mean ‘sample::IOFormat’?
79 | bool broadcastIOFormats(std::vector const& formats, size_t nbBindings, bool isInput = true);
| ^~~~~~~~
| sample::IOFormat
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:132:7: note: ‘sample::IOFormat’ declared here
132 | using IOFormat = std::pair<nvinfer1::DataType, nvinfer1::TensorFormats>;
| ^~~~~~~~
In file included from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:31:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:49: error: template argument 1 is invalid
79 | bool broadcastIOFormats(std::vector const& formats, size_t nbBindings, bool isInput = true);
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/include/sample_utils.h:79:49: error: template argument 2 is invalid
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:136:9: error: ‘IOFormat’ does not name a type
136 | IOFormat stringToValue(const std::string& option)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:153:9: error: ‘SparsityFlag’ does not name a type
153 | SparsityFlag stringToValue(std::string const& option)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:30: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:41: error: ‘arguments’ was not declared in this scope
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:52: error: expected primary-expression before ‘const’
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:80: error: expected primary-expression before ‘&’ token
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:82: error: ‘value’ was not declared in this scope; did you mean ‘volume’?
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^~~~~
| volume
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:87: error: expression list treated as compound expression in initializer [-fpermissive]
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:242:88: error: expected ‘;’ before ‘{’ token
242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value)
| ^
| ;
243 | {
| ~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:44: error: ‘arguments’ was not declared in this scope
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:55: error: expected primary-expression before ‘const’
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:82: error: expected primary-expression before ‘bool’
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:258:93: error: expression list treated as compound expression in initializer [-fpermissive]
258 | bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:38: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:49: error: ‘arguments’ was not declared in this scope
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:60: error: expected primary-expression before ‘const’
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:101: error: expected primary-expression before ‘&’ token
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:103: error: ‘values’ was not declared in this scope
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:109: error: expression list treated as compound expression in initializer [-fpermissive]
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:273:110: error: expected ‘;’ before ‘{’ token
273 | bool getAndDelRepeatedOption(Arguments& arguments, const std::string& option, std::vector& values)
| ^
| ;
274 | {
| ~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:32: error: variable or field ‘insertShapesBuild’ declared void
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:32: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:60: error: ‘shapes’ was not declared in this scope
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:289:97: error: expected primary-expression before ‘selector’
289 | void insertShapesBuild(BuildOptions::ShapeProfile& shapes, nvinfer1::OptProfileSelector selector,
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:290:32: error: expected primary-expression before ‘const’
290 | const std::string& name, const std::vector<int32_t>& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:290:57: error: expected primary-expression before ‘const’
290 | const std::string& name, const std::vector<int32_t>& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:17: error: variable or field ‘insertShapesInference’ declared void
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:17: error: ‘InferenceOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:49: error: ‘shapes’ was not declared in this scope
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:69: error: expected primary-expression before ‘const’
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:296:103: error: expected primary-expression before ‘const’
296 | InferenceOptions::ShapeProfile& shapes, std::string const& name, std::vector<int32_t> const& dims)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:33: error: variable or field ‘getLayerPrecisions’ declared void
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:44: error: ‘arguments’ was not declared in this scope
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:55: error: expected primary-expression before ‘char’
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:77: error: ‘LayerPrecisions’ was not declared in this scope; did you mean ‘sample::LayerPrecisions’?
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~~~~~~~
| sample::LayerPrecisions
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:136:7: note: ‘sample::LayerPrecisions’ declared here
136 | using LayerPrecisions = std::unordered_map<std::string, nvinfer1::DataType>;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:314:94: error: ‘layerPrecisions’ was not declared in this scope
314 | void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:34: error: variable or field ‘getLayerOutputTypes’ declared void
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:34: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:45: error: ‘arguments’ was not declared in this scope
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:56: error: expected primary-expression before ‘char’
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:78: error: ‘LayerOutputTypes’ was not declared in this scope; did you mean ‘sample::LayerOutputTypes’?
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~~~~~~~~
| sample::LayerOutputTypes
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:137:7: note: ‘sample::LayerOutputTypes’ declared here
137 | using LayerOutputTypes = std::unordered_map<std::string, std::vectornvinfer1::DataType>;
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:332:96: error: ‘layerOutputTypes’ was not declared in this scope
332 | void getLayerOutputTypes(Arguments& arguments, char const* argument, LayerOutputTypes& layerOutputTypes)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:34: error: variable or field ‘getLayerDeviceTypes’ declared void
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:34: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:45: error: ‘arguments’ was not declared in this scope
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:56: error: expected primary-expression before ‘char’
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:78: error: ‘LayerDeviceTypes’ was not declared in this scope; did you mean ‘sample::LayerDeviceTypes’?
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~~~~~~~~
| sample::LayerDeviceTypes
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:138:7: note: ‘sample::LayerDeviceTypes’ declared here
138 | using LayerDeviceTypes = std::unordered_map<std::string, nvinfer1::DeviceType>;
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:353:96: error: ‘layerDeviceTypes’ was not declared in this scope
353 | void getLayerDeviceTypes(Arguments& arguments, char const* argument, LayerDeviceTypes& layerDeviceTypes)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:29: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:40: error: ‘arguments’ was not declared in this scope
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:51: error: ‘BuildOptions’ has not been declared
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:79: error: ‘shapes’ was not declared in this scope
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:371:87: error: expected primary-expression before ‘char’
371 | bool getShapesBuild(Arguments& arguments, BuildOptions::ShapeProfile& shapes, char const* argument,
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:372:58: error: expected primary-expression before ‘selector’
372 | nvinfer1::OptProfileSelector selector)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:372:66: error: expression list treated as compound expression in initializer [-fpermissive]
372 | nvinfer1::OptProfileSelector selector)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:33: error: ‘Arguments’ was not declared in this scope; did you mean ‘sample::Arguments’?
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~
| sample::Arguments
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:130:7: note: ‘sample::Arguments’ declared here
130 | using Arguments = std::unordered_multimap<std::string, std::string>;
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:44: error: ‘arguments’ was not declared in this scope
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:55: error: ‘InferenceOptions’ has not been declared
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:87: error: ‘shapes’ was not declared in this scope
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:95: error: expected primary-expression before ‘const’
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:387:115: error: expression list treated as compound expression in initializer [-fpermissive]
387 | bool getShapesInference(Arguments& arguments, InferenceOptions::ShapeProfile& shapes, const char* argument)
| ^
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:25: error: variable or field ‘fillShapes’ declared void
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:25: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:53: error: ‘shapes’ was not declared in this scope
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:73: error: expected primary-expression before ‘const’
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:402:86: error: ‘ShapeRange’ was not declared in this scope; did you mean ‘sample::ShapeRange’?
402 | void fillShapes(BuildOptions::ShapeProfile& shapes, std::string const& name, ShapeRange const& sourceShapeRange,
| ^~~~~~~~~~
| sample::ShapeRange
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:134:7: note: ‘sample::ShapeRange’ declared here
134 | using ShapeRange = std::array<std::vector<int32_t>, nvinfer1::EnumMaxnvinfer1::OptProfileSelector()>;
| ^~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:403:54: error: expected primary-expression before ‘minDimsSource’
403 | nvinfer1::OptProfileSelector minDimsSource, nvinfer1::OptProfileSelector optDimsSource,
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:403:98: error: expected primary-expression before ‘optDimsSource’
403 | nvinfer1::OptProfileSelector minDimsSource, nvinfer1::OptProfileSelector optDimsSource,
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:404:54: error: expected primary-expression before ‘maxDimsSource’
404 | nvinfer1::OptProfileSelector maxDimsSource)
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:28: error: variable or field ‘processShapes’ declared void
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:28: error: ‘BuildOptions’ has not been declared
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:56: error: ‘shapes’ was not declared in this scope
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:64: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:80: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:96: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:414:112: error: expected primary-expression before ‘bool’
414 | void processShapes(BuildOptions::ShapeProfile& shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printBatch(std::ostream&, int32_t)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:515:29: error: ‘maxBatchNotProvided’ was not declared in this scope; did you mean ‘sample::maxBatchNotProvided’?
515 | if (maxBatch != maxBatchNotProvided)
| ^~~~~~~~~~~~~~~~~~~
| sample::maxBatchNotProvided
In file included from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logging.h:22,
from /home/csw/downloads/TensorRT-8.6.1.6/samples/common/logger.h:21,
from /home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:29:
/home/csw/downloads/TensorRT-8.6.1.6/samples/common/sampleOptions.h:36:19: note: ‘sample::maxBatchNotProvided’ declared here
36 | constexpr int32_t maxBatchNotProvided{0};
| ^~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:555:56: error: ‘BuildOptions’ has not been declared
555 | std::ostream& printPrecision(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printPrecision(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:558:25: error: request for member ‘fp16’ in ‘options’, which is of non-class type ‘const int’
558 | if (options.fp16)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:562:25: error: request for member ‘int8’ in ‘options’, which is of non-class type ‘const int’
562 | if (options.int8)
| ^~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:566:25: error: request for member ‘fp8’ in ‘options’, which is of non-class type ‘const int’
566 | if (options.fp8)
| ^~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:570:25: error: request for member ‘precisionConstraints’ in ‘options’, which is of non-class type ‘const int’
570 | if (options.precisionConstraints == PrecisionConstraints::kOBEY)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:570:49: error: ‘PrecisionConstraints’ has not been declared
570 | if (options.precisionConstraints == PrecisionConstraints::kOBEY)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:574:25: error: request for member ‘precisionConstraints’ in ‘options’, which is of non-class type ‘const int’
574 | if (options.precisionConstraints == PrecisionConstraints::kPREFER)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:574:49: error: ‘PrecisionConstraints’ has not been declared
574 | if (options.precisionConstraints == PrecisionConstraints::kPREFER)
| ^~~~~~~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:595:58: error: ‘TimingCacheMode’ has not been declared
595 | std::ostream& printTimingCache(std::ostream& os, TimingCacheMode const& timingCacheMode)
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printTimingCache(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:599:22: error: ‘TimingCacheMode’ has not been declared
599 | case TimingCacheMode::kGLOBAL: os << "global"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:600:22: error: ‘TimingCacheMode’ has not been declared
600 | case TimingCacheMode::kLOCAL: os << "local"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:601:22: error: ‘TimingCacheMode’ has not been declared
601 | case TimingCacheMode::kDISABLE: os << "disable"; break;
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:606:55: error: ‘BuildOptions’ has not been declared
606 | std::ostream& printSparsity(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printSparsity(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:608:29: error: request for member ‘sparsity’ in ‘options’, which is of non-class type ‘const int’
608 | switch (options.sparsity)
| ^~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:610:22: error: ‘SparsityFlag’ has not been declared
610 | case SparsityFlag::kDISABLE: os << "Disabled"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:611:22: error: ‘SparsityFlag’ has not been declared
611 | case SparsityFlag::kENABLE: os << "Enabled"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:612:22: error: ‘SparsityFlag’ has not been declared
612 | case SparsityFlag::kFORCE: os << "Forced"; break;
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:618:58: error: ‘BuildOptions’ has not been declared
618 | std::ostream& printMemoryPools(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printMemoryPools(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:631:41: error: request for member ‘workspace’ in ‘options’, which is of non-class type ‘const int’
631 | printValueOrDefault(options.workspace);
| ^~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:634:41: error: request for member ‘dlaSRAM’ in ‘options’, which is of non-class type ‘const int’
634 | printValueOrDefault(options.dlaSRAM);
| ^~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:637:41: error: request for member ‘dlaLocalDRAM’ in ‘options’, which is of non-class type ‘const int’
637 | printValueOrDefault(options.dlaLocalDRAM);
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:640:41: error: request for member ‘dlaGlobalDRAM’ in ‘options’, which is of non-class type ‘const int’
640 | printValueOrDefault(options.dlaGlobalDRAM);
| ^~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:657:59: error: ‘BuildOptions’ has not been declared
657 | std::ostream& printPreviewFlags(std::ostream& os, BuildOptions const& options)
| ^~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In function ‘std::ostream& tensorrt_log::{anonymous}::printPreviewFlags(std::ostream&, const int&)’:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:659:25: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
659 | if (options.previewFeatures.empty())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: In lambda function:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:667:29: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
667 | if (options.previewFeatures.find(featVal) != options.previewFeatures.end())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:667:70: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
667 | if (options.previewFeatures.find(featVal) != options.previewFeatures.end())
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:669:68: error: request for member ‘previewFeatures’ in ‘options’, which is of non-class type ‘const int’
669 | os << previewFeatureToString(feat) << (options.previewFeatures.at(featVal) ? " [ON], " : " [OFF], ");
| ^~~~~~~~~~~~~~~
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp: At global scope:
/home/csw/Air_SLAM_ws/src/AirSLAM/3rdparty/tensorrtbuffer/src/sample_options.cpp:682:5: error: ‘Arguments’ does not name a type
make[2]: *** [AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/build.make:90:AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/src/sample_options.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1921:AirSLAM/3rdparty/tensorrtbuffer/CMakeFiles/tensorrtbuffer.dir/all] 错误 2
make: *** [Makefile:146:all] 错误 2
Invoking "make -j24 -l24" failed
`
The text was updated successfully, but these errors were encountered: