[Bf-committers] Compiling for Linux with static libraries. Need 'libGL.a'.

Sergey Sharybin sergey.vfx at gmail.com
Thu Apr 16 10:07:34 CEST 2015


I don't think it's good idea to link against libGL statically. That would
mean you'll link against particular driver which would make your binary
unportable onto computer with different video card. Such static link could
also imply linking statically against much more libraries (which libGL
uses) making your binary really huge.

Official release builds are linked dynamically against libGL which means
user machine should have video driver installed, which is not so bad
requirement assuming blender is a 3d software :)

P.S. You can see what libraries are linked dynamically using `ldd
./blender` on the binary from official release archive.

On Thu, Apr 16, 2015 at 4:13 AM, Ryan Montes <ryenmontes at gmail.com> wrote:

> When setting the Scons config to build with static libraries, for mesa it
> is looking for libGL.a which I do not have. I am trying to compile the mesa
> source as a static library. I got the source for Mesa 10.2.2 and ran the
> configure passing the option --enable-static. However this still only gives
> me libGL.so and not libGL.a. Any help would be appreciated thanks!
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
With best regards, Sergey Sharybin


More information about the Bf-committers mailing list