Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
KARAS1998 opened this issue Apr 22, 2024 · 1 comment
Open

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

KARAS1998 opened this issue Apr 22, 2024 · 1 comment

Comments

@KARAS1998
Copy link

再根据视频将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
Copy link
Owner

FeiYull commented May 16, 2024

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

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

No branches or pull requests

2 participants