Replies: 8 comments
-
编译版本是 PaddleOCR-3.0.1 |
Beta Was this translation helpful? Give feedback.
-
这些编译库的问题,自己琢磨一下问题不大,https://blog.csdn.net/xqf222/article/details/148259798 |
Beta Was this translation helpful? Give feedback.
-
使用 vs2019 同样的报错: 就不能搞个完整版本吗?或者提供一个已经编译好的直接直接拿着用的,比如 vs2017编译的,或者vs2019编译好的?搞了一天了还搞不好,烦躁 |
Beta Was this translation helpful? Give feedback.
-
cpp infer 只是一个demo,用来参考实现的,需要根据需求自己调整的。 |
Beta Was this translation helpful? Give feedback.
-
认真看一下,我发的那个地址,里面有解决方法,cpp版本都是基于linux开发的,windows有点问题正常 |
Beta Was this translation helpful? Give feedback.
-
没用,单独编译 yaml-app也是各种报错 |
Beta Was this translation helpful? Give feedback.
-
搞 opencv都没这么麻烦,开箱即用 |
Beta Was this translation helpful? Give feedback.
-
可以参考这个解决方案 #15562 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🔎 Search before asking
🐛 Bug (问题描述)
1、将Debug改为Release,执行了,ps为啥不能生成debug
2、下载dirent.h,并拷贝到 Visual Studio 的 include 文件夹下,执行了
3、在最终生成的build目录下,vs2017打开ALL_BUILD.vcxproj,右键ALL_BUILD 生成,编译报错:
2>正在生成代码...
2>glog.lib(signalhandler.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>gflags_static.lib(gflags.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>gflags_static.lib(gflags_reporting.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>gflags_static.lib(gflags_completions.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(exp.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>glog.lib(logging.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>glog.lib(utilities.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>glog.lib(vlog_is_on.cc.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(tag.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(depthguard.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(scanscalar.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(scantag.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(singledocparser.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(stream.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(simplekey.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(scantoken.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(node_data.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(parse.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(parser.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>yaml-cpp.lib(scanner.cpp.obj) : error LNK2001: 无法解析的外部符号 __GSHandlerCheck_EH4
2>D:\soft\paddle\build\Release\ppocr.exe : fatal error LNK1120: 1 个无法解析的外部命令
是什么原因导致的,这些外部库不是vs2017 编译的吗?还是其他原因
在ppocr方案设置:
1、禁用GS安全检查:项目属性 → C/C++ → 代码生成 → 缓冲区安全检查 → 设置为"否(/GS-)"
2、配置属性 → C/C++ → 代码生成 → 启用C++异常 → 使用/EHa选项
3、加入了 YAML_CPP_STATIC_DEFINE 宏
这些都设置了依然不行
🏃♂️ Environment (运行环境)
OS:windows11
CPU
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
no
Beta Was this translation helpful? Give feedback.
All reactions