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

Alex Merry alex.merry at kde.org
Wed Nov 4 19:17:48 UTC 2015


On 2015-11-04 15:53, René J.V. Bertin wrote:
> 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?

Looks like your include path is wrong. /opt/local/include/KF5/KArchive 
should be in the include path (before wherever wherever your kdelibs4 
headers are).

Alex


More information about the Kde-frameworks-devel mailing list