<div dir="ltr"><div><div>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.<br><br></div>As always, thanks for the help Eliakin and Scott.<br></div>-Emmet<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 17, 2018 at 6:01 AM, Scott Petrovic <span dir="ltr"><<a href="mailto:scottpetrovic@gmail.com" target="_blank">scottpetrovic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi Emmet,<div><br></div><div>Yes, pyqt and SIP definitely look like they are not found with cmake. </div><div><br></div><div>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.</div><div><br></div><div>For me...I am running PyQt 5.7  (pyqt-dev) package</div><div><br></div><div>For SIP, I have these packages.... python3-sip     and    python3-sip-dev</div><div>Both SIP versions are 4.18.1</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Scott<br></div><div><br></div><div><br></div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 17, 2018 at 1:12 AM, Emmet O'Neill <span dir="ltr"><<a href="mailto:emmetoneill.pdx@gmail.com" target="_blank">emmetoneill.pdx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Eliakin,<br><br></div>I do have /usr/share/sip/PyQt5/QtCore/Qt<wbr>Coremod.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.<br><br></div>I'll attach a copy of my cmake output.<br><br></div>Many thanks for the help!<br></div>-Emmet<br><div class="gmail_extra"><div><div class="m_-5561257499006319122h5"><br><div class="gmail_quote">On Mon, Apr 16, 2018 at 9:27 PM, Eliakin Costa <span dir="ltr"><<a href="mailto:eliakim170@gmail.com" target="_blank">eliakim170@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey, Emmet<div><br></div><div>Look at <font style="background-color:rgb(255,255,255)" color="#000000"> <span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:12.95px;white-space:pre-wrap">/usr/share/sip/PyQt5 </span></font><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:12.95px;white-space:pre-wrap;background-color:rgb(255,255,255)"><font color="#000000">and see if you can find /</font></span><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap">QtCore/QtCoremod.sip if it is there you can try a new clean build.</span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap">Here's an example of a full cmake command: </span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap">cmake -DCMAKE_INSTALL_PREFIX=$HOME/s<wbr>ources/krita/inst $HOME/sources/krita/src -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebI<wbr>nfo -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF -DPYTHON_EXECUTABLE=/usr/bin/p<wbr>ython3 -DPYQT_SIP_DIR_OVERRIDE=/usr/s<wbr>hare/sip/PyQt5</span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap">Best<br></span></font><br class="m_-5561257499006319122m_6835695560447796859m_7455934949037744052gmail-Apple-interchange-newline"></div></div><div class="m_-5561257499006319122m_6835695560447796859HOEnZb"><div class="m_-5561257499006319122m_6835695560447796859h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-17 0:45 GMT-03:00 Emmet O'Neill <span dir="ltr"><<a href="mailto:emmetoneill.pdx@gmail.com" target="_blank">emmetoneill.pdx@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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).<br><br></div><div>I grabbed all of the dependencies listed here (<a href="https://community.kde.org/Krita/linuxbuild" target="_blank">https://community.kde.org/Kri<wbr>ta/linuxbuild</a>) 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. <br><br>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.)<br><br></div><div>Thanks as always,<br></div><div>- Emmet<br></div></div>
</blockquote></div></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div>