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
The text was updated successfully, but these errors were encountered:
HorseJson
changed the title
win10 cmake failure of TensorRT 8.6
error LNK2019 class nvinfer1::IRuntime win10 cmake failure of TensorRT 8.6
Apr 28, 2024
HorseJson
changed the title
error LNK2019 class nvinfer1::IRuntime win10 cmake failure of TensorRT 8.6
error LNK2019: "class nvinfer1::IRuntime" win10 cmake failure of TensorRT 8.6
Apr 28, 2024
Thanks for your help, the problem is solved.
add_executable(TRT
samples/common/logger.cpp
samples/common/sampleEngines.cpp
samples/common/sampleInference.cpp
samples/common/sampleOptions.cpp
samples/common/sampleReporting.cpp
samples/common/sampleUtils.cpp
) will error LNK2019: unresolved external symbol "class nvinfer1::IBuilder * __cdecl createBuilder(void)" and so on.
add_executable(TRT
samples/common/logger.cpp
samples/common/sampleEngines.cpp
samples/common/sampleInference.cpp
samples/common/sampleOptions.cpp
samples/common/sampleReporting.cpp
samples/common/sampleUtils.cpp
samples/trtexec/trtexec.cpp
) There will no be error.
cmake sampleEngines.cpp,ERROR“[build] sampleEngines.obj : error LNK2019: 无法解析的外部符号 "class nvinfer1::IRuntime * __cdecl createRuntime(void)" (?createRuntime@@YAPEAVIRuntime@nvinfer1@@xz),函数 "public: class nvinfer1::ICudaEngine * __cdecl sample::LazilyDeserializedEngine::get(void)" (?get@LazilyDeserializedEngine@sample@@QEAAPEAVICudaEngine@nvinfer1@@xz) 中引用了该符号 [D:\00DaittoCode\TensorRTOfficial\release_10.0\engine\build\TRT.vcxproj]”
Sure add nvinfer.lib successfully
The text was updated successfully, but these errors were encountered: