[osg-users] How to properly compile osg with EGL support?
Trajce Nikolov NICK
trajce.nikolov.nick at gmail.com
Wed Jan 23 12:59:18 PST 2019
Hi Omar,
we are trying to get this running as well. Julien's hints should be enough
to get it built. I also wrote some code to support EGL based on some
off-list disucussion we had with Chris. All was great but got some crashes
in osg and was not able to actually run it. I can share my work with you
(tomorrow) if you want to give it a try and maybe together we make it work
and share it with the community?
Cheers,
Nick
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Jan 23, 2019 at 7:51 PM Chris Hanson <xenon at alphapixel.com> wrote:
> I know of a couple other people trying to do this. Let me know how you get
> on with the X-less OSG.
>
> On Wed, Jan 23, 2019 at 7:31 PM Julien Valentin <
> julienvalentin51 at gmail.com> wrote:
>
>> few advices:
>> check your driver support with eglinfo
>> try adding -legl to the linker flags
>> try VERBOSE=1 make
>> to check used linkerflags
>> Cheers
>>
>>
>>
>> Omar Álvarez wrote:
>> > 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).
>> >
>> > ------------------
>> > Post generated by Mail2Forum
>>
>>
>> ------------------------
>> Twirling twirling twirling toward freedom
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=75535#75535
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> --
> Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
> http://www.alphapixel.com/
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
> • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
> iPhone/iPad/iOS • Android
> @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
> 623-PIXL [7495]
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
trajce nikolov nick
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190123/498fa05c/attachment.html>
More information about the osg-users
mailing list