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

fastdeploy C++ 编译问题,cmake 中勾选ENABLE_TEXT编译报错(取消勾选编译通过) #2498

Open
zjbistu opened this issue Aug 1, 2024 · 0 comments
Assignees

Comments

@zjbistu
Copy link

zjbistu commented Aug 1, 2024

环境

  • 【FastDeploy版本】:FastDeploy-develop (CPU,GPU均报错)

  • 【编译命令】:ENBALE_TEXT (取消勾选,编译通过)

  • 【系统平台】: Windows x64(Windows11) ,cuda-11.3,cudnn-8.9.7,opencv-4.7.0,tensorRT-8.6

  • 【编译语言】: C++ (cmake + vs2019)

  • 【编译报错】

  • 【报错代码】:std::vectorstd::string texts_pair_ds = {"收钱码,对花呗支付的金额有限制吗","为什么友付宝不支持花呗付款"};”

  • 【vs2019报错】:C2001 常量中有换行符

  • 【修改】:在最后一个汉字之后增加一个空格,C2001报错消失。但是又爆出连接错误

  • 【vs2019报错】:LNK2019 无法解析的外部符号 "public: static bool fastdeploy::FDLogger::enable_info" (?enable_info@FDLogger@fastdeploy@@2_NA),函数 "bool __cdecl CreateRuntimeOption(struct fastdeploy::RuntimeOption *)" (?CreateRuntimeOption@@YA_NPEAURuntimeOption@fastdeploy@@@z) 中引用了该符号 text_text_ernie-3.0_seq_cls_infer D:\sdk\FastDeploy_gpu\build\examples\seq_cls_infer.obj 1

@zjbistu zjbistu changed the title fastdeploy C++ 编译问题,cmake 中勾选ENBALE_TEXT编译报错 fastdeploy C++ 编译问题,cmake 中勾选ENABLE_TEXT编译报错(取消勾选编译通过) Aug 1, 2024
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