Summary: | vcpkg build fails unless plugins are built statically | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Jonathan Kimmitt <jonathan> |
Component: | buildsystem | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | macOS | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | kmymoney MacOS execution backtrace |
Description
Jonathan Kimmitt
2024-03-15 11:54:55 UTC
I have no idea, why you experience this crash. Also not sure, if static linking is the way to go on MacOS. This seems to cause a lot of problems like objc[30931]: Class KeyValueObserver is implemented in both /Users/jonathan/kmymoney/build.old/lib/libkmm_keychain.5.1.80.dylib (0x111738700) and /Users/jonathan/kmymoney/build.old/lib/libkmm_payeeidentifier.5.1.80.dylib (0x102f2c578). One of the two will be used. Which one is undefined. The crash actually occurs when creating the first QWidget inside the Qt code. That is very strange and could be related to the way you build. Also, I wonder why you need to comment out the inclusion of kgpgfile.h in case ENABLE_GPG is not defined. Can you explain that problem? setUseSingleQuoteSignal() is a pretty new function. You may want to build alkimia also from the master source. build/kmymoney/misc/kmm_gpgfile_export.h seems to get created as a result of the build process. However it is needed to compile kgpgfile.h; if you don't have a successful build than you cannot bootstrap the process without commenting out the reference to kgpgfile.h. I suppose this is some dependency issue in make, however I lack sufficient familiarity with this tool. Git commit 276edc503931fdcbd9c6ba501900310fcc5ead83 by Thomas Baumgart. Committed on 16/03/2024 at 10:32. Pushed by tbaumgart into branch 'master'. Fix building when GPG support is not available M +16 -18 kmymoney/misc/CMakeLists.txt M +2 -1 kmymoney/plugins/xml/xmlstorage.cpp https://invent.kde.org/office/kmymoney/-/commit/276edc503931fdcbd9c6ba501900310fcc5ead83 Thanks for the patch. It does not immediately seem to solve the problem of the lack of pre-existence of kmm_gpgfile_export.h. I have placed a copy from a previous build in kmymoney/mymoney/storage/kmm_gpgfile_export.h which seems to solve the problem of the App not building. As of now the file is used in the ninja build before it is generated. However in this location in prevents the new version from being generated in the build directory, which might be a bad thing. There is no recipe for encryption support in vcpkg at the moment that would provide a better solution. The overall objective of static linking for me is to reduce reliance on fragile .dynlib files such as provided in /opt/homebrew and make the Application image portable to other Macs. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |