I'm working on updating the blender package to build against OpenImageIO 2.0.3 in rawhide and have worked through the API changes but the build still fails when linking blenderplayer due to undefined references to functions provided by the libGL library.
I checked the last good build in koji and as expected I see "-lGL" for blender and blenderplayer but not in my mock builds.
Does this have something to do with with the new mesa packages or a cmake error with the FindGLEW module?
I'll keep poking around but hopefully someone knows the answer :)
Thanks, Richard
Answering part of my own question here using the rawhide test instance:
$ pkg-config --libs glew -lGLEW -lGLU -lGL
Minimal CMake test config:
$ cmake . -- GLEW_LIBRARIES: /usr/lib64/libGLEW.so -- Configuring done -- Generating done
It looks like -lGLU is being picked up somewhere else in the build but not -lGL...
Thanks, Richard
Richard Shaw wrote:
Answering part of my own question here using the rawhide test instance:
$ pkg-config --libs glew -lGLEW -lGLU -lGL
Minimal CMake test config:
$ cmake . -- GLEW_LIBRARIES: /usr/lib64/libGLEW.so -- Configuring done -- Generating done
It looks like -lGLU is being picked up somewhere else in the build but not -lGL...
Which libraries or objects is missing the libGL linkage exactly? Is it blender or one of it's dependencies?
-- Rex
On Wed, Dec 12, 2018 at 8:41 AM Rex Dieter rdieter@gmail.com wrote:
Richard Shaw wrote:
Answering part of my own question here using the rawhide test instance:
$ pkg-config --libs glew -lGLEW -lGLU -lGL
Minimal CMake test config:
$ cmake . -- GLEW_LIBRARIES: /usr/lib64/libGLEW.so -- Configuring done -- Generating done
It looks like -lGLU is being picked up somewhere else in the build but
not
-lGL...
Which libraries or objects is missing the libGL linkage exactly? Is it blender or one of it's dependencies?
The blender and blenderplayer targets... I'm thinking this has something to do with the OpenGL_gl_PREFERNCE policy change in CMake which prefers GLVND but I'm not sure the Blender CMake config is handling it correctly.
Thanks, Richard
Ok, setting OpenGL_gl_PREFERENCE to LEGACY fixed it for now until blender updates their CMake config.
Thanks, Richard