Re: mesa egl drm _eglMain() issue
Cooper Yuan <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <CAOc=iHWhc1xwRbtqwdh0SkXN29GinF=Lnpv7oqdW9f02d+pD7Q@mail.gmail.com> |
Try "export EGL_DRIVER=egl_gallium" On Sun, Aug 14, 2011 at 12:10 PM, Chia-I Wu <[email protected]> wrote: > On Fri, Aug 12, 2011 at 11:16 PM, Sergey Omelchenko <[email protected]> > wrote: > > I`m trying to start egl app (erlgears_screen from demos) on linux > > framebuffer with drm platform (with enabled and disabled KMS) with i915 > > module. > > Mesa configuration: > > autoreconf -vfi > > ./configure --prefix=/usr \ > > --with-dri-driverdir=/usr/lib/xorg/modules/dri \ > > --with-gallium-drivers=r300,r600,nouveau,swrast \ > > --enable-gallium-llvm \ > > --disable-gallium-egl --with-egl-platforms=drm --enable-gbm > > --enable-shared-glapi \ > > --enable-glx-tls \ > > --with-driver=dri \ > > --enable-xcb \ > > --disable-glut \ > > --enable-gles1 \ > > --enable-gles2 \ > > --enable-egl \ > > --enable-texture-float \ > > --enable-shared-dricore > > Environment: > > EGL_PLATFORM=drm > > EGL_LOG_LEVEL=debug > > EGL_DRIVER=/usr/lib/egl/egl_dri2.so > > App error output: > > libEGL debug: EGL search path is /usr/lib/egl:/usr/lib/egl > > libEGL debug: added /usr/lib/egl/egl_dri2.so to module array > > libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so) > > libEGL warning: _eglMain not found in /usr/lib/egl/egl_dri2.so > > (/usr/lib/egl/egl_dri2.so: undefined symbol: _eglMain) > > libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in > eglInitialize > > EGLUT: failed to initialize EGL display > egl_dri2 is now a built-in driver so EGL_DRIVER should not be set. > But even so, egl_dri2 does not support EGL_MESA_screen_surface so all > *_screen demo will not run. You can give eglkms demo a try. > > > Strace output: > > ............... > > getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 > > brk(0) = 0x2120000 > > brk(0x2141000) = 0x2141000 > > geteuid() = 0 > > getuid() = 0 > > getegid() = 0 > > getgid() = 0 > > geteuid() = 0 > > getuid() = 0 > > getegid() = 0 > > getgid() = 0 > > access("/usr/lib/egl/egl_dri2.so", F_OK) = 0 > > futex(0x7f2cd35e70a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 > > open("/usr/lib/egl/egl_dri2.so", O_RDONLY) = 3 > > read(3, > > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\25\0\0\0\0\0\0"..., > 832) > > = 832 > > fstat(3, {st_mode=S_IFREG|0755, st_size=24256, ...}) = 0 > > mmap(NULL, 2119408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) > = > > 0x7f2cd27bd000 > > mprotect(0x7f2cd27c2000, 2097152, PROT_NONE) = 0 > > mmap(0x7f2cd29c2000, 4096, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f2cd29c2000 > > close(3) = 0 > > write(2, "libEGL warning: _eglMain not fou"..., 118) = 118 > > munmap(0x7f2cd27bd000, 2119408) = 0 > > write(2, "EGLUT: ", 7) = 7 > > write(2, "failed to initialize EGL display", 32) = 32 > > write(2, "\n", 1) = 1 > > exit_group(1) = ? > > > > What I do wrong? > > Please, help! > > > > > > > > > > _______________________________________________ > > mesa-users mailing list > > [email protected] > > http://lists.freedesktop.org/mailman/listinfo/mesa-users > > > > > > > > -- > [email protected] > _______________________________________________ > mesa-users mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/mesa-users > _______________________________________________ mesa-users mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-users