[Mesa-users] Building linux-opengl-es debug

Chia-I Wu olvaffe at gmail.com
Tue Jun 22 06:46:53 PDT 2010

On Tue, Jun 22, 2010 at 5:17 PM, Sajith T S <sajith at gmail.com> wrote:
> I'm building a debug version of libGLESv2.so using Mesa 7.8.1 release.
> I changed the include line in configs/linux-opengl-es as follows:
>    include $(TOP)/configs/linux-debug
> I could build the library, but it's missing some symbols.  For
> example, when building the demo programs:
>    sajith at box:~/stuff/Mesa-7.8.1/progs/es2/xegl$ make
>    gcc -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
>    -Wpointer-arith -g -fPIC -D_POSIX_SOURCE \
>    -std=c99 \ -ffast-math -fno-strict-aliasing -pedantic es2_info.o \
>    -L../../../lib -lEGL -L../../../lib -lGLESv2 -lX11 -o es2_info
>    ../../../lib/libGLESv2.so: undefined reference to `_mesa_clip_np_tab'
>    ../../../lib/libGLESv2.so: undefined reference to `_mesa_transform_tab'
>    ../../../lib/libGLESv2.so: undefined reference to `_mesa_clip_tab'
>    ../../../lib/libGLESv2.so: undefined reference to `_mesa_normal_tab'
>    collect2: ld returned 1 exit status
>    make: *** [es2_info] Error 1
> Any clues?  Thanks in advance!
Mesa state tracker, that GLES uses, does not include m_xform.c that defines
those symbols.  I am not familiar with the code there.  Removing -DDEBUG_MATH
from the config might workaround the issue.

olv at LunarG.com

More information about the mesa-users mailing list