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 [17/01/2023 15:35] – 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 ===== |
- | ===== New 2023 MacOS Macports environment ===== | + | ===== Macports arm64 Apple silicon environments MAC Mini M2 ===== |
+ | |||
+ | < | ||
+ | git clone https:// | ||
+ | cd digikam/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | index 41a75f247f..04307322bd 100755 | ||
+ | --- a/ | ||
+ | +++ 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/ | ||
+ | -DKA_VERSION=$DK_KA_VERSION \ | ||
+ | -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 ~/ | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Add in your .bash_profile or in zsh profile [[https:// | ||
+ | |||
+ | < | ||
+ | PATH="/ | ||
+ | PATH="/ | ||
+ | export PATH=/ | ||
+ | export PATH=/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | 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.MINOR_VERSION = 110 | ||
+ | QT.KCoreAddons.PATCH_VERSION = 0 | ||
+ | QT.KCoreAddons.name = KF5CoreAddons | ||
+ | QT.KCoreAddons.module = KF5CoreAddons | ||
+ | QT.KCoreAddons.defines = | ||
+ | QT.KCoreAddons.includes = $$PWD/ | ||
+ | QT.KCoreAddons.private_includes = | ||
+ | QT.KCoreAddons.libs = $$PWD/ | ||
+ | QT.KCoreAddons.depends = core | ||
+ | QT.KCoreAddons.module_config = | ||
+ | |||
+ | 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 | ||
- | We use Digikam scripts for create | + | We use now Digikam scripts, for create |
See: | See: | ||
https:// | https:// | ||
Ligne 12: | Ligne 231: | ||
https:// | https:// | ||
- | We only use 01-build-macports.sh and 02-build-extralibs.sh | + | We only use __01-build-macports.sh__ and __02-build-extralibs.sh |
< | < | ||
git clone https:// | git clone https:// | ||
- | cd digikam/ | + | cd digikam/ |
+ | |||
+ | //You can comment some packages which are not useful for QElectroTech \\ | ||
+ | like qt5-qtwebengine, | ||
+ | < | ||
bash ./ | bash ./ | ||
- | If ok then | ||
- | bash ./ | ||
- | Add in your .bash_profile | + | </ |
+ | //you can comment some packages which are not useful for QElectroTech, | ||
+ | but keep ext_kcoreaddons and ext_kwidgetsaddons!// | ||
+ | < | ||
+ | bash ./ | ||
+ | </ | ||
+ | Add in your .bash_profile or in zsh profile [[https:// | ||
+ | < | ||
# Setting PATH for Qt5.15.x | # Setting PATH for Qt5.15.x | ||
PATH="/ | PATH="/ | ||
Ligne 30: | Ligne 258: | ||
</ | </ | ||
+ | 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 | ||
+ | < | ||
+ | git clone --recursive https:// | ||
+ | </ | ||
+ | Build bundle: | ||
+ | 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 / | ||
+ | < | ||
+ | bash qet_git/ | ||
+ | </ | ||
- | ===== Old | + | ===== MacOS Homebrew environment |
* Note : we can't use Qt 5 sqlite3 plug-in without compile Qt 5 \\ | * Note : we can't use Qt 5 sqlite3 plug-in without compile Qt 5 \\ | ||
Ligne 103: | Ligne 347: | ||
< | < | ||
- | git clone git://git.tuxfamily.org/ | + | git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git |
</ | </ | ||