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 - Improve GLEW detection #1110

Conversation

hodoulp
Copy link
Member

@hodoulp hodoulp commented Aug 20, 2020

Signed-off-by: Patrick Hodoul [email protected]

The GPU CI build investigations raise a GLEW library detection problem coming from a cmake bug. The pull request manages the cmake bug to always correctly detect the GLEWlibrary.

Refer to AcademySoftwareFoundation/aswf-docker#43 for details.
Refer to https://gitlab.kitware.com/cmake/cmake/-/issues/19662 for cmake details.

To correctly test the fix, you have to install a ASWF docker image. And I used: aswf/ci-ocio:2021.

@hodoulp hodoulp added the v2.0 label Aug 20, 2020
@michdolan
Copy link
Collaborator

Good find with the cmake bug! To test this fix in CI, you could also remove the workaround from the GH Actions workflow files:

      # TODO: Remove this workaround following resolution of:
      #       https://github.com/AcademySoftwareFoundation/aswf-docker/issues/43
      - name: Setup container
        run: sudo rm -rf /usr/local/lib64/cmake/glew
        if: matrix.vfx-cy == 2020

CMakeLists.txt Outdated Show resolved Hide resolved
@jfpanisset
Copy link
Contributor

jfpanisset commented Aug 20, 2020

The CMake issue seems to prevent setting GLEW_INCLUDE_DIRS as well: this issue is "hidden" since it's just /usr/local/include and thus the GLEW includes are still found by the build (something else is adding -I/usr/local/include), but would it make sense to also explicitly set GLEW_INCLUDE DIRS?

Signed-off-by: Patrick Hodoul <[email protected]>
@hodoulp
Copy link
Member Author

hodoulp commented Aug 20, 2020

The glew includes are in the same directory than the openGL ones so it's not 'mandatory' to define the variable.

@hodoulp
Copy link
Member Author

hodoulp commented Aug 20, 2020

@michdolan The first commit triggered the GitHub Action but missed the successful results. The last commit did not even trigger GitHub Action. I relaunched the previous build hoping it will bring the latest changes but it does not (as expected).
Any idea?

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