this is a patch against qt-3.1.2 that makes qt + kde prelinkable (Weeee ) instructions, as snipped : It is often quite difficult to use prelink with KDE because QT depends on libGL.so and libGL.so is often compiled as a non-PIC library for performance reasons. The NVidia libraries are compiled this way, and I cannot recompile them in PIC mode for lack of source. Sigh. This is frustrating because 95% of the KDE executables do not need libGL. Why not make QT load libGL when it needs it only? The attached patch does this. It creates little stubs for all the openGL functions needed by QT. libGL.so is loaded with dlopen the first time one of these stubs is called. Otherwise the stub simply calls the required function. Rough recipe: * Get the qt-3.1.2 package for your distribution. * Apply the distribution specific patches (e.g. redhat9 has a lot of them...) * Apply the attached patch. * Run the script 'configure' that comes with Qt with the appropriate options. * Edit the file src/Makefile to remove -lGL from the command for linking qt.so. * Make.
I just received word that Qt 3.3.0 will allow you to compile Qt with an option to make libGL dlopenable. I am currently testing this feature right now on the commercial version.
ohh, neat. Hope that will get in nicely, it'd sure give a speedboost here
Now supported in latest qt 3.3 and qt-copy cvs ebuilds.
so it's fixed with qt 3.3