Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
doc:macosx [09/11/2023 21:14] – [MacOS Homebrew environment (old)] scorpio810 | doc:macosx [09/01/2024 16:01] (Version actuelle) – [Macports arm64 Apple silicon environments MAC Mini M2] scorpio810 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~NOCACHE~~ | ~~NOCACHE~~ | ||
- | ====== QElectroTech sous MacOSX | + | ===== QElectroTech sous MacOSX ===== |
- | ====== Homebrew | + | ===== Macports |
< | < | ||
- | / | + | git clone https://invent.kde.org/ |
+ | cd digikam/project/bundles/macports/ | ||
- | brew install qt@5 | ||
- | |||
- | brew untap kde-mac/kde 2> /dev/null | ||
- | brew tap kde-mac/kde https:// | ||
- | " | ||
</ | </ | ||
- | < | + | <code=diff>diff --git a/ |
- | brew install kde-mac/kde/kf5-kwidgetsaddons | + | index 41a75f247f..04307322bd 100755 |
- | brew install | + | --- a/project/bundles/ |
+ | +++ b/ | ||
+ | @@ -107,7 +107,7 @@ function(InstallKDEComponent | ||
+ | |||
+ | | ||
+ | sed -i '' | ||
+ | - < | ||
+ | + < | ||
+ | |||
+ | | ||
+ | |||
+ | diff --git a/ | ||
+ | index 669ec675c1..82ac0ff093 100755 | ||
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -210,7 +210,7 @@ EOF | ||
+ | # No need to build with both architectures embeded (x86 and ARM) for Apple Silicon target | ||
+ | |||
+ | cat << EOF >> " | ||
+ | -+universal | ||
+ | +++arm64 | ||
+ | EOF | ||
+ | |||
+ | fi | ||
+ | @@ -275,25 +275,11 @@ port install | ||
+ | libpng \ | ||
+ | jpeg \ | ||
+ | tiff \ | ||
+ | - boost \ | ||
+ | - | ||
+ | gettext \ | ||
+ | libusb \ | ||
+ | - | ||
+ | - | ||
+ | - lcms2 \ | ||
+ | - expat \ | ||
+ | libxml2 \ | ||
+ | libxslt \ | ||
+ | libical \ | ||
+ | - | ||
+ | - bison \ | ||
+ | - | ||
+ | - x265 \ | ||
+ | - | ||
+ | - | ||
+ | - aom \ | ||
+ | - | ||
+ | wget +ssl \ | ||
+ | qt5-qtbase \ | ||
+ | qt5-qtdeclarative \ | ||
+ | @@ -305,22 +291,11 @@ port install \ | ||
+ | qt5-qttranslations \ | ||
+ | qt5-qtimageformats \ | ||
+ | qt5-qtnetworkauth \ | ||
+ | - | ||
+ | - | ||
+ | + | ||
+ | |||
+ | -port deactivate boost | ||
+ | +#port deactivate boost | ||
+ | |||
+ | -if [[ $DK_QTWEBENGINE = 1 ]] ; then | ||
+ | |||
+ | - port install qt5-qtwebengine | ||
+ | - | ||
+ | -else | ||
+ | - | ||
+ | - port install qt5-qtwebkit | ||
+ | - | ||
+ | -fi | ||
+ | - | ||
+ | -port activate boost | ||
+ | |||
+ | # port broken since a while. check later | ||
+ | # | ||
+ | @@ -360,18 +335,7 @@ cmake $ORIG_WD/../3rdparty \ | ||
+ | | ||
+ | -DKP_VERSION=$DK_KP_VERSION \ | ||
+ | -DKDE_VERSION=$DK_KDE_VERSION \ | ||
+ | - | ||
+ | - | ||
+ | - | ||
+ | - | ||
+ | -if [[ $DK_QTWEBENGINE = 0 ]] ; then | ||
+ | - cmake --build . --config RelWithDebInfo --target ext_qtwebkit | ||
+ | -fi | ||
+ | - | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_opencv | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_imagemagick -- -j$CPU_CORES | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_libjxl | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_libavif | ||
+ | + | ||
+ | |||
+ | ################################################################################################# | ||
+ | |||
+ | diff --git a/ | ||
+ | index a94632c1a6..ca39301c7f 100755 | ||
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -68,16 +68,15 @@ cmake $ORIG_WD/ | ||
+ | -DKA_VERSION=$DK_KA_VERSION \ | ||
+ | -DKP_VERSION=$DK_KP_VERSION \ | ||
+ | -DKDE_VERSION=$DK_KDE_VERSION \ | ||
+ | - | ||
+ | - | ||
+ | - | ||
+ | + | ||
+ | + | ||
+ | |||
+ | # NOTE: The order to compile each component here is very important. | ||
+ | |||
+ | # core KF5 frameworks dependencies | ||
+ | cmake --build . --config RelWithDebInfo --target ext_extra-cmake-modules -- -j$CPU_CORES | ||
+ | cmake --build . --config RelWithDebInfo --target ext_kconfig | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_breeze-icons | ||
+ | +#cmake --build . --config RelWithDebInfo --target ext_breeze-icons | ||
+ | cmake --build . --config RelWithDebInfo --target ext_kcoreaddons | ||
+ | cmake --build . --config RelWithDebInfo --target ext_kwindowsystem | ||
+ | cmake --build . --config RelWithDebInfo --target ext_solid | ||
+ | @@ -106,10 +105,10 @@ cmake --build . --config RelWithDebInfo --target ext_kimageformats | ||
+ | # | ||
+ | |||
+ | # Calendar support | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_kcalendarcore | ||
+ | +#cmake --build . --config RelWithDebInfo --target ext_kcalendarcore | ||
+ | |||
+ | # Breeze style support | ||
+ | -cmake --build . --config RelWithDebInfo --target ext_breeze | ||
+ | +#cmake --build . --config RelWithDebInfo --target ext_breeze | ||
+ | |||
+ | ################################################################################################# | ||
+ | |||
+ | diff --git a/ | ||
+ | index 37341eefb0..65c9e37442 100644 | ||
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -16,7 +16,7 @@ BUILDING_DIR=" | ||
+ | ######################################################################## | ||
+ | |||
+ | # Target macOS architecture: | ||
+ | -ARCH_TARGET=" | ||
+ | +ARCH_TARGET=" | ||
+ | |||
+ | if [[ $ARCH_TARGET = " | ||
+ | |||
+ | @@ -50,7 +50,7 @@ if [[ $ARCH_TARGET = " | ||
+ | elif [[ $ARCH_TARGET = " | ||
+ | |||
+ | # Apple Silicon is supported since macOS BigSur | ||
+ | - OSX_MIN_TARGET=" | ||
+ | + OSX_MIN_TARGET=" | ||
+ | |||
+ | | ||
+ | |||
+ | @@ -128,7 +128,7 @@ DK_VERSION=master | ||
+ | | ||
+ | |||
+ | # Option to use QtWebEngine instead QtWebkit | ||
+ | -DK_QTWEBENGINE=1 | ||
+ | +DK_QTWEBENGINE=0 | ||
+ | |||
+ | # Sign bundles with GPG. Passphrase must be hosted in ~/ | ||
+ | | ||
</ | </ | ||
- | Copy your libs KF5 *.pri to your Qt brew install | + | Add in your .bash_profile or in zsh profile [[https:// |
- | like: | + | |
< | < | ||
- | cp /opt/homebrew/ | + | PATH="/opt/digikam.org.arm64/libexec/qt5/bin: |
- | cp /opt/homebrew/ | + | PATH="/opt/digikam.org.arm64/bin: |
+ | export PATH=/opt/digikam.org.arm64/libexec: | ||
+ | export PATH=/opt/digikam.org.arm64/include: | ||
</ | </ | ||
- | |||
- | cat / | ||
< | < | ||
- | QT.KCoreAddons.VERSION = 5.102.0 | + | Copy your libs KF5 *.pri / |
+ | Edit your libs KF5 *.pri files in / | ||
+ | |||
+ | QT.KCoreAddons.VERSION = 5.110.0 | ||
QT.KCoreAddons.MAJOR_VERSION = 5 | QT.KCoreAddons.MAJOR_VERSION = 5 | ||
- | QT.KCoreAddons.MINOR_VERSION = 102 | + | QT.KCoreAddons.MINOR_VERSION = 110 |
QT.KCoreAddons.PATCH_VERSION = 0 | QT.KCoreAddons.PATCH_VERSION = 0 | ||
QT.KCoreAddons.name = KF5CoreAddons | QT.KCoreAddons.name = KF5CoreAddons | ||
QT.KCoreAddons.module = KF5CoreAddons | QT.KCoreAddons.module = KF5CoreAddons | ||
QT.KCoreAddons.defines = | QT.KCoreAddons.defines = | ||
- | QT.KCoreAddons.includes = /opt/ | + | QT.KCoreAddons.includes = |
QT.KCoreAddons.private_includes = | QT.KCoreAddons.private_includes = | ||
- | QT.KCoreAddons.libs = /opt/ | + | QT.KCoreAddons.libs = $$PWD/../../lib |
QT.KCoreAddons.depends = core | QT.KCoreAddons.depends = core | ||
QT.KCoreAddons.module_config = | QT.KCoreAddons.module_config = | ||
- | </ | ||
- | cat / | ||
- | < | ||
- | QT.KWidgetsAddons.VERSION = 5.102.0 | ||
- | QT.KWidgetsAddons.MAJOR_VERSION = 5 | ||
- | QT.KWidgetsAddons.MINOR_VERSION = 102 | ||
- | QT.KWidgetsAddons.PATCH_VERSION = 0 | ||
- | QT.KWidgetsAddons.name = KF5WidgetsAddons | ||
- | QT.KWidgetsAddons.module = KF5WidgetsAddons | ||
- | QT.KWidgetsAddons.defines = | ||
- | QT.KWidgetsAddons.includes = / | ||
- | QT.KWidgetsAddons.private_includes = | ||
- | QT.KWidgetsAddons.libs = / | ||
- | QT.KWidgetsAddons.depends = widgets | ||
- | QT.KWidgetsAddons.module_config = | ||
- | </ | ||
+ | To: | ||
- | < | ||
- | export PATH="/ | ||
- | export LDFLAGS=" | ||
- | export CPPFLAGS=" | ||
- | </ | ||
- | <code=diff> | + | QT.KCoreAddons.VERSION |
- | --- qelectrotech.pro | + | QT.KCoreAddons.MAJOR_VERSION |
- | +++ qelectrotech.pro | + | QT.KCoreAddons.MINOR_VERSION |
- | @@ -58,7 +58,7 @@ DEFINES += QET_ALLOW_OVERRIDE_CTBTD_OPTION | + | QT.KCoreAddons.PATCH_VERSION |
- | DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION | + | QT.KCoreAddons.name |
- | + | QT.KCoreAddons.module | |
- | # | + | QT.KCoreAddons.defines |
- | -DEFINES += QET_EXPORT_PROJECT_DB | + | QT.KCoreAddons.includes |
- | +#DEFINES += QET_EXPORT_PROJECT_DB | + | QT.KCoreAddons.private_includes = |
- | + | QT.KCoreAddons.libs | |
- | # warn on *any* usage of deprecated APIs | + | QT.KCoreAddons.depends = core |
- | # | + | QT.KCoreAddons.module_config = |
- | @@ -244,7 +244,7 @@ TARGET | + | |
- | + | ||
- | # Ajustement des bibliotheques utilisees lors de l' | + | |
- | | + | |
- | -unix|win32: | + | |
- | +# | + | |
- | + | ||
- | # Enable C++17 | + | |
- | | + | |
- | @@ -312,7 +312,7 @@ macx { | + | |
- | # les chemins definis precedemment sont relatifs au dossier contenant le binaire executable | + | |
- | | + | |
- | | + | |
- | - LIBS += / | + | |
- | + #LIBS += | + | |
- | } | + | |
- | + | ||
- | # Compilers-specific options | + | |
</ | </ | ||
+ | | ||
===== MacOS Macports environment (new 2023) ===== | ===== MacOS Macports environment (new 2023) ===== | ||