Need help with QT 5.1 / xcb



  • Hello,

    I cross-compiled QT5.1 with the following configure (everything i write here worked with QT4.7 :( ):

    ./configure -opensource -xplatform linux-armv7-a-g++ -no-neon -prefix /opt/ARM/qt -nomake tests -nomake examples -no-qml-debug -optimized-qmake -skip qtquick1 -skip qtdeclarative -skip qtquickcontrols -no-opengl -qpa xcb -no-javascript-jit -v -qt-libpng -qt-libjpeg -no-iconv

    and after an error-less compilation i deployed the compiled QT libs (after make install) to my embedded machine (ARM CORTEX A8, S5PV210). On the Embedded pc is a icewm based desktop and Xserver running/installed, all xcb libs are installed too. When i try to run my QT application it starts without Error messages / Errors but i can not see any window on the screen. Has someone an idea how to solve this issue?

    any help would be appreciated

    Gilberto Rossi


  • Moderators

    Remove -no-opnegl.



  • Do you have any idea where to get open gl libs for the s5pv210??


  • Moderators

    No. The only idea is Mesa project, but that may be suboptimal.

    Try if it works. QtWidgets don't use OpenGL, but QtGui has some soft dependency on it, AFAIK. Maybe you can hack around it ;P



  • Hello,

    i procured a version of Opengl ES2 for my machine, recompiled QT after a make clean with the configure:

    ./configure -opensource -xplatform linux-armv7-a-g++ -no-neon -prefix /opt/ARM/qt -nomake tests -nomake examples -no-qml-debug -optimized-qmake -skip qtquick1 -skip qtdeclarative -skip qtquickcontrols -qpa xcb -no-javascript-jit -qt-libpng -qt-libjpeg -no-iconv -eglfs -opengl es2

    The Issue didnt solve, my QT app starts without error messages but does not show any window :(



  • Hi,

    I'm working on Qt5 on a custom board around s5pv210. I have the same problem as yours. Could you manage to solve your problem?
    I think I don't have DRI driver in kernel. (i'm using linux 2.6.35.7)

    any help would be most welcomed!

    EDIT: there is no problem when I use "-platform linuxfb" . but when I use "-platform eglfs" , there is an error message:
    gbm_create_device: invalid fd: -1
    Could not initialize egl display

    EGL error
    Aborted

    when I use strace, I can see (among others):
    ...
    access("/usr/lib/egl/egl_gallium.so", F_OK) = -1 ENOENT (No such file or directory)
    open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    write(2, "gbm_create_device: invalid fd: -"..., 34gbm_create_device: invalid fd: -1
    ) = 34
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
    fstat64(5, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
    mmap2(NULL, 64, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40021000
    close(5) = 0
    open("/lib/libGL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libGL.so", O_RDONLY|O_CLOEXEC) = 5
    read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340!\1\0004\0\0\0"..., 512) = 512
    fstat64(5, {st_mode=S_IFREG|0755, st_size=342684, ...}) = 0
    mmap2(NULL, 375552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x415f0000
    mprotect(0x41642000, 32768, PROT_NONE) = 0
    mmap2(0x4164a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x52000) = 0x4164a000
    close(5) = 0
    open("/lib/libXext.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libXext.so.6", O_RDONLY|O_CLOEXEC) = 5
    read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\364)\0\0004\0\0\0"..., 512) = 512
    fstat64(5, {st_mode=S_IFREG|0755, st_size=52836, ...}) = 0
    mmap2(NULL, 84564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x4164c000
    mprotect(0x41659000, 28672, PROT_NONE) = 0
    mmap2(0x41660000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xc000) = 0x41660000
    close(5) = 0
    open("/lib/libXdamage.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libXdamage.so.1", O_RDONLY|O_CLOEXEC) = 5
    read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\364\t\0\0004\0\0\0"..., 512) = 512
    fstat64(5, {st_mode=S_IFREG|0755, st_size=6936, ...}) = 0
    mmap2(NULL, 38452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x41661000
    mprotect(0x41663000, 28672, PROT_NONE) = 0
    mmap2(0x4166a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x1000) = 0x4166a000
    close(5) = 0
    open("/lib/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = 5
    read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 \21\0\0004\0\0\0"..., 512) = 512
    fstat64(5, {st_mode=S_IFREG|0755, st_size=14928, ...}) = 0
    mmap2(NULL, 46492, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x4166b000
    mprotect(0x4166f000, 28672, PROT_NONE) = 0
    mmap2(0x41676000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3000) = 0x41676000
    close(5) = 0
    open("/lib/libxcb-glx.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libxcb-glx.so.0", O_RDONLY|O_CLOEXEC) = 5
    read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\10\200\0\0004\0\0\0"..., 512) = 512
    fstat64(5, {st_mode=S_IFREG|0755, st_size=61400, ...}) = 0
    mmap2(NULL, 92848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x41677000
    mprotect(0x41685000, 32768, PROT_NONE) = 0
    mmap2(0x4168d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xe000) = 0x4168d000
    close(5) = 0
    munmap(0x40021000, 64) = 0
    write(2, "Could not initialize egl display"..., 34Could not initialize egl display

    ) = 34
    write(2, "EGL error\n", 10EGL error
    ) = 10
    rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
    tgkill(1292, 1292, SIGABRT) = 0
    --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=1292, si_uid=0} ---
    +++ killed by SIGABRT +++
    Aborted

    I'm ready to give you any other info about the problem.
    Thank you


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.