Compile Error: PYTHON_LIBRARY

First up, I’m a noob when it comes to setting things up to compile.

I’m following the guide here:

I’ve cloned the git repository, and got as far as cmake.

However I’m having issues with
– Could NOT find PythonLibrary (missing: PYTHON_LIBRARY) (Required is at least version “3.0”)

I have no idea what this should be set to, even after searching and trying to research this. I have Pyhton 3.8 installed.

OpenSuse Tumbleweed - CMake version: 3.18.3

My cmake command is like this:

cmake ../krita -DCMAKE_INSTALL_PREFIX=$DIR/install -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON -DHIDE_SAFE_ASSERTS=off -DPYTHON_EXECUTABLE=/usr/bin/python3

As you can see I had to provide a link to Python, possibly because I have Python2 installed as well.

Yes, I have Python2 installed also.

But I’m at a loss as to what PYTHON_LIBRARY should be pointing to.

I am still encountering the same error even with the cmake command you provided.

cmake ../krita -DCMAKE_INSTALL_PREFIX=$DIR/install -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON -DHIDE_SAFE_ASSERTS=off -DPYTHON_EXECUTABLE=/usr/bin/python3

– Krita version: 5.0.0-prealpha
– Branding selected: default
– Python system site-packages directory: /usr/lib64/python3.8/site-packages
– Could NOT find PythonLibrary (missing: PYTHON_LIBRARY) (Required is at least version “3.0”)