[Qt-interest] qglwidget, qtgui and a qmlviewer segfault
Lorenzo Marussi
info at lorenzomarussi.it
Thu May 5 10:56:01 CEST 2011
Il 04/05/2011 18:32, Benjamin ha scritto:
> 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
I checked that opengl is set on "nvidia", and mesa on "classic" (but
with nvidia I didn't use mesa)
gxgears works and glxinfo says direct rendering is working, dri is set
in xorg.conf
But I still get a segmentation fault error on libQtGui every time I try
to set QGLWidget viewport (or using qmlviewer with -opengl)
any suggestion?
Thanks
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list