thp / pyotherside

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://thp.io/2011/pyotherside/
Other
364 stars 49 forks source link

Build Options #121

Open jla3378 opened 3 years ago

jla3378 commented 3 years ago

All else being equal, following the build instructions on arm64-apple-darwin20.6.0 results in a static lib while x86_64-apple-darwin20.6.0 compiles a dynamic lib.

Do you know what environment variables need to be set or passed onto the qmake and make to force static or dynamic linking?

the fact that it's making static libraries on arm macOS is creating an issue with compiling another package.

Adding classname PyOtherSideExtensionPlugin to qmldir did fix the missing classname error but now I get missing symbol errors so I think it would be easiest if there was a way to specify dynamic or static libraries when building pyotherside

thp commented 3 years ago

According to https://doc.qt.io/qt-5/qmake-common-projects.html, CONFIG += dll in src/src.pro could help there.