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

fix MSVC build error #105

Merged
merged 1 commit into from
Nov 11, 2021
Merged

Conversation

ysc3839
Copy link
Contributor

@ysc3839 ysc3839 commented Nov 11, 2021

编译命令:

cd build
cmake -DINCLUDE_OPENCV=ON -DENABLE_MNN=OFF -DENABLE_NCNN=OFF -DENABLE_TNN=OFF ..
cmake --build . --config MinSizeRel

使用 VS2022 (v143) 工具链测试成功编译。

主要有下列三种错误:

  1. deeplabv3_resnet101.cpp(14,35): error C2039: 'utils': is not a member of 'lite'
    解决方案: #include "lite/utils.h"
  2. faceboxes.cpp(93,72): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
    解决方案: anchors.push_back((FaceBoxesAnchor) {cx, cy, s_kx, s_ky}); -> anchors.push_back(FaceBoxesAnchor{cx, cy, s_kx, s_ky});
  3. types.h(263,12): error C2039: 'Rect': is not a member of 'lite::cv'
    解决方案: cv::Rect -> ::cv::Rect

@DefTruth DefTruth merged commit 1ce681f into DefTruth:main Nov 11, 2021
@DefTruth
Copy link
Owner

merged, many thanks for your contribution !

DefTruth added a commit that referenced this pull request Nov 11, 2021
@ysc3839 ysc3839 deleted the fix-msvc-build-error branch November 11, 2021 13:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants