[Mesa-dev] egl demo apps failing to link

Chia-I Wu olvaffe at gmail.com
Tue May 4 21:02:40 PDT 2010


On Wed, May 5, 2010 at 5:01 AM, Gregory Prisament
<greg at lycheesoftware.com> wrote:
> Hi,
> I just did a "git pull" and I'm no longer able to build the egl demo apps
> (mesa/progs/egl/opengles1/* and mesa/progs/egl/opengles2/*).  These were
> working for me previously.
>
> ES1:
> gcc -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math
> -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM
> -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN
> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
> -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS bindtex.o -L../../../lib -lEGL
> -L../../../lib -lGLESv1_CM -L/usr/local/lib -ldrm   -lX11   -o bindtex
> ../../../lib/libGLESv1_CM.so: undefined reference to `driDispatchRemapTable'
> ../../../lib/libGLESv1_CM.so: undefined reference to
> `_mesa_init_remap_table_es1'
> ../../../lib/libGLESv1_CM.so: undefined reference to
> `_mesa_create_exec_table_es1'
> ../../../lib/libGLESv1_CM.so: undefined reference to `_mesa_GetIntegerv'
> collect2: ld returned 1 exit status
>
> ES2:
> gcc -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math
> -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM
> -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN
> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
> -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS es2_info.o -L../../../lib -lEGL
> -L../../../lib -lGLESv2 -L/usr/local/lib -ldrm   -lX11    -o es2_info
> ../../../lib/libGLESv2.so: undefined reference to
> `_mesa_init_remap_table_es2'
> ../../../lib/libGLESv2.so: undefined reference to `driDispatchRemapTable'
> ../../../lib/libGLESv2.so: undefined reference to `_mesa_GetIntegerv'
> ../../../lib/libGLESv2.so: undefined reference to
> `_mesa_create_exec_table_es2'
> collect2: ld returned 1 exit status
>
> The VG tests work just fine.
>
> I'm using an Ubuntu 9.10 system and building Mesa/Gallium by doing the
> following steps:
>
> cd $WORKDIR/mesa
> ./autogen.sh --with-state-trackers=egl,es,vega --enable-gallium-swrast
> make
> export LD_LIBRARY_PATH=$WORKDIR/mesa/lib:$LD_LIBRARY_PATH
> export EGL_DRIVER=$WORKDIR/mesa/lib/egl_x11_swrast.so
>
> The build succeeds with no errors.
>
> I'm sync'd to:
>      commit 6a191b2713d0670f65d489cf947261fe36c5ee89
>      Author: Kristian Høgsberg <krh at bitplanet.net>
>      Date:   Tue May 4 15:29:25 2010 -0400
>
> Previously the ES1 & ES2 demo apps built & ran just fine, when I was sync'd
> to:
>     commit 52f145a186b8e47439fb4a96d04a099d439477b7
>     Author: Zack Rusin <zackr at vmware.com>
>     Date:   Mon Apr 26 13:51:47 2010 -0400
>
> I'm still kinda new to all of this so please be patient if I'm doing
> something stupid ;)
It should be fixed by a6ec1538.  There are some build issues due to the recent
work on OpenGL ES DRI drivers.  Sorry for the inconvenience.

-- 
olv at LunarG.com


More information about the mesa-dev mailing list