Web lists-archives.com

building krita 3.1.1 with gcc6




Hi,

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

Best Regards

Andreas