Compilation fails when sip is run, failing to find QtCore/QtCoremod.sip, because it doesn't look in /usr/share/sip/PyQt5.
Which distro are you running? On an Ubuntu Flavour I could get everything to work by installed the following deps: python3, python3-sip-dev, python3-pyqt-dev and pyqt5-dev
Arch, with PyQt5 installed.
In Arch is simply called python (without the 3), pyqt5-common, python-pyqt5, python-sip, sip, (check that all those are installed) I'm on Arch/plasma too, compiling just fine here.
They're all installed. Editing the build makefile to add `-I /usr/share/sip/PyQt5` to the sip command line makes the build succeed.
I'm not sure about arch... Never used it. But I also never tried to build with distro packages of PyQt and Python on OpenSUSE, only with home-built packages where PyQt and sip are in a special location. In all cases, you can set PYQT_SIP_DIR_OVERRIDE on the cmake command line to the right location, and the build should succeed, if the version of sip is correct.
The strange thing is that it *is* correctly detecting the PyQt5 directory.
I can confirm the bug on Ubuntu 16.04. If python and sip packages are installed, Krita finds them and activates the features, but compilation fails due to absence of some include files. The trouble is successfully workarounded by setting PYQT_SIP_DIR_OVERRIDE definition. That looks like some bug in our(?) cmake files.
Git commit fd89b3a67d4a02a2394423b6c0aac3384bdafa4a by Boudewijn Rempt. Committed on 16/05/2017 at 14:49. Pushed by rempt into branch 'master'. Add the system sip location to the sip_include path This lets the pykrita sip module build out of the box on Ubuntu 17.04 if all dependencies are correctly installed. M +12 -1 plugins/extensions/pykrita/sip/CMakeLists.txt https://commits.kde.org/krita/fd89b3a67d4a02a2394423b6c0aac3384bdafa4a