[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Adding custom sip project to pyqtdeploy project
From:       Patrick Stinson <patrickkidd () gmail ! com>
Date:       2022-10-17 19:59:04
Message-ID: CADb17j1YYOR3+J_fpDHK2KwZgea1xcjqrvDYhARfB6uOfrQvPQ () mail ! gmail ! com
[Download RAW message or body]

FWIW, I added another custom sip extension to that project that also
extends Qt. So the linker errors would now be:

Undefined symbols for architecture x86_64:
  "_PyInit__cpythononly", referenced from:
      extension_modules in pyqtdeploy_main.o
  "_PyInit__cpythonplusqt", referenced from:
      extension_modules in pyqtdeploy_main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [pyqtdeploy-demo.app/Contents/MacOS/pyqtdeploy-demo] Error 1

Cheers,
-Patrick

On Mon, Oct 17, 2022 at 6:17 AM Patrick Stinson <patrickkidd@gmail.com>
wrote:

> What is the correct way to add a custom sip extension module to a
> pyqtdeploy project?
>
> My python/cpython sip module is in a subdir of the pyqt-demo project (the
> subdir called "cpythononly" here:
> https://github.com/patrickkidd/pyqtdeploy-demo) and it builds and runs in
> the local venv with sip-install. I added an entry in sysroot.toml and
> checked the box for the private c/c++ sub-module under "Packages" in the
> pyqtdeploy app. pyqtdeploy-build complains that it can't find the
> sip-generated cpp sources for the module:
>
> Undefined symbols for architecture x86_64:
>   "_PyInit__cpythononly", referenced from:
>       extension_modules in pyqtdeploy_main.o
> ld: symbol(s) not found for architecture x86_64
>
> Cheers,
> -Patrick
>

[Attachment #3 (text/html)]

<div dir="ltr">FWIW, I added another  custom sip extension to that project that also \
extends Qt. So the linker errors would now be:<div><br></div><div><font \
face="monospace">Undefined symbols for architecture x86_64:<br>   \
&quot;_PyInit__cpythononly&quot;, referenced from:<br>         extension_modules in \
pyqtdeploy_main.o<br>   &quot;_PyInit__cpythonplusqt&quot;, referenced from:<br>      \
extension_modules in pyqtdeploy_main.o<br>ld: symbol(s) not found for architecture \
x86_64<br>clang: error: linker command failed with exit code 1 (use -v to see \
invocation)<br>make: *** [<a \
href="http://pyqtdeploy-demo.app/Contents/MacOS/pyqtdeploy-demo">pyqtdeploy-demo.app/Contents/MacOS/pyqtdeploy-demo</a>] \
Error 1</font><br></div><div><br></div><div>Cheers,</div><div>-Patrick</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 6:17 AM \
Patrick Stinson &lt;<a \
href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>&gt; \
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">What is the correct way to add a custom sip extension module to a \
pyqtdeploy project?<div><br></div><div>My python/cpython sip module is in a subdir of \
the pyqt-demo project (the subdir called &quot;cpythononly&quot; here: <a \
href="https://github.com/patrickkidd/pyqtdeploy-demo" \
target="_blank">https://github.com/patrickkidd/pyqtdeploy-demo</a>) and it builds and \
runs in the local venv with sip-install. I added an entry in sysroot.toml and checked \
the box for the private c/c++ sub-module under &quot;Packages&quot; in the pyqtdeploy \
app. pyqtdeploy-build complains that it can&#39;t find the sip-generated cpp sources \
for the module:</div><div><br></div><div>Undefined symbols for architecture \
x86_64:<br>   &quot;_PyInit__cpythononly&quot;, referenced from:<br>         \
extension_modules in pyqtdeploy_main.o<br>ld: symbol(s) not found for architecture \
x86_64<br></div><div><br></div><div>Cheers,</div><div>-Patrick</div></div> \
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic