Adding custom sip project to pyqtdeploy project

Patrick Stinson patrickkidd at gmail.com
Mon Oct 17 20:59:04 BST 2022


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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20221017/e2304ed0/attachment.htm>


More information about the PyQt mailing list