-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
opencv3.2 编译报错解决 #152
Comments
编译通过了,做了如下修改:
|
赞 |
确实有效,赞! |
已修改标题,帮助更多人看到后得知解决方案。 |
自己不太懂这个,但是 为什么 这样改就是可以的呢? |
错误 143 error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(main.obj 中) E:\OpenCV\EasyPR-master\vcprojs\libeasypr.lib(plate_detect.obj) demo |
环境为vs2013,openCV3.2,在进行release编译时出现这种情况,debug编译已经通过。 |
release版对应的opencv的库需要调整的 |
error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease” 在工程上右键-》属性-》c/c++-》代码生成-》运行库 |
Opencv3.2版本的支持,编译前仅需要将config.h中将#define CV_VERSION_THREE_ZERO改为#define CV_VERSION_THREE_TWO即可。
|
@ZhangXinNan thank you ! fixed it! |
@ZhangXinNan +1 fixed it |
Fix up errors like liuruoze#152 EasyPR/src/core/chars_identify.cpp:22:3: error: expected '(' for function-style cast or type construction LOAD_ANN_MODEL(ann_, kDefaultAnnPath); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EasyPR/include/easypr/config.h:141:42: note: expanded from macro 'LOAD_ANN_MODEL' model = ml::ANN_MLP::load<ml::ANN_MLP>(path); ~~~~~~~~~~~^ Tested in Mac OSX with opencv 3.4.1. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
通过自动判断OpenCV版本号彻底解决该问题:#286 |
expected '(' for function-style cast or type construction. (check one with "chars_identify.cpp")
Please tell us about your environment:
System: Macos
Compiler version/IDE: gcc4.2.1
CMake version: 3.7.1
OpenCV version: 3.1
The text was updated successfully, but these errors were encountered: