-
Notifications
You must be signed in to change notification settings - Fork 37
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
GLEW CMake config error in 2020 images #43
Comments
Would you be able to check if this problem still exists with the new 2020 images I've released today? They have changed quite a bit... |
It exists in |
I can confirm that this also an issue with the
you get:
but if you remove
which allows the OpenGL apps and test suite to link correctly (not finding GLEW_INCLUDE_DIRS is not a problem since -I/usr/local/include presumably comes from somewhere else, but not finding the GLEW libraries causes linking errors). It looks like this is the last thing needed to get OpenGL builds/runs using the Amazon CodeBuild infrastructure, so it would be great to figure this out. |
Here is the code of glew-config.cmake which does not create the 'usual' variables. It only defines Here is the cmake issue 19662 (fixed) related to GLEW to enhance the variables to have the missing GLEW_LIBRARIES and GLEW_INCLUDE_DIRS. |
Thanks @hodoulp ! Do you think we should apply this patch in the docker images? I'm OK either way. |
@aloysbaillet The change is now in OCIO but if other projects need GLEW I think it's worth centralizing the change in the docker scripts. |
While moving OCIO CI to GH Actions I encountered a linking error with the GLEW install in the
aswf/ci-base:2020
images. When configuring a build with CMake within this container, GLEW is found through the default FindGLEW.cmake module with the following output:-- Found GLEW: /usr/local/lib64/cmake/glew/glew-config.cmake
In the
aswf/ci-base:2019
the same configure step finds GLEW at:-- Found GLEW: /usr/local/include
The 2019 result links properly, but the 2020 result results in the following linking error during the OCIO build:
I worked around the failure by deleting the GLEW CMake config before running
cmake
with:sudo rm -rf /usr/local/lib64/cmake/glew
Following that, the find module behaves identically to the 2019 container.
The text was updated successfully, but these errors were encountered: