Thanks for this great library.
I was wondering if it is possible to perform a static build of pythonqt lib? If so, what parameters do I need to change in the build process?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From my limited understanding of dynamic libs… it seems that the compiler expects the functions and objects to be dll linked in the lib rather than static, since the classes and methods were defined as such.
Is there a way around that? What I hoped to achieve was a single static PythonQt.lib (or PythonQt_All.lib) such that my exe would only require the python26.dll upon execution.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for this great library.
I was wondering if it is possible to perform a static build of pythonqt lib? If so, what parameters do I need to change in the build process?
Thanks
Never tried, you probably just use the "staticlib" instead of the "dll" keyword in the CONFIG line of PythonQt.
regards,
Florian
So I was able to successfully compile static PythonQt lib. But I get these errors when using the lib to compile examples…
From my limited understanding of dynamic libs… it seems that the compiler expects the functions and objects to be dll linked in the lib rather than static, since the classes and methods were defined as such.
Is there a way around that? What I hoped to achieve was a single static PythonQt.lib (or PythonQt_All.lib) such that my exe would only require the python26.dll upon execution.
Thanks
You need to patch PythonQtSystem.h
and always define PYTHONQT_EXPORT as empty:
#define PYTHONQT_EXPORT
otherwise the VC compiler will expect that the symbols are in an external DLL.
I compiled replacing code in PythonQtSystem.h
And define PYTHONQT_STATIC_LIB in PythonQt library and application
#endif missing…
Full code PythonQtSystem.h