marble try to use kde4-config during build. If you disable kde flag in marble required dependencies (kdelibs AFAIK) isn't pulled, but marble still try to use kde4-config Reproducible: Always Steps to Reproduce:
Same problem happened to me on 4.0.5.
Please test with 4.2
Still happens with 4.2.3
Just to let you know - marble buildsystem is flawed in many ways: - non KDE build requiring KDE (explicitly!) - using KDE macros (not providing any private copies) - lack of python detection code when building exclusively in marble dir (they are in top level dir - brilliant!) - designer plugin fails to build in QT only mode (unable to find .moc file but it's built) - parallel compilation issue (at least when using Qt only mode)
I really don't know whether it's worth supporting Qt-only cmake codepath - to avoid future issues ("Qt only version installs in kdeprefix" or "python bindings are not actually built" or "no designer plugin when building in Qt only version") I'd just require kdelibs for it until it's handled properly by upstream (with some pressure from downstream).
Ok then lets drop the -kde useflag. Play it safe
kde useflag dropped. Problem solved. Speak with upstream if you want to have it optional.