<div dir="ltr">So I installed PyQt-5.15.2, sip, and pyqt-builder from pip, then compiled qt-5.15.2, but still got an undefined symbol for the libstdc++ symbol <span style="color:rgb(0,0,0);font-family:Menlo">_ZdaPvm</span><span style="color:rgb(0,0,0)"><font face="arial, sans-serif">which demangles to </font></span><span style="color:rgb(0,0,0);font-family:Menlo">operator delete[](void*, unsigned long)</span><span style="color:rgb(0,0,0)"><font face="arial, sans-serif">. So I added </font></span><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures;color:rgb(209,113,37)">qmake-settings</span><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> = [</span><span style="color:rgb(178,48,128);font-family:Menlo;font-variant-ligatures:no-common-ligatures">"LIBS += -lstdc++"</span><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><font face="arial, sans-serif">to the build config for my module but no change. here is 1) the failing import call of my sip extension _vedanaprivate, 2) ldd for the _vedanaprivate lib file, and 3) ldd for the complaining <a href="http://QtCore.abi3.so">QtCore.abi3.so</a>:</font></span><div><br></div><div><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(familydiagram-server) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>parallels@hurin</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>~/familydiagram-server</b></span><span style="font-variant-ligatures:no-common-ligatures">$ python -c "import _vedanaprivate"</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>File "<string>", line 1, in <module></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ImportError: /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/<a href="http://QtCore.abi3.so">QtCore.abi3.so</a>: undefined symbol: _ZdaPvm, version Qt_5</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(familydiagram-server) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>parallels@hurin</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>~/familydiagram-server</b></span><span style="font-variant-ligatures:no-common-ligatures">$ ldd<span class="gmail-Apple-converted-space"> </span>/home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/_<a href="http://vedanaprivate.cpython-37m-x86_64-linux-gnu.so">vedanaprivate.cpython-37m-x86_64-linux-gnu.so</a><span class="gmail-Apple-converted-space"> </span></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>linux-vdso.so.1 (0x00007fff047fb000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libQt5Core.so.5 => /home/parallels/qt/lib/libQt5Core.so.5 (0x00007f515b870000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f515b637000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f515b40f000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f515b3f3000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f515b30c000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f515b2ea000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>/lib64/ld-linux-x86-64.so.2 (0x00007f515bf27000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(familydiagram-server) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>parallels@hurin</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>~/familydiagram-server</b></span><span style="font-variant-ligatures:no-common-ligatures">$ ldd /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/<a href="http://QtCore.abi3.so">QtCore.abi3.so</a></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>linux-vdso.so.1 (0x00007ffee7672000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libQt5Core.so.5 => /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5 (0x00007fe211a00000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe2117d6000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe2115ae000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe212231000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe212215000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libicui18n.so.56 => /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/Qt5/lib/libicui18n.so.56 (0x00007fe211000000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libicuuc.so.56 => /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/Qt5/lib/libicuuc.so.56 (0x00007fe210c00000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libicudata.so.56 => /home/parallels/.local/share/virtualenvs/familydiagram-server-p83tSG-_/lib/python3.7/site-packages/PyQt5/Qt5/lib/libicudata.so.56 (0x00007fe20f200000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe21220e000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fe212209000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fe20f0c6000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe2114c7000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe2114a7000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>/lib64/ld-linux-x86-64.so.2 (0x00007fe21257e000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fe20f050000)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(familydiagram-server) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>parallels@hurin</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>~/familydiagram-server</b></span><span style="font-variant-ligatures:no-common-ligatures">$ c++filt _ZdaPvm</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">operator delete[](void*, unsigned long)</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(familydiagram-server) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(57,192,38)"><b>parallels@hurin</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>~/familydiagram-server</b></span><span style="font-variant-ligatures:no-common-ligatures">$<span class="gmail-Apple-converted-space"> </span></span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 5, 2022 at 4:59 AM Patrick Stinson <<a href="mailto:patrickkidd@gmail.com" target="_blank">patrickkidd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Not necessarily building wheels but just an .so for local import. But I think your point stands that the same Qt version needs to be installed so that the symbols just resolve.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 4, 2022 at 1:07 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 03/10/2022 22:58, Patrick Stinson wrote:<br>
> Sorry if this has been covered elsewhere, I’ve bee out of the loop for <br>
> a while.<br>
> <br>
> What is the preferred way to build and install a custom sip extension<br>
> that depends on PyQt5 and Qt headers+libs so that it can be imported<br>
> by the python exe? sip-install requires a qmake executable which<br>
> requires separately installing qt headers+libs, but can cause symbol<br>
> conflicts with the qt libs included in the pip-installed PyQt module.<br>
> <br>
> The goal is to understand the qt/pyqt debs required to then simply<br>
> clone my sip modules repo, build+install it, then import it from the<br>
> python bin.<br>
<br>
It's not clear if you want to create .debs for your distro (depending on <br>
the distro provided PyQt/Qt) or wheels (depending on the PyQt/Qt wheels <br>
from PyPI).<br>
<br>
Assuming the latter you (probably) need to install the targeted version <br>
of Qt using the on-line installer. The other PyQt projects (eg. <br>
PyQt6-NetworkAuth to take the smallest) are examples of what you want to <br>
do.<br>
<br>
Phil<br>
</blockquote></div></div>
</blockquote></div>