mesa egl drm _eglMain() issue

Sergey Omelchenko <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CA+6rzjnzEs7BLQv5dq40HOXcQynZjkJ78DmzwfRe588O4_umQw@mail.gmail.com>
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

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.