[Mesa-dev] OSMesa glapi linlking

Matt Turner mattst88 at gmail.com
Wed Jan 25 08:58:22 PST 2012


On Wed, Jan 25, 2012 at 11:40 AM, Kevin H. Hobbs <hobbsk at ohio.edu> wrote:
> My build of OSMesa from git is failing:
>
> ./autogen.sh \
>  --prefix=/home/kevin/mesa_osmesa/ \
>  --disable-dri \
>  --disable-glx \
>  --enable-osmesa

Unrelated (related to another thread recently) but, did you mean to
build Gallium (and whatever drivers configure determined your system
could build)? If you didn't want Gallium, you should use
--with-gallium-drivers=""

> /bin/sh ../../../../bin/mklib -o OSMesa -linker 'g++' -ldflags '' \
>        -major 8 -minor 0 -patch 0 \
>        -install ../../../../lib -cplusplus  \
>        -id /home/kevin/mesa_osmesa/lib/libOSMesa.8.dylib \
>        -L../../../../lib -lglapi -L../../../../lib  -lm -lpthread  -ldl
> osmesa.o ../../../../src/mesa/libmesa.a
> ../../../../src/mapi/glapi/libglapi.a ../../../../src/glsl/libglsl.a
> mklib: Making Linux shared library:  libOSMesa.so.8.0.0
> /usr/bin/ld: cannot find -lglapi

What git hash did you use? I can't reproduce this.

As with most Mesa build errors, you should do a `make clean` or `git
clean -dfx`.


More information about the mesa-dev mailing list