Getting python to work when building Krita from source on Linux?

Emmet O'Neill emmetoneill.pdx at gmail.com
Tue Apr 17 06:12:36 UTC 2018


Hi Eliakin,

I do have /usr/share/sip/PyQt5/QtCore/QtCoremod.sip and I just ran cmake
with those settings and still no luck (nothing in Tools > Scripting, and no
Python menu in the configuration menu). Cmake still doesn't seem to be able
to find the "sipconfig" or "PyQt5" modules, and at the end it mentions that
the optional SIP and PyQt packages haven't been found. I should mention
that I'm building the latest sources too, straight from origin/master, and
that I got all my dependencies from apt - or rather, all of the
dependencies in that list on the KDE site, along with sip-dev and PyQt5-dev
(which weren't listed but I thought those may be what I needed). It's
possible that I'm missing some other dependency that's messing everything
up.

I'll attach a copy of my cmake output.

Many thanks for the help!
-Emmet

On Mon, Apr 16, 2018 at 9:27 PM, Eliakin Costa <eliakim170 at gmail.com> wrote:

> Hey, Emmet
>
> Look at  /usr/share/sip/PyQt5 and see if you can find /QtCore/QtCoremod.sip
> if it is there you can try a new clean build.
>
>
> Here's an example of a full cmake command:
>
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/sources/krita/inst
> $HOME/sources/krita/src -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
> -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF
> -DKDE4_BUILD_TESTS=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3
> -DPYQT_SIP_DIR_OVERRIDE=/usr/share/sip/PyQt5
>
> Best
>
>
> 2018-04-17 0:45 GMT-03:00 Emmet O'Neill <emmetoneill.pdx at gmail.com>:
>
>> Hey all, I've been sort of struggling to get the python scripting stuff
>> to work when building Krita from sources on Linux (Ubuntu 17.10).
>>
>> I grabbed all of the dependencies listed here (
>> https://community.kde.org/Krita/linuxbuild) as well as added the two
>> extra cmake arguments pertaining to python. I also went ahead and installed
>> sip-dev and pyqt5-dev from Ubuntu's apt repository, but cmake is still
>> shooting off warnings that it can't find SIP or PyQt. I'm sure there's
>> probably something simple I'm overlooking as I'm still pretty new to the
>> whole linux/cmake build process.
>>
>> Anyone have any ideas or recommended cmake arguments? (Until now I've
>> just been copying and using ones that are based on David Revoy's "building
>> Krita for cats" guide, and just adding the python-specific ones from the
>> KDE site that I linked above.)
>>
>> Thanks as always,
>> - Emmet
>>
>
>


-- 
*Emmet O'Neill*
*Studio Regen*
www.studioregen.com
@emmetoneill <http://twitter.com/emmetoneill>
Portland, Oregon, U.S.A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20180416/5690a0b2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.log
Type: text/x-log
Size: 6440 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20180416/5690a0b2/attachment-0001.bin>


More information about the kimageshop mailing list