[Slackbuilds-users] OpenSubdiv linking issue
Christoph Willing
chris.willing at linux.com
Sat Apr 15 01:06:06 UTC 2023
On 15/4/23 01:14, Tim Dickson via SlackBuilds-users wrote:
> hi all, I'm attempting to build OpenSubdiv with optional deps tbb and
> glfw3 and am getting a linking error
>
> [ 33%] Linking CXX executable ../../bin/glViewer
> /usr/bin/ld:
> ../common/CMakeFiles/examples_common_gl_obj.dir/clDeviceContext.cpp.o:
> in function `CLDeviceContext::Initialize()':
> clDeviceContext.cpp:(.text+0x1b3): undefined reference to
> `glXGetCurrentContext'
> /usr/bin/ld: clDeviceContext.cpp:(.text+0x1bd): undefined reference to
> `glXGetCurrentDisplay'
> collect2: error: ld returned 1 exit status
> make[2]: *** [examples/glViewer/CMakeFiles/glViewer.dir/build.make:149:
> bin/glViewer] Error 1
> make[1]: *** [CMakeFiles/Makefile2:4055:
> examples/glViewer/CMakeFiles/glViewer.dir/all] Error 2
> make: *** [Makefile:146: all] Error 2
>
> any ideas?
> thanks, Tim
I have a fix - unfortunately I just missed the cutoff time to submit it
for latest SBo updates today :(
The fix is to add the line:
sed -i -e '/${OPENGL_gl_LIBRARY}/a${OPENGL_glx_LIBRARY}' CMakeLists.txt
between the lines:
cd $PRGNAM-$SRCVER
and:
chown -R root:root .
chris
More information about the SlackBuilds-users
mailing list