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

MinGW support #51

Merged
merged 3 commits into from
Mar 17, 2022
Merged

MinGW support #51

merged 3 commits into from
Mar 17, 2022

Conversation

sandman42292
Copy link
Contributor

This PR modifies some codes to enable openpnp-capture to be built with mingw.

@@ -84,6 +86,7 @@ IF (WIN32)
# add files for WIN32
target_sources(openpnp-capture PRIVATE win/platformcontext.cpp
win/platformstream.cpp)
target_link_libraries(openpnp-capture strmiids)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why current master can be built without strmiids library.

@@ -27,7 +27,7 @@
#define win_platformdeviceinfo_h

#include <windows.h>
#include <Dshow.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows doesn't distinguish "Dshow.h" and "dshow.h" but Linux does.

@@ -31,8 +31,7 @@

#include <windows.h>
#include <dshow.h>
#include <Vidcap.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Vidcap.h" seems not needed anymore now.

@vonnieda
Copy link
Member

Looks good, thank you @sandman42292! Sorry for the long delay on getting this merged!

@vonnieda vonnieda merged commit cd632a4 into openpnp:master Mar 17, 2022
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.

2 participants