As discussed on the list & bug reports, on some systems, the QImage producers requires an initialization of KDE core components to be able to read extra formats like xcf. This patch fixes the problem on my test Ubuntu 12.04
Fix loading of extra image formats using Kdelibs (xcf, ...)
This is not an ideal approach. Is there no way to do this with pkg-config or similar?
kde-config is absolutely fine! Do we need to test for its existence, or I guess if an error message goes into kde_includedir it will fail the subsequent test for valid directory. Thank you for taking care of this.
Use kde4-config to detect KDE4