<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>  "_PyInit__cpythononly", referenced from:<br>      extension_modules in pyqtdeploy_main.o<br>  "_PyInit__cpythonplusqt", 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 <<a href="mailto:patrickkidd@gmail.com">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">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 "cpythononly" 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 "Packages" in the pyqtdeploy app. pyqtdeploy-build complains that it can't find the sip-generated cpp sources for the module:</div><div><br></div><div>Undefined symbols for architecture x86_64:<br>  "_PyInit__cpythononly", 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>