FeiYull / TensorRT-Alpha

🔥🔥🔥TensorRT for YOLOv8、YOLOv8-Pose、YOLOv8-Seg、YOLOv8-Cls、YOLOv7、YOLOv6、YOLOv5、YOLONAS......🚀🚀🚀CUDA IS ALL YOU NEED.🍎🍎🍎
GNU General Public License v2.0
1.3k stars 201 forks source link

YOLOv8-pose 出现编译错误 ,up帮忙看看给您磕头了 #118

Open KARAS1998 opened 5 months ago

KARAS1998 commented 5 months ago

再根据视频将logger.cpp和sampleOptions.cpp添加到工程中后,自定义也选择了cuda,属性项类型也选择了cuda cc++。但是报错为: 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2001 无法解析的外部符号 "class std::vector<class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::allocator<class std::basic_string<char,struct std::char_traits,class std::allocator > > > __cdecl sample::splitToStringVec(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,char)" (?splitToStringVec@sample@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@D@Z) opencv_test F:\opencv_test\tensorRT-YOLOv8\sampleOptions.obj 1
这个该怎么解决呢?给您磕头了

FeiYull commented 4 months ago

@KARAS1998 将tensorrt 安装目录下common/sample里面的sampleUtils.cpp文件添加到项目中,对应的头文件也包含到项目属性里面