https://bugs.kde.org/show_bug.cgi?id=377920
Bug ID: 377920 Summary: KCrash does not build when no X11 is available (Wayland) Product: frameworks-kcrash Version: 5.31.0 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: fa...@kde.org Reporter: a...@piggz.co.uk CC: kdelibs-b...@kde.org Target Milestone: --- When trying to build kde frameworks for SailfishOS, i found that kcrash fails to build because of the following function in kcrash.cpp. // The following functions copy&pasted from kinit/wrapper.cpp : // (which copied it from kdeinit/kinit.cpp) static const char* displayEnvVarName_c() { // Can't use QGuiApplication::platformName() here, there is no app instance. #if HAVE_X11 return "DISPLAY"; #elif defined(Q_OS_OSX) return "MAC_DISPLAY"; #elif defined(Q_OS_WIN) return "WIN_DISPLAY"; #endif } The error is that the function doesnt return anything due to none of the #if conditions being met. -- You are receiving this mail because: You are watching all bug changes.