1 May 2004 15:09
[PATCH] OpenGL configure check for Digikam Plugins
Dear all, As you all know there are compile problems with the slideshow plugin on some systems because the plugin needs OpenGL support to compile and relies on the fact that Qt is compiled with OpenGL support. However, that's not the case for all systems (e.g. if you use Gentoo and didn't enable the "opengl" use flag before emerging Qt) and therefore the compilation of the slideshow plugin fails. The attached patch adds two more flags to the "configure" of the digikam plugins: "--enable-opengl" and "--with-mesa". The first one enables (external) OpenGL support and the second one can be used if someone prefers to use the Mesa OpenGL libraries. If you don't provide the "--enable-opengl" flag, configure notifies the user that the slideshow plugin needs on OpenGL support in Qt (this is the default). I tested all combinations on my machine and it seems to work fine. Please note that almost the entire configure macro (MDL_HAVE_OPENGL) is NOT my "invention"! I found the macro on ac-archive.sourceforge.net and modified it to match the Digikam Plugins requirements (see the comments in the patched configure.in.in file). The patch has been created against the latest CVS code of the Digikam Plugins, by the way. I would kindly ask you to try it out and let me know what you think. This is the first version of the patch so there's probably room for improvements. If you think this is useful you/we may also make it(Continue reading)
RSS Feed