[osg-users] How to properly compile osg with EGL support?

Omar Álvarez omar.alvarez at cinfo.es
Wed Jan 23 04:15:33 PST 2019


Hi.

I am trying to compile OSG with EGL support in order to be able to run OSG
server side without an X display server. I have installed EGL headers and
the latest and the NVIDIA driver. EGL is detected by OSG and I am
requesting GLVND GL:

cmake -DOpenGL_GL_PREFERENCE=GLVND .

I am getting linking errors:

[ 33%] Linking CXX executable ../../bin/osgversion
../../lib/libosg.so.3.6.3: undefined reference to
`glDrawArrays'../../lib/libosg.so.3.6.3: undefined reference to
`glCallList'../../lib/libosg.so.3.6.3: undefined reference to
`glPointSize'../../lib/libosg.so.3.6.3: undefined reference to
`glTexParameteriv'
../../lib/libosg.so.3.6.3: undefined reference to
`glFrontFace'../../lib/libosg.so.3.6.3: undefined reference to
`glLightModeli'../../lib/libosg.so.3.6.3: undefined reference to
`glGetBooleanv'.........

Is this the proper way for compiling OSG with EGL support?

I am using CMake 3.13, Ubuntu 18.04 and gcc 7.3. I think the way in which
the OpenGL library is linked has to change (to support the new CMake flag
OpenGL_GL_PREFERENCE).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190123/3617a46f/attachment.html>


More information about the osg-users mailing list