Installing those libs should do the trick...........And according to BLFS (Beyond Linux From Scratch), koffice also needs kdebase when compiling.......................But I should also mention that kdelibs needs the arts pkg and qt when compiling, so it might need those two installed as well for general use, just make sure you use the same arts and qt versions the kdelibs was compiled with (use the pkgs found in the same directory in the
Slack mirror)....................
So to sum up.........you should also install qt, arts, kdelibs, and kdebase (all from the same directory as koffice in the Slack mirror) for using KOffice...............