-
-
Notifications
You must be signed in to change notification settings - Fork 185
Compile windows _camera on MSVC only #2585
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
Conversation
Also if anyone is interested, here is the compiler error log while trying to compile _camera on windows
|
What version of mingw-w64 is being used to generate these compile errors? I can see in the Github for MinGW-w64 that the stuff being mentioned as undefined was added in February last year. See: So it looks like we'd need at least version v10.0.0 from April of last year for this to have a chance of working. |
This seems like an interesting source of binaries for mingw: |
I downloaded the latest from here https://winlibs.com/ and the exact one I downloaded is called Maybe I should have downloaded some other configuration? |
I tried building with what seems like a slightly more up to date mingw (via this installer) than the above but it still failed to compile the windows camera due to a lack of:
There is a patch here to add it - but it is not in yet, so I guess for now we comment out the windows camera module on mingw builds. I think this change needs a comment to explain why we've done it though as it may be confusing when we revisit this in two years and can't remember why it was done or what we need to do to make the camera work on mingw builds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - though could use a comment mentioning mingw 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked it out locally, looks good.
The goal is to get pygame compiling on mingw (intended for pygame contributors on windows who would prefer it), and currently
_camera
is the only thing that doesn't compile under mingw. So take the easy route and not try to compile it (this shouldn't really affect anything, we should still be doing releases with MSVC)@Starbuck5 requesting your review (oh and also, do you think we should also do a compiler version check, and if yes, to what?)