Summary: | Krita compilation fails if Qt not built with opengl | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Caleb Tennis <caleb> |
Component: | General | Assignee: | Adrian Page <adrian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Caleb Tennis
2006-05-05 16:06:19 UTC
I'll have a look at this. SVN commit 538361 by page: Check that Qt has been built with OpenGL support, rather than just checking for its existence on the system. BUG:126805 M +2 -1 configure.in.bot M +9 -1 configure.in.in --- branches/koffice/1.5/koffice/krita/configure.in.bot #538360:538361 @@ -19,7 +19,8 @@ fi if test -z "$GLLIB"; then echo "" - echo "You're missing OpenGL libraries. krita will" + echo "You're missing OpenGL libraries or Qt has been" + echo "built without OpenGL support. krita will" echo "not be able to use OpenGL for hardware" echo "accelerated rendering." echo "" --- branches/koffice/1.5/koffice/krita/configure.in.in #538360:538361 @@ -95,8 +95,16 @@ # --- OpenGL check --- -AC_HAVE_GL( [], [] ) +AC_MSG_CHECKING([for Qt OpenGL support]) +# check if Qt is linked against GL +KDE_CHECK_LIB(qt-mt,glBegin,[have_qt_opengl=yes],[have_qt_opengl=no]) + +if test "$have_qt_opengl" = 'yes'; then + # Get the libs, include path etc. + AC_HAVE_GL( [], [] ) +fi + # --- End of OpenGL check --- # Check for powf. Reopening as the fix gave false negatives and has been reverted. yep, this is still persistant in koffice 1.5.1 Fixed in trunk, where we use cmake's QT_QTOPENGL_FOUND check. |