Bug 435903 - Build kdeconnect-kde DMG package with Craft failed on Mac
Summary: Build kdeconnect-kde DMG package with Craft failed on Mac
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: macos-application (show other bugs)
Version: unspecified
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Ruixuan Tu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 05:54 UTC by edwining0011
Modified: 2024-08-03 07:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edwining0011 2021-04-19 05:54:52 UTC
SUMMARY

https://github.com/KDE/kdeconnect-kde

STEPS TO REPRODUCE

Follow instructions of https://community.kde.org/KDEConnect/Build_MacOS
...
1. source /Users/<username>/CraftRoot/craft/craftenv.sh
2. craft --package extragear/kdeconnect-kde

OBSERVED RESULT

Error message from Craft:

/Users/goodseller/CraftRoot/build/extragear/kdeconnect-kde/archive/Applications/KDE/kdeconnect-indicator.app/Contents/PlugIns/crypto/libqca-gcrypt.dylib: don't know how to handle otool -L output: '/usr/local/opt/libgcrypt/lib/libgcrypt.20.dylib'
Action: package for extragear/kdeconnect-kde:1.4 FAILED
*** Craft package failed: extragear/kdeconnect-kde after 4 minutes 1 second ***

EXPECTED RESULT
Build a .dmg package for kdeconnect-kde

SOFTWARE/OS VERSIONS
macOS:
	ProductName:	Mac OS X
	ProductVersion:	10.15.7
	BuildVersion:	19H524

ADDITIONAL INFORMATION
Comment 1 Weixuan XIAO 2021-04-24 10:02:09 UTC
It is likely to be an environment issue on your Mac: Craft uses your package-manager-installed libgcrypt to build QCA-Qt5, rather than the one under CraftRoot.

Please check your PKG_CONFIG_PATH after entering the Craft env, to make sure that libs are all under CraftRoot; then rebuild QCA-Qt5 with "craft -i qca-qt5"; and finally rebuild KDE Connect.