Web lists-archives.com

Re: building krita 3.1.1 with gcc6


On 12/15/16 23:59, Andreas Müller wrote:
> I am maintaining a yocto/openembedded layer supporting kde/plasma for
> cross builds. Just tried to build krita 3.1.1 and got an error like
> that reported in [1].
> We had lots of erros in recent past and they were fixed by adding
> -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1'. Since this did not seem to work
> for krita I checked and found that there are lots of
> include_directories(SYSTEM ${FOO_DIR})
> in cmake files.
> For now I helped myself by a dirty
> sed -i 's:-isystem:-I:g' `find ${B} -name *.make`
> after cmake's configure but it would make packer's life easier to
> think about removing SYSTEM in (some) include_directories.
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

besides the WONTFIX bug in gcc there's also a cmake bug [1]. You might
want to play with CMAKE_C{,XX}_IMPLICIT_INCLUDE_DIRECTORIES. The problem
is hidden for most people using default include dirs, but becomes
apparent when cross-compiling or using unusual include dirs.

Btw, as far as i know Krita has a mailing list of its own.


[1] https://gitlab.kitware.com/cmake/cmake/issues/16291