From: Andreas P. <and...@gm...> - 2010-03-11 14:06:38
|
Hi, I work on: b8656c4825b9e054f05258773ba012e41d4fcdee I have two rather strange problems using egl. I have implemented a egl/es2/libX11 based renderer shared object file. The shared object file gets loaded and initialized using dlopen/dlsym. Then when the renderer is supposed to initialize EGL, and to create a window I run into runtime symbol lookup errors. ./Startup: symbol lookup error: /usr/local/lib/egl/egl_x11_swrast.so: undefined symbol: _eglInitDriverFallbacks When I add the following to the makefiles - it seems to work. --- a/src/gallium/winsys/drm/swrast/egl/Makefile +++ b/src/gallium/winsys/drm/swrast/egl/Makefile @@ -3,7 +3,7 @@ include $(TOP)/configs/current EGL_DRIVER_NAME = swrast EGL_DRIVER_SOURCES = dummy.c -EGL_DRIVER_LIBS = +EGL_DRIVER_LIBS = -lEGL EGL_DRIVER_PIPES = \ $(TOP)/src/gallium/winsys/drm/swrast/core/libswrastdrm.a \ Then the eglInitialize() command still fails because of something else. When I run the application with the following settings: EGL_DRIVER=egl_x11_swrast EGL_SOFTWARE=1 EGL_DISPLAY=x11 EGL_LOG_LEVEL=debug I get: libEGL debug: dlopen(/usr/local/lib/egl/egl_x11_swrast.so) libEGL info: use software fallback libEGL warning: No supported client API libEGL debug: no state tracker supports config 0x21 ... till ... libEGL debug: no state tracker supports config 0x98 libEGL debug: EGL user error 0x3001 (other) in eglInitialize(unable to add configs) The demos in mesa/progs/egl give me the same output. While the demos in mesa/progs/{es2,es1}/xegl and work. Any ideas what I am doing wrong? regards Andreas Pokorny |