| Summary: | MacOS error: no member named 'org' in global namespace | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kparts | Reporter: | Kurt Hindenburg <khindenburg> |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | christoph, kdelibs-bugs-null, khindenburg, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | macOS | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | build log from kdesrc-build | ||
|
Description
Kurt Hindenburg
2024-07-22 21:46:08 UTC
KIO installs a header called kdirnotify.h which defines OrgKdeKDirNotifyInterface and org::kde::etc. but all within `#ifdef QT_DBUS_LIB` So indeed if you don't have QtDBus you're screwed. How can that be possible? You won't get far compiling KF5 or KF6 without DBus. I don't know how I can help you. Get DBus back ;) A lot of recent effort went into building without DBus on macOS, so it's certainly supposed to work. The usage of ::org::kde::KDirNotify::emitFilesAdded is guarded with HAVE_KDIRNOTIFY, which is defined as #define HAVE_KDIRNOTIFY __has_include(<KDirNotify>) The KDirNotify header is only installed if KIO is built with DBus support. Could it be that you have an old KDirNotify header from a previous KIO version in your include path? I think it is due to kio 6bdab620; it doesn't revert clearly but if I go to the previous commit and fix the version, kparts builds. (In reply to Nicolas Fella from comment #2) > A lot of recent effort went into building without DBus on macOS, so it's > certainly supposed to work. > > The usage of ::org::kde::KDirNotify::emitFilesAdded is guarded with > HAVE_KDIRNOTIFY, which is defined as > > #define HAVE_KDIRNOTIFY __has_include(<KDirNotify>) > > The KDirNotify header is only installed if KIO is built with DBus support. > Could it be that you have an old KDirNotify header from a previous KIO > version in your include path? I'll try to test this as it might be the case and I usually don't clear out the destination directories. Nicolas must have been correct that I had leftover files in the destination. Once I did a purge and re-compiled everything worked. Thanks. Ok, thanks for checking, that should work fine with clean build, at least the CI jobs and Craft macOS builds show that. |