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

Adsk contrib - Fix issues when building OCIO with MS Visual Studio 2022 #1647

Conversation

cedrik-fuoco-adsk
Copy link
Contributor

@cedrik-fuoco-adsk cedrik-fuoco-adsk commented May 16, 2022

All issues were discovered when trying to configure and build OCIO on Windows using Microsoft Visual Studio 2022.

Pybind11 has an issue with Microsoft Visual Studio 2022, FindGlew from CMake has a bug around setting GLEW_INCLUDE_DIRS correctly and OpenImageIO as some warnings that get flagged as error. Since those warning are in the OCIO apps, we decided that I would be ok to ignore them temporarily.

Content overview:

Updating Pybind11 to the latest version as Pybind11 <2.9.0 has issues with Microsoft Visual Studio 2022.
Add fix to make sure that GLEW_INCLUDE_DIRS is set correctly.
Ignoring warnings (C4267 and C4244) temporarily in ociolutimage, ocioconvert and oiiohelpers

Reference issue #1634.

Signed-off-by: Cedrik Fuoco [email protected]

@remia
Copy link
Collaborator

remia commented May 17, 2022

Thanks @cedrik-fuoco-adsk, when the Linux issue has been resolved, I would suggest we merge this one quickly as the CI seem to be broken on other PR for Windows which is fixed here. Probably some update to the Windows runners (although they are not using VS 2022).

Copy link
Collaborator

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

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

Note: This is a build-break fix and therefore the two-week rule does not apply.

@doug-walker doug-walker merged commit 25e910c into AcademySoftwareFoundation:main May 18, 2022
@doug-walker doug-walker deleted the adsk_contrib/issues-with-ms-visual-studio-2022 branch May 18, 2022 15:54
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.

3 participants