<div dir="ltr"><div><div><div><div><div><div>Hello. <br><br></div>I have been trying to build OSMesa as a static library, to remove dependency on OSMesa when I distribute binaries. <br><br>However, I do not see a static library libOSMesa.a in Mesa-9.1.4/lib after build finished. I don't even see libOSMesa.so.8.0.0 which libOSMesa.so is linked to. <br>
Does anybody know how to build OSMesa as a static library ? <br><br></div>What I got in lib directory after build finished are as follows : <br><br>drwxrwxr-x 3 wlee wlee 4096 Jul 12 10:27 .<br>drwxrwxr-x 11 wlee wlee 4096 Jul 12 10:32 ..<br>
drwxrwxr-x 2 wlee wlee 4096 Jul 12 10:21 gallium<br>-rwxrwxr-x 2 wlee wlee 3050908 Jul 12 10:17 i915_dri.so<br>-rwxrwxr-x 2 wlee wlee 8611291 Jul 12 10:18 i965_dri.so<br>lrwxrwxrwx 1 wlee wlee 11 Jul 12 09:45 libEGL.so -> libEGL.so.1<br>
-rwxrwxr-x 1 wlee wlee 394044 Jul 12 09:45 libEGL.so.1<br>lrwxrwxrwx 1 wlee wlee 13 Jul 12 10:12 libglapi.so -> libglapi.so.0<br>lrwxrwxrwx 1 wlee wlee 17 Jul 12 10:12 libglapi.so.0 -> libglapi.so.0.0.0<br>
-rwxrwxr-x 2 wlee wlee 978056 Jul 12 10:12 libglapi.so.0.0.0<br>lrwxrwxrwx 1 wlee wlee 10 Jul 12 10:19 libGL.so -> libGL.so.1<br>-rwxrwxr-x 2 wlee wlee 2863707 Jul 12 10:19 libGL.so.1<br>lrwxrwxrwx 1 wlee wlee 18 Jul 12 10:18 libOSMesa.so -> libOSMesa.so.8.0.0<br>
lrwxrwxrwx 1 wlee wlee 18 Jul 12 10:18 libOSMesa.so.8 -> libOSMesa.so.8.0.0<br>-rwxrwxr-x 2 wlee wlee 2416640 Jul 12 10:18 nouveau_vieux_dri.so<br>-rwxrwxr-x 2 wlee wlee 2399741 Jul 12 10:18 r200_dri.so<br>-rwxrwxr-x 2 wlee wlee 2236930 Jul 12 10:18 radeon_dri.so<br>
-rwxrwxr-x 2 wlee wlee 149592 Jul 12 10:18 swrast_dri.so<br><br><br></div></div></div></div><br><div><div></div>I configured it with the following option : <br>./configure --enable-osmesa --disable-dri --enable-static <br>
<br></div><div>and the it gave me the followings: <br></div><div><br> prefix: /usr/local<br> exec_prefix: ${prefix}<br> libdir: ${exec_prefix}/lib<br> includedir: ${prefix}/include<br>
<br> OpenGL: yes (ES1: no ES2: no)<br> OpenVG: no<br><br> OSMesa: libOSMesa<br> GLX: no<br><br> EGL: no<br><br> llvm: yes<br>
llvm-config: /usr/bin/llvm-config<br> llvm-version: 2.9<br><br> Gallium: yes<br> Gallium dirs: auxiliary drivers state_trackers<br> Target dirs: <br> Winsys dirs: sw <br>
Driver dirs: galahad identity llvmpipe noop r300 r600 rbug softpipe svga trace <br> Trackers dirs: <br><br> Shared libs: no<br> Static libs: yes<br> Shared-glapi: no<br>
<br>
CFLAGS: -g -O2 -Wall -std=c99
-Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-strict-aliasing -fno-builtin-memcmp<br> CXXFLAGS: -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp<br> Macros: -D_GNU_SOURCE -DHAVE_PTHREAD -DUSE_X86_64_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LLVM=0x0209<br>
<br> LLVM_CFLAGS: -I/usr/lib/llvm-2.9/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS<br>
LLVM_CXXFLAGS: -I/usr/lib/llvm-2.9/include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-exceptions -fPIC
-Woverloaded-virtual -Wcast-qual<br> LLVM_CPPFLAGS: -I/usr/lib/llvm-2.9/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS<br><br> PYTHON2: python2<br><br> Run 'make' to build Mesa<br>
<br><br></div><div>Thanks in advance. <br></div><div>Wonwoo Lee <br></div></div>