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

Eliakin Costa eliakim170 at gmail.com
Tue Apr 17 19:12:55 UTC 2018


You're welcome, have fun with Krita:)

2018-04-17 16:04 GMT-03:00 Emmet O'Neill <emmetoneill.pdx at gmail.com>:

> Ok, I got it working. I had 'pyqt5-dev' and 'sip-dev' installed, but
> didn't have 'python3-pyqt5', 'python3-sip', or 'python3-sip-dev' packages
> installed.
>
> As always, thanks for the help Eliakin and Scott.
> -Emmet
>
>
> On Tue, Apr 17, 2018 at 6:01 AM, Scott Petrovic <scottpetrovic at gmail.com>
> wrote:
>
>> hi Emmet,
>>
>> Yes, pyqt and SIP definitely look like they are not found with cmake.
>>
>> Can you see which version of pyqt5 and SIP you have installed? Maybe it
>> isn't a high enough version. I am also using Ubuntu 17.10 and am running
>> the same cmake command Eliakin is. It seems to find those two libraries for
>> me.
>>
>> For me...I am running PyQt 5.7  (pyqt-dev) package
>>
>> For SIP, I have these packages.... python3-sip     and    python3-sip-dev
>> Both SIP versions are 4.18.1
>>
>> Scott
>>
>>
>>
>>
>>
>> On Tue, Apr 17, 2018 at 1:12 AM, Emmet O'Neill <emmetoneill.pdx at gmail.com
>> > wrote:
>>
>>> 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
>>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20180417/cdcbc621/attachment-0001.html>


More information about the kimageshop mailing list