Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46287 - Qt: Build with no-dl-opengl
Summary: Qt: Build with no-dl-opengl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 40986
  Show dependency tree
 
Reported: 2004-03-30 13:38 UTC by Don Seiler (RETIRED)
Modified: 2004-08-09 14:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Seiler (RETIRED) gentoo-dev 2004-03-30 13:38:56 UTC
Those of us trying to get digikam plugins to work ran into problems with Qt, which were resolved when removing the "-dlopen-opengl" flag from the Gentoo ebuild.  From the configure, it looks like this is the default setting:

 *  -no-dlopen-opengl .. Qt links against OpenGL libraries directly.
    -dlopen-opengl ..... Qt uses dlopen(3) to resolve OpenGL functions
                         (instead of linking with OpenGL libraries directly).

I'm no OpenGL expert, but why not link against OpenGL directly?
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-04-08 10:30:06 UTC
The reason it's done this way is because a lot of people use the nvidia drivers, which comes with its own version of GL, which isn't binary compatible.

So they build their system, then install the nvidia drivers, then use a qt program, and complain about it crashing.  This fixed that.

I suppose we need to look into offering it via a configuration option.
Comment 2 Don Seiler (RETIRED) gentoo-dev 2004-04-08 10:40:55 UTC
True.  For some reason I thought there was an 'nvidia' USE flag that would be usable but now that I check I guess it was all in my head.

I wonder if those digikam plugins build on an nvidia system with the current Qt setup.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-09 05:10:20 UTC
Also with this option it is possible to prelink qt even if you use the (not prelinkable) nvidia drivers.
Comment 4 Benjamin Greiner 2004-04-09 14:03:08 UTC
Is that digikam plugin the only program that needs the direct link to the OpenGl-libs? There are other Qt-based progs which use OpenGL and work pretty fine with -dlopen-opengl. How do they resolve this?

The digikamplugin problem is resolved now by using -lGL directly
Comment 5 Don Seiler (RETIRED) gentoo-dev 2004-08-09 14:06:45 UTC
I believe that the digikam situation is resolved and this may be closable?  I don't use digikam anymore so I can't say.
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-08-09 14:11:24 UTC
sounds safe to close to me.