<div dir="ltr"><div dir="ltr"><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-top:0px">Hi.</p><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-top:0px">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:</p><div class="gmail-highlight gmail-highlight-source-shell" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;overflow:visible"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:11.9px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal">cmake -DOpenGL_GL_PREFERENCE=GLVND <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">.</span></pre></div><p style="box-sizing:border-box;margin-bottom:16px;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">I am getting linking errors:</p><div class="gmail-highlight gmail-highlight-source-shell" style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;overflow:visible"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:11.9px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal">[ 33%] Linking CXX executable ../../bin/osgversion
../../lib/libosg.so.3.6.3: undefined reference to <span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">`</span>glDrawArrays<span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-s" style="box-sizing:border-box">../../lib/libosg.so.3.6.3: undefined reference to `glCallList<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)">../../lib/libosg.so.3.6.3: undefined reference to <span class="gmail-pl-pds" style="box-sizing:border-box">`</span></span>glPointSize<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)">../../lib/libosg.so.3.6.3: undefined reference to `glTexParameteriv<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span>
../../lib/libosg.so.3.6.3: undefined reference to <span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">`</span>glFrontFace<span class="gmail-pl-s" style="box-sizing:border-box"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-s" style="box-sizing:border-box">../../lib/libosg.so.3.6.3: undefined reference to `glLightModeli<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)">../../lib/libosg.so.3.6.3: undefined reference to <span class="gmail-pl-pds" style="box-sizing:border-box">`</span></span>glGetBooleanv<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)">.........</span></pre></div><p style="box-sizing:border-box;margin-bottom:16px;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Is this the proper way for compiling OSG with EGL support?</p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px">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). </p></div></div>