You are not logged in.

#1 2011-08-02 21:50:06

arieserg
Member
Registered: 2011-01-07
Posts: 3

egl issue

I am trying to run EGL app on framebuffer with DRM platform, but no luck..

Environment setup:
EGL_PLATFORM=drm
EGL_LOG_LEVEL=debug
EGL_DRIVER=/usr/lib/egl/egl_dri2.so

Output:
dri2: could not get parent device

The same with egl_gallium driver from git and other machines

Please, help!

Offline

#2 2011-08-04 22:28:20

Demon
Member
From: Republic of Srpska, BA
Registered: 2008-03-02
Posts: 246

Re: egl issue

I had something similar when I was trying to start wayland-compositor. I eventually gave up, so good luck with these.
You should report your mesa stack version here.

Offline

#3 2011-08-12 13:17:09

arieserg
Member
Registered: 2011-01-07
Posts: 3

Re: egl issue

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

after update to mesa 7.11 with the same environment I have the following output:
_eglMain not found in /usr/lib/egl/el_dri2.so

Is this a link problem?

Offline

#4 2011-08-12 15:19:52

arieserg
Member
Registered: 2011-01-07
Posts: 3

Re: egl issue

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?

Offline

Board footer

Powered by FluxBB