From kde-kimageshop Tue Apr 17 19:12:55 2018 From: Eliakin Costa Date: Tue, 17 Apr 2018 19:12:55 +0000 To: kde-kimageshop Subject: Re: Getting python to work when building Krita from source on Linux? Message-Id: X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=152399238903047 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--001a114e4e8a36b692056a10200d" --001a114e4e8a36b692056a10200d Content-Type: text/plain; charset="UTF-8" You're welcome, have fun with Krita:) 2018-04-17 16:04 GMT-03:00 Emmet O'Neill : > 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 > 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 > > 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 >>> 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 : >>>> >>>>> 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 >>>>> >>>> --001a114e4e8a36b692056a10200d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You're welcome, have fun with Krita:)

2018-04-17 16:04 GMT-03:00 = Emmet O'Neill <emmetoneill.pdx@gmail.com>:
Ok, I got it workin= g. 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 El= iakin and Scott.
<= /span>
-Emmet


On Tue, Apr 17, 2018 at 6:01 AM, Scott Petrovic <scott= petrovic@gmail.com> wrote:
=
hi Emmet,

Yes, pyqt and SIP definitely = look like they are not found with cmake.=C2=A0

Can= you see which version of pyqt5 and SIP you have installed? Maybe it isn= 9;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=C2=A0 (pyqt-dev) p= ackage

For SIP, I have these packages.... python3-= sip=C2=A0 =C2=A0 =C2=A0and=C2=A0 =C2=A0 python3-sip-dev
Both SIP = versions are 4.18.1

Scott

<= br>



On Tue, Apr 17, 2018 at = 1:12 AM, Emmet O'Neill <emmetoneill.pdx@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 (no= thing 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 optiona= l 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 t= hat 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 tha= nks for the help!
-Emmet

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

Look at=C2=A0=C2=A0/usr/share/sip/PyQt5 and see if you can find /QtCore/QtCoremod.sip if it is there= you can try a new clean build.


H= ere's an example of a full cmake command:

=
cma= ke -DCMAKE_INSTALL_PREFIX=3D$HOME/sources/krita/inst $HOME/sources/kri= ta/src -DWITH_GMIC=3DON -DCMAKE_BUILD_TYPE=3DRelWithDebInfo -DPRODUCTS= ET=3DALL -DPACKAGERS_BUILD=3DON -DBUILD_TESTING=3DOFF -DKDE4_BUILD_TESTS=3D= OFF -DPYTHON_EXECUTABLE=3D/usr/bin/python3 -DPYQT_SIP_DIR_OVERRIDE=3D/= usr/share/sip/PyQt5

Best

2018-0= 4-17 0:45 GMT-03:00 Emmet O'Neill <emmetoneill.pdx@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.or= g/Krita/linuxbuild) as well as added the two extra cmake arguments= pertaining to python. I also went ahead and installed sip-dev and pyqt5-de= v from Ubuntu's apt repository, but cmake is still shooting off warning= s that it can't find SIP or PyQt. I'm sure there's probably som= ething simple I'm overlooking as I'm still pretty new to the whole = linux/cmake build process.

Anyone have any ideas or recommended cma= ke 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
<= /div>

--001a114e4e8a36b692056a10200d--