[Qt-interest] qglwidget, qtgui and a qmlviewer segfault

Benjamin bebl at mageta.org
Wed May 4 18:32:39 CEST 2011


Am 04.05.2011 17:55, schrieb Lorenzo Marussi:
> Hello,
>
> I use Gentoo/LInux OS, with lastest Qt4.7.2 ebuilds,
> and a Nvidia card or intel graphics (and mesa)
>
> when I run qmlviewer with "opengl" params, I get this error:
>
> "qmlviewer[6399]: segfault at 1763 ip b6a73630 sp bfa0ee00 error 4 in
> libQtGui.so.4.7.4[b6887000+a1e000]"
>
> no matter wich .QML I use.
>
> also this one exists with error:
>
> import QtQuick 1.0
> Rectangle {
>        id: mainView
>        width: 1920
>        height: 1080
> }
>
>
> If I run it without "opengl" param, It works
>
> How Can I use qmlviewer and opengl?
>
> Maytbe It's something wrong about QtGui , QtDeclarative and qglwidget?
>
>
> Thanks,
> Lorenzo Marussi
Well this isn't the gentoo-list, but 'cause I use gentoo on my own 
machines, have you set the right mesa/x11-driver with eselect?

eselect opengl list ... / eselect opengl set ...
eselect mesa list ... / eselect mesa set (32bit|64bit) ...
/etc/init.d/xdm restart

Is your direct-rendering active? (glxinfo | grep direct)
Is glxgears working properly? (packet: x11-apps/mesa-progs)

Have you enabled all opengl-use-flags in your qt-builds and have you 
enabled the opengl-flag in your project-file? Back in the days with 
xorg-conf you also had to add a section "DRI" to gain access to the 
graphic-memory (I still don't know what standard is used today, I still 
have a xorg.conf :D)

Section "DRI"
     MODE    0666
EndSection

I doubt that this is a qt-problem. I never had problems with qt+opengl 
and gentoo.

best regards,
- Ben



More information about the Qt-interest-old mailing list