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

How to build for windows 10 ? Many errors. #39

Closed
MyraBaba opened this issue Oct 5, 2021 · 6 comments
Closed

How to build for windows 10 ? Many errors. #39

MyraBaba opened this issue Oct 5, 2021 · 6 comments
Labels
question Further information is requested Windows

Comments

@MyraBaba
Copy link

MyraBaba commented Oct 5, 2021

Hi I have a lot of errors when try to build on windows 10 with Qt (cmake and mingw64-make)
Screen Shot 2021-10-05 at 18 55 03

If there is precompiled DLL fow windows10 64 / 32 bit it would be perfect :)

@DefTruth
Copy link
Owner

DefTruth commented Oct 6, 2021

  1. i haven't to build it on windows 10 with Qt, may be you can try to build this repo with Visual Studio 2019 + cmake or CLion + msvc + cmake, many other users have already run this repo on the windows system, you can refer to this discussion Not working under windows 10 #32onnxruntime的gpu怎么支持? #10 and windows vs2019编译报错: #6 , i hope it helps ~
  2. the pre-built dll for windows may not be release soon, i am still working at new algorithm modules mainly with MacOS and Linux in my free time.

@DefTruth DefTruth added question Further information is requested Windows labels Oct 6, 2021
@MyraBaba
Copy link
Author

MyraBaba commented Oct 6, 2021

@DefTruth Hi,

even Visual Studio 2019 I have same error as above ? Is there any one solved this problem ?

@antithing
Copy link

antithing commented Oct 6, 2021

Hi all, to build this code on Windows, adjust this line:

if (_size == 0 or logits == nullptr) return {};

replace the or with ||.

to fix the errors:

a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax

change the lines from:

anchors.push_back((YoloXAnchor) {g0, g1, stride});

to

anchors.push_back(YoloXAnchor {g0, g1, stride});

Then clear the post build event in the project properties.

That's it!

DefTruth added a commit that referenced this issue Oct 7, 2021
DefTruth added a commit that referenced this issue Oct 7, 2021
fix Windows Compatibility (#39)
@MyraBaba
Copy link
Author

MyraBaba commented Oct 7, 2021 via email

@MyraBaba
Copy link
Author

MyraBaba commented Oct 7, 2021 via email

@antithing
Copy link

            `anchors.push_back(FaceBoxesAnchor {cx, cy, s_kx, s_ky}); `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Windows
Projects
None yet
Development

No branches or pull requests

3 participants