octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build liboctinterp.so without linking to libGL.so


From: John W. Eaton
Subject: Re: build liboctinterp.so without linking to libGL.so
Date: Thu, 28 Jul 2016 09:56:48 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

On 07/28/2016 09:22 AM, Andreas Weber wrote:
Hi all,
is it possible to create a version of liboctinterp.so which doesn't link
libGL.so? Or is it possible to remove the references to libGL.so after
compilation? I tried this with "objcopy -N" but wasn't successful yet.

I ask because it should be possible to create a external helper tool
which loads a figure with hgload and then renders this using osmesa to a
bitmap format or uses gl2ps to create vector formats. This should avoid
the problem with proprietary drivers which aren't build on top of MESA
(for example NVIDIA proprietary drivers).

Yes, we could avoid linking liboctinterp with libGL by dynamically loading the OpenGL library and calling the functions we need through function pointers instead of doing that directly. Then (I think) we could load and unload OpenGL libraries as needed and switch between implementations.

But it would not solve the problem of having liboctgui linked with OpenGL libraries because we use libQtOpenGL and it links directly with libGL.

jwe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]