[OS X] "unknown type name 'KARCHIVE_DEPRECATED'" building kdoctools

René J.V. Bertin rjvbertin at gmail.com
Wed Nov 4 15:53:54 UTC 2015


Hi,

Building KF5/kdoctools 5.15.0 on OS X, I run into 2 issues:

- the #include <kfilterdev.h> statement finds the corresponding header from KDELibs4
- after changing the statement into #include <KArchive/kfilterdev.h> (which I think it should be anyway?), I get the error

In file included from /opt/local/var/macports/build/_opt_local_site-ports_kf5_Frameworks/kf5-kdoctools/work/kdoctools-5.15.0/src/xslt_kde.cpp:2:
/opt/local/include/KF5/KArchive/kfilterdev.h:95:5: error: unknown type name 'KARCHIVE_DEPRECATED'
    KARCHIVE_DEPRECATED static KCompressionDevice *deviceForFile(const QString &fileName,
    ^
/opt/local/include/KF5/KArchive/kfilterdev.h:95:25: error: expected member name or ';' after declaration specifiers
    KARCHIVE_DEPRECATED static KCompressionDevice *deviceForFile(const QString &fileName,
    ~~~~~~~~~~~~~~~~~~~ ^

I take it that I could #define KARCHIVE_DEPRECATED to get around this, but I have a hunch I shouldn't be getting the warning in the 1st place?

Thanks,
R.


More information about the Kde-frameworks-devel mailing list