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 [26/02/2023 20:17] – 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 ===== |
- | ====== Hombrew | + | ===== 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 = | ||
- | </ | ||
- | |||
- | |||
- | < | ||
- | export PATH="/ | ||
- | export LDFLAGS=" | ||
- | export CPPFLAGS=" | ||
- | </ | ||
+ | To: | ||
+ | QT.KCoreAddons.VERSION = 5.110.0 | ||
+ | QT.KCoreAddons.MAJOR_VERSION = 5 | ||
+ | QT.KCoreAddons.MINOR_VERSION = 110 | ||
+ | QT.KCoreAddons.PATCH_VERSION = 0 | ||
+ | QT.KCoreAddons.name = KF5CoreAddons | ||
+ | QT.KCoreAddons.module = KF5CoreAddons | ||
+ | QT.KCoreAddons.defines = | ||
+ | QT.KCoreAddons.includes = / | ||
+ | QT.KCoreAddons.private_includes = | ||
+ | QT.KCoreAddons.libs = / | ||
+ | QT.KCoreAddons.depends = core | ||
+ | QT.KCoreAddons.module_config = | ||
+ | </ | ||
+ | | ||
===== MacOS Macports environment (new 2023) ===== | ===== MacOS Macports environment (new 2023) ===== | ||
Ligne 105: | Ligne 258: | ||
</ | </ | ||
- | Note : On APPLE M1/2 chips replace in PATH / | + | Note : On APPLE M1/2 chips replace in PATH / |
+ | but with Qt 5.15.8 environment can't compil like: | ||
+ | // | ||
+ | ............building for macOS-arm64 but attempting to link with file config macOS-x86_64..... For KF5 libs...// | ||
Get GIT sources | Get GIT sources | ||
< | < | ||
- | git clone git://git.tuxfamily.org/ | + | git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git |
</ | </ | ||
Build bundle: | Build bundle: | ||
- | We need to add lang1 in qet_git directory with [[https:// | + | We need to add lang1 in qet_git directory with [[https:// |
And create a MAC_OS_X directory in your home otherwise bundles builds was located in / | And create a MAC_OS_X directory in your home otherwise bundles builds was located in / | ||
< | < | ||
Ligne 190: | Ligne 347: | ||
< | < | ||
- | git clone git://git.tuxfamily.org/ | + | git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git |
</ | </ | ||