Get GIT sources

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git

https://qelectrotech.org/wiki_new/doc/t … urce_files

How to update .ts files from source files?
Note: *.ts are generally updated by the developer when he considers that the character strings to be translated are viable or by translators.

Édit qelectrotech.pro file: Comment out the lines starting with TRANSLATIONS += :

sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro

Run the following command:

lupdate -noobsolete qelectrotech.pro -ts lang/qet_{en,es,ru,pt,cs,pl,ca,de,ro,it,ar,sl,hr,el,nl,be,sl,zh,hu,pt_br,da,sr,fr,tr,sk,nb,mn,ja,cn,uk,zh-cn}.ts

Restore file qelectrotech.pro:

sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro

http://doc.qt.io/qt-5/linguist-translators.html

Hello Ahsan,

you are welcome, what country you want to add?

Best regards,
Laurent

https://qelectrotech.org/forum/viewtopi … 126#p16126
https://qelectrotech.org/wiki_new/doc/translation


Code change after new country added and translation started or finished (see *.ts and *.qm file)
https://git.tuxfamily.org/qet/qet.git/c … 9806e62ba8
https://git.tuxfamily.org/qet/qet.git/c … 7097598363

https://qelectrotech.org/forum/viewtopi … 294#p18294

https://qelectrotech.org/forum/viewtopi … 338#p18338

BTW, sometimes element is so complex for drawning, you could use DXF to elmt converter:

Hello Hamish,

https://qelectrotech.org/wiki_new/roadmap
But Joshua work when he have free time on new terminal block generator:
https://qelectrotech.org/forum/viewtopic.php?id=1486
instead off qet_tb_terminal python plugin:
https://qelectrotech.org/forum/viewtopi … 070#p17070

https://git.tuxfamily.org/qet/qet.git/l … 1_en_60617
Le dossier EN 60617 contient 912 éléments, réparties dans 129 dossiers.

Chemin de la collection :  common://10_electric/91_en_60617

For mirrored or resize elements see this topic:
https://qelectrotech.org/forum/viewtopic.php?id=1946

https://qelectrotech.org/forum/viewtopi … 925#p12925
https://qelectrotech.org/forum/viewtopi … 817#p14817

Hi Hamish,
thanks and welcome.

For the moment the name of terminal added in an element with the element editor is not yet linked to the QET engine, but we can find the uuid and the name of the terminal in the XML of the project by opening your project .qet, it must be possible with a Python script to create a table that lists the wires and the elements connected to this wire as well as the name of the terminal by uuid.

Best,
Laurent

Regarde sur cet exemple:
https://download.qelectrotech.org/qet/s … pdf#page=3
https://download.qelectrotech.org/qet/s … df#page=21

Update Qt to 5.15.10 and kf5 to 106.0:

23:01:04.374 Info: Elements collection finished to be loaded 
23:03:59.072 Info: Start-up 
23:03:59.081 Info: debugging enabled: false 
23:03:59.081 Info: Qt library version: 5.15.10 
23:03:59.082 Info: Qt library location default prefix: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location documentation: "/Applications/qelectrotech.app/Contents/doc" 
23:03:59.082 Info: Qt library location headers: "/Applications/qelectrotech.app/Contents/include" 
23:03:59.082 Info: Qt library location libraries: "/Applications/qelectrotech.app/Contents/lib" 
23:03:59.082 Info: Qt library location executables: "/Applications/qelectrotech.app/Contents/libexec" 
23:03:59.082 Info: Qt library location Qt binaries: "/Applications/qelectrotech.app/Contents/bin" 
23:03:59.082 Info: Qt library location Qt plugins: "/Applications/qelectrotech.app/Contents/PlugIns" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location dependent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location independent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location translation: "/Applications/qelectrotech.app/Contents/translations" 
23:03:59.082 Info: Qt library location examples: "/Applications/qelectrotech.app/Contents/examples" 
23:03:59.082 Info: Qt library location Qt testcases: "/Applications/qelectrotech.app/Contents/tests" 
23:03:59.082 Info: Qt library location Qt settings: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: "GitRevision 08e8409ce061684030657518c2d723f3e02d80c6" 
23:03:59.082 Info: "QElectroTech V 0.100.0-dev" 
23:03:59.082 Info: "Compilation : CLANG 14.0.3 (clang-1403.0.22.14.1)" 
23:03:59.082 Info: "Built with Qt 5.15.10 - arm64 - Date : Jun 12 2023 : 19:59:57" 
23:03:59.082 Info: "Run with Qt 5.15.10 using 8 thread(s)" 
23:03:59.082 Info: "CPU : Apple M2\n" 
23:03:59.082 Info: "RAM Total : 8 GB" 
23:03:59.082 Info: "" 
23:03:59.083 Info: "GPU : " 
23:03:59.083 Info: "GPU RAM : " 
23:03:59.083 Info: "OS : darwin  - arm64 - Version : macOS 13.4 - Kernel : 22.5.0" 
23:03:59.083 Info: *** Qt screens *** 
23:03:59.083 Info: "( 1 : 3840 x 2160 )" 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:161, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK : /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:172, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK USED: /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.286 Info: Elements collection reload 
23:04:00.035 Info: Elements collection finished to be loaded in 0.748 seconds 
 bash ./count_elements.sh 
8288 elements dans     1092 categories (soit 9380 fichiers)

Elements collection finished to be loaded in 0.748 seconds (8288 elements dans 1092 categories (soit 9380 fichiers))


laurent@mini-de-laurent ~ % otool -L /Applications/qelectrotech.app/Contents/MacOS/qelectrotech    
/Applications/qelectrotech.app/Contents/MacOS/qelectrotech:
    @executable_path/../Frameworks/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5WidgetsAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2299.50.120)
    /System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 306.5.16)
    @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtSql.framework/Versions/5/QtSql (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtConcurrent.framework/Versions/5/QtConcurrent (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5CoreAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1500.65.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

Hi Fabian,

without your project I don't know, maybe increase tittleblock?

Ahh, ok I see, thanks for your feedback.

Hallo Fabian,


yes!

Beste Grüße
Laurent

Hi,
What your OS and QET version?

Sometimes it's a GPU driver's problem...

I 'm thinking your XML is wrong, see this example:
https://stackoverflow.com/questions/444 … s-of-a-dir
See picture of tree, and the XML output.

Hi,

see :
https://qelectrotech.org/forum/viewtopi … 152#p16152
https://qelectrotech.org/forum/viewtopi … 198#p17198

scorpio810 wrote:

En effet c'est pourquoi j'ai abandonné l'idée de mettre la variable total dans mon denier projet.
Mais je suis libre d'ajouter et d’insérer autant de folios que je souhaite ...  sans casser et chambouler les XREFs de mes renvois, maîtres/ esclaves qui resterons justes, puisque le projet n'en ai qu'a ces débuts.

A la limite %id/%total  a du sens sur la page de garde (premier folio).

Hi,

see example file here:
https://git.tuxfamily.org/qet/qet.git/t … labels.xml

~ % tree qet_git/elements/10_electric/11_singlepole/200_fuses_protective_gears
qet_git/elements/10_electric/11_singlepole/200_fuses_protective_gears
├── 10_fuses
│   ├── fusible.elmt
│   ├── qet_directory
│   └── sec_fus1.elmt
├── 11_circuit_breakers
│   ├── disjonct-m.elmt
│   ├── disjoncteur1.elmt
│   ├── jistic_1p.elmt
│   └── qet_directory
├── 12_magneto_thermal_circuit_breakers
│   ├── disjoncteur_magneto-thermique_1.elmt
│   └── qet_directory
├── 20_disconnecting_switches
│   ├── qet_directory
│   ├── sectionneur1-2.elmt
│   └── sectionneur1.elmt
├── 30_thermal_relays
│   ├── qet_directory
│   └── relais_therm1.elmt
├── 50_residual_current_circuit_breaker
│   ├── ddr1.elmt
│   ├── disjoncteur_differentiel_magnetothermique.elmt
│   ├── int_diff-1p.elmt
│   ├── int_diff1.elmt
│   ├── qet_directory
│   ├── rcbo.elmt
│   └── rccb.elmt
└── qet_directory
 
7 directories, 22 files
<category name="200_fuses_protective_gears">
      <category name="10_fuses">
        <prefix>F</prefix>
      </category>
      <category name="11_circuit_breakers">
        <prefix>F</prefix>
      </category>
      <category name="12_magneto_thermal_circuit_breakers">
        <prefix>Q</prefix>
      </category>
      <category name="20_disconnecting_switches">
        <prefix>Q</prefix>
      </category>
      <category name="30_thermal_relays">
        <prefix>F</prefix>
      </category>
      <category name="50_residual_current_circuit_breaker">
        <prefix>Q</prefix>
      </category>

Ok, compile and work fine on Apple Silicon chip.
https://download.qelectrotech.org/qet/forum_img_2/QET_ElementScaler_Apple_silicon.jpeg

laurent@mini-de-laurent ~ % cd QET_ElementScaler 
laurent@mini-de-laurent QET_ElementScaler % ./QET_ElementScaler  --FlipVertical -f ../.qet/elements/p.elmt 
laurent@mini-de-laurent QET_ElementScaler % 

./03-build-digikam.sh -->fail

/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeError.log

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Determining if the __GLIBC__ exist failed with the following output:
Change Dir: /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/digikam.org.arm64/bin/gmake -f Makefile cmTC_de7ab/fast && /opt/digikam.org.arm64/bin/gmake  -f CMakeFiles/cmTC_de7ab.dir/build.make CMakeFiles/cmTC_de7ab.dir/build
gmake[1] : on entre dans le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=11.3 -MD -MT CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o -c /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__'
  return ((int*)(&__GLIBC__))[argc];
                  ^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_de7ab.dir/build.make:79: CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o] Error 1
gmake[1] : on quitte le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
gmake: *** [Makefile:127: cmTC_de7ab/fast] Error 2


File /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdlib.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __GLIBC__
  return ((int*)(&__GLIBC__))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Performing C++ SOURCE FILE Test HAVE_LQR_LIBS failed with the following output:
Change Dir: /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/digikam.org.arm64/bin/gmake -f Makefile cmTC_de4a8/fast && /opt/digikam.org.arm64/bin/gmake  -f CMakeFiles/cmTC_de4a8.dir/build.make CMakeFiles/cmTC_de4a8.dir/build
gmake[1] : on entre dans le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
Building CXX object CMakeFiles/cmTC_de4a8.dir/src.cxx.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_LQR_LIBS -DQT_MAC_USE_COCOA -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE  -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=11.3 -fPIE -std=c++17 -MD -MT CMakeFiles/cmTC_de4a8.dir/src.cxx.o -MF CMakeFiles/cmTC_de4a8.dir/src.cxx.o.d -o CMakeFiles/cmTC_de4a8.dir/src.cxx.o -c /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/src.cxx
/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'lqr.h' file not found
#include <lqr.h>
         ^~~~~~~
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_de4a8.dir/build.make:79: CMakeFiles/cmTC_de4a8.dir/src.cxx.o] Error 1
gmake[1] : on quitte le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
gmake: *** [Makefile:127: cmTC_de4a8/fast] Error 2


Source file was:

#include <lqr.h>

int main()
{
LqrImageType t = LQR_RGB_IMAGE;
return 0;
}

Mac mini M2 8Gb 256G SSD:

./01-build-macports.sh take +-5 hours --> ext_libjxl fail to build so disabled and 01 compile ok
./02-build-extralibs.sh. take 0 hours 5 minutes 5 seconds --> ext_breeze-icons fail to build so disabled and 02 compile ok



diff --git a/project/bundles/macports/01-build-macports.sh b/project/bundles/macports/01-build-macports.sh
index c9593b8f6f..8521404ae2 100755
--- a/project/bundles/macports/01-build-macports.sh
+++ b/project/bundles/macports/01-build-macports.sh
@@ -210,7 +210,7 @@ EOF
         # No need to build with both architectures embeded (x86 and ARM) for Apple Silicon target
 
         cat << EOF >> "$INSTALL_PREFIX/etc/macports/variants.conf"
-+universal
++arm64
EOF
 
     fi
@@ -370,7 +370,7 @@ fi
 
cmake --build . --config RelWithDebInfo --target ext_opencv      -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_imagemagick -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_libjxl      -- -j$CPU_CORES
+#cmake --build . --config RelWithDebInfo --target ext_libjxl      -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_libavif     -- -j$CPU_CORES
 
#################################################################################################
diff --git a/project/bundles/macports/02-build-extralibs.sh b/project/bundles/macports/02-build-extralibs.sh
index ffad309c19..c71c473278 100755
--- a/project/bundles/macports/02-build-extralibs.sh
+++ b/project/bundles/macports/02-build-extralibs.sh
@@ -77,7 +77,7 @@ cmake $ORIG_WD/../3rdparty \
# core KF5 frameworks dependencies
cmake --build . --config RelWithDebInfo --target ext_extra-cmake-modules -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_kconfig             -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_breeze-icons        -- -j$CPU_CORES
+#cmake --build . --config RelWithDebInfo --target ext_breeze-icons        -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_kcoreaddons         -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_kwindowsystem       -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_solid               -- -j$CPU_CORES
diff --git a/project/bundles/macports/config.sh b/project/bundles/macports/config.sh
index 830ac93ed5..d84dc30231 100644
--- a/project/bundles/macports/config.sh
+++ b/project/bundles/macports/config.sh
@@ -16,7 +16,7 @@ BUILDING_DIR="`pwd`/temp.build"
########################################################################
 
# Target macOS architecture: "x86_64" for Intel 64 bits, or "arm64" for Apple Silicon 64 bits.
-ARCH_TARGET="x86_64"
+ARCH_TARGET="arm64"
 
if [[ $ARCH_TARGET = "x86_64" ]] ; then
 
@@ -50,7 +50,7 @@ if [[ $ARCH_TARGET = "x86_64" ]] ; then
elif [[ $ARCH_TARGET = "arm64" ]] ; then
 
     # Apple Silicon is supported since macOS BigSur
-    OSX_MIN_TARGET="11.0"
+    OSX_MIN_TARGET="11.3"
 
else

CMakeFiles/Makefile2:605: lib/CMakeFiles/jxl_enc-obj.dir/all] Error 2

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:80:17: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/encoding/enc_ma.cc:995:15: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
  advance(dist(rng));
              ^
In file included from /Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/encoding/enc_ma.cc:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/random:1695:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:162:5: error: static_assert failed due to requirement '__libcpp_random_is_valid_urng<(anonymous namespace)::Rng, void>::value' ""
    static_assert(__libcpp_random_is_valid_urng<_URNG>::value, "");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:95:17: note: in instantiation of function template specialization 'std::poisson_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:142:12: note: in instantiation of function template specialization 'std::poisson_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
    return poisson_distribution<result_type>(gamma_distribution<double>
           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:87:17: note: in instantiation of function template specialization 'std::negative_binomial_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:84:17: note: in instantiation of function template specialization 'std::negative_binomial_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return negative_binomial_distribution<result_type>(1, __p.p())(__g);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:80:17: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/encoding/enc_ma.cc:995:15: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
  advance(dist(rng));
              ^
In file included from /Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/encoding/enc_ma.cc:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/random:1695:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/normal_distribution.h:135:5: error: static_assert failed due to requirement '__libcpp_random_is_valid_urng<(anonymous namespace)::Rng, void>::value' ""
    static_assert(__libcpp_random_is_valid_urng<_URNG>::value, "");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/normal_distribution.h:88:17: note: in instantiation of function template specialization 'std::normal_distribution<>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:174:49: note: in instantiation of function template specialization 'std::normal_distribution<>::operator()<(anonymous namespace)::Rng>' requested here
        double __g = __pr.__mean_ + __pr.__s_ * normal_distribution<double>()(__urng);
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:95:17: note: in instantiation of function template specialization 'std::poisson_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:142:12: note: in instantiation of function template specialization 'std::poisson_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
    return poisson_distribution<result_type>(gamma_distribution<double>
           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/negative_binomial_distribution.h:87:17: note: in instantiation of function template specialization 'std::negative_binomial_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:84:17: note: in instantiation of function template specialization 'std::negative_binomial_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return negative_binomial_distribution<result_type>(1, __p.p())(__g);}
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/geometric_distribution.h:80:17: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
        {return (*this)(__g, __p_);}
                ^
/Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/encoding/enc_ma.cc:995:15: note: in instantiation of function template specialization 'std::geometric_distribution<unsigned int>::operator()<(anonymous namespace)::Rng>' requested here
  advance(dist(rng));
              ^
7 errors generated.
gmake[6]: *** [lib/CMakeFiles/jxl_enc-obj.dir/build.make:706: lib/CMakeFiles/jxl_enc-obj.dir/jxl/modular/encoding/enc_ma.cc.o] Error 1
gmake[6]: *** Attente des tâches non terminées....
/Users/laurent/digikam/project/bundles/macports/temp.build/ext_libjxl/ext_libjxl-prefix/src/ext_libjxl/lib/jxl/modular/transform/enc_palette.cc:481:15: warning: variable 'n' set but not used [-Wunused-but-set-variable]
          int n = 0;
              ^
[ 91%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/modular/modular_image.cc.o
[ 91%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/modular/transform/squeeze.cc.o
[ 92%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/modular/transform/transform.cc.o
[ 92%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/opsin_params.cc.o
[ 93%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/passes_state.cc.o
[ 93%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/quant_weights.cc.o
[ 94%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/quantizer.cc.o
[ 94%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/splines.cc.o
[ 95%] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/toc.cc.o
1 warning generated.
gmake[5]: *** [CMakeFiles/Makefile2:605: lib/CMakeFiles/jxl_enc-obj.dir/all] Error 2
gmake[5]: *** Attente des tâches non terminées....
[ 95%] Built target jxl_dec-obj
gmake[4]: *** [Makefile:146: all] Error 2
gmake[3]: *** [ext_libjxl/CMakeFiles/ext_libjxl.dir/build.make:86: ext_libjxl/ext_libjxl-prefix/src/ext_libjxl-stamp/ext_libjxl-build] Error 2
gmake[2]: *** [CMakeFiles/Makefile2:1072: ext_libjxl/CMakeFiles/ext_libjxl.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:1079: ext_libjxl/CMakeFiles/ext_libjxl.dir/rule] Error 2
gmake: *** [Makefile:280: ext_libjxl] Error 2
FAILED COMMAND: cmake --build . --config RelWithDebInfo --target ext_libjxl -- -j$CPU_CORES

Need to patch some files again..

diff --git a/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt b/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
index a13b70e3b9..33943d13f8 100755
--- a/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
@@ -108,7 +108,7 @@ function(InstallKF5Component
 
                             CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
                                               sed -i '' -e "s/DBUILD_TESTING=ON/DBUILD_TESTING=OFF/g" <SOURCE_DIR>/bootstrap.macports &&
-                                              <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_frameworks} debug x86_64 "${argoptions}"
+                                              <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_frameworks} debug arm64 "${argoptions}"
 
                             BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/macports/01-build-macports.sh b/project/bundles/macports/01-build-macports.sh
index c9593b8f6f..5b93322878 100755
--- a/project/bundles/macports/01-build-macports.sh
+++ b/project/bundles/macports/01-build-macports.sh
@@ -210,7 +210,7 @@ EOF
         # No need to build with both architectures embeded (x86 and ARM) for Apple Silicon target
 
         cat << EOF >> "$INSTALL_PREFIX/etc/macports/variants.conf"
-+universal
++arm64
EOF
 
     fi
diff --git a/project/bundles/macports/config.sh b/project/bundles/macports/config.sh
index 830ac93ed5..d84dc30231 100644
--- a/project/bundles/macports/config.sh
+++ b/project/bundles/macports/config.sh
@@ -16,7 +16,7 @@ BUILDING_DIR="`pwd`/temp.build"
########################################################################
 
# Target macOS architecture: "x86_64" for Intel 64 bits, or "arm64" for Apple Silicon 64 bits.
-ARCH_TARGET="x86_64"
+ARCH_TARGET="arm64"
 
if [[ $ARCH_TARGET = "x86_64" ]] ; then
 
@@ -50,7 +50,7 @@ if [[ $ARCH_TARGET = "x86_64" ]] ; then
elif [[ $ARCH_TARGET = "arm64" ]] ; then
 
     # Apple Silicon is supported since macOS BigSur
-    OSX_MIN_TARGET="11.0"
+    OSX_MIN_TARGET="11.3"
 
else
 
laurent@mini-de-laurent digikam % git diff
diff --git a/project/bundles/3rdparty/ext_breeze/CMakeLists.txt b/project/bundles/3rdparty/ext_breeze/CMakeLists.txt
index 3b4209c73c..7249f5d006 100755
--- a/project/bundles/3rdparty/ext_breeze/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_breeze/CMakeLists.txt
@@ -60,7 +60,7 @@ elseif(APPLE)
                         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/breeze-common-rules.patch
 
                         CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_breeze} debug x86_64 "-DWITH_WALLPAPERS=OFF -DWITH_DECORATIONS=OFF -DBUILD_TESTING=OFF -Wno-dev"
+                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_breeze} debug arm64 "-DWITH_WALLPAPERS=OFF -DWITH_DECORATIONS=OFF -DBUILD_TESTING=OFF -Wno-dev"
 
                         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_exiv2/CMakeLists.txt b/project/bundles/3rdparty/ext_exiv2/CMakeLists.txt
index 1455a8f88c..ce37bf36b4 100755
--- a/project/bundles/3rdparty/ext_exiv2/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_exiv2/CMakeLists.txt
@@ -93,7 +93,7 @@ elseif(APPLE)
                           cd <SOURCE_DIR> &&
                           <SOURCE_DIR>/create_manifest.sh ${EXTERNALS_DOWNLOAD_DIR} exiv2 &&
                           cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_exiv2} RelWithDebInfo x86_64 ${BASH_OPTIONS}
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_exiv2} RelWithDebInfo arm64 ${BASH_OPTIONS}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_ffmpeg/CMakeLists.txt b/project/bundles/3rdparty/ext_ffmpeg/CMakeLists.txt
index f7f972b9bc..d10274178d 100644
--- a/project/bundles/3rdparty/ext_ffmpeg/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_ffmpeg/CMakeLists.txt
@@ -52,7 +52,7 @@ if(MINGW)
     set(FFmpeg_Conf ${FFmpeg_Conf}
                     --cross-prefix=${MXE_BUILD_TARGETS}-
                     --enable-cross-compile
-                    --arch=x86_64
+                    --arch=arm64
                     --target-os=mingw32
                     --disable-static
                     --enable-shared
diff --git a/project/bundles/3rdparty/ext_heif/CMakeLists.txt b/project/bundles/3rdparty/ext_heif/CMakeLists.txt
index f0dbcb9f92..91e612679e 100755
--- a/project/bundles/3rdparty/ext_heif/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_heif/CMakeLists.txt
@@ -64,7 +64,7 @@ elseif(APPLE)
                           cd <SOURCE_DIR> &&
                           <SOURCE_DIR>/create_manifest.sh ${EXTERNALS_DOWNLOAD_DIR} heif &&
                           cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_heif} RelWithDebInfo x86_64 ${Heif_conf}
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_heif} RelWithDebInfo arm64 ${Heif_conf}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_hugin/CMakeLists.txt b/project/bundles/3rdparty/ext_hugin/CMakeLists.txt
index f1d6ab06ea..df6638ff1d 100755
--- a/project/bundles/3rdparty/ext_hugin/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_hugin/CMakeLists.txt
@@ -58,7 +58,7 @@ elseif(APPLE)
         SVN_REPOSITORY svn://dev.exiv2.org/svn/trunk
 
         CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_exiv2} RelWithDebInfo x86_64 ${BASH_OPTIONS}
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_exiv2} RelWithDebInfo arm64 ${BASH_OPTIONS}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_imagemagick/CMakeLists.txt b/project/bundles/3rdparty/ext_imagemagick/CMakeLists.txt
index 7da597e7db..7f473ee54c 100755
--- a/project/bundles/3rdparty/ext_imagemagick/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_imagemagick/CMakeLists.txt
@@ -44,7 +44,7 @@ if(MINGW)
 
     set(Magick_Conf ${Magick_Conf}
                     --host=${MXE_BUILD_TARGETS}
-                    --build=x86_64-pc-linux-gnu
+                    --build=arm64-pc-linux-gnu
     )
 
     set(Magick_Patch ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/magick-plusplus-mxe.patch)
diff --git a/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt b/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
index a13b70e3b9..33943d13f8 100755
--- a/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
@@ -108,7 +108,7 @@ function(InstallKF5Component
 
                             CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
                                               sed -i '' -e "s/DBUILD_TESTING=ON/DBUILD_TESTING=OFF/g" <SOURCE_DIR>/bootstrap.macports &&
-                                              <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_frameworks} debug x86_64 "${argoptions}"
+                                              <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_frameworks} debug arm64 "${argoptions}"
 
                             BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_lensfun/CMakeLists.txt b/project/bundles/3rdparty/ext_lensfun/CMakeLists.txt
index d44494484f..ba5bcffe49 100644
--- a/project/bundles/3rdparty/ext_lensfun/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_lensfun/CMakeLists.txt
@@ -61,7 +61,7 @@ elseif (APPLE)
                           cd <SOURCE_DIR> &&
                           <SOURCE_DIR>/create_manifest.sh ${EXTERNALS_DOWNLOAD_DIR} lensfun &&
                           cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_lensfun} RelWithDebInfo x86_64 ${BASH_OPTIONS}
+                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_lensfun} RelWithDebInfo arm64 ${BASH_OPTIONS}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_libavif/CMakeLists.txt b/project/bundles/3rdparty/ext_libavif/CMakeLists.txt
index efdfca9934..d6382d1ce6 100755
--- a/project/bundles/3rdparty/ext_libavif/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_libavif/CMakeLists.txt
@@ -66,7 +66,7 @@ elseif(APPLE)
         GIT_TAG v0.9.3
 
         CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_libavif} RelWithDebInfo x86_64 ${BASH_OPTIONS_AVIF}
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_libavif} RelWithDebInfo arm64 ${BASH_OPTIONS_AVIF}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_libde265/CMakeLists.txt b/project/bundles/3rdparty/ext_libde265/CMakeLists.txt
index 7723038d0f..94eb290e67 100755
--- a/project/bundles/3rdparty/ext_libde265/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_libde265/CMakeLists.txt
@@ -43,7 +43,7 @@ elseif(APPLE)
         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/libde265-lib-only.patch
 
         CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_libde265} RelWithDebInfo x86_64
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_libde265} RelWithDebInfo arm64
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_libjxl/CMakeLists.txt b/project/bundles/3rdparty/ext_libjxl/CMakeLists.txt
index 6d71636abf..fefb63e852 100644
--- a/project/bundles/3rdparty/ext_libjxl/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_libjxl/CMakeLists.txt
@@ -67,7 +67,7 @@ elseif(APPLE)
 
         CONFIGURE_COMMAND git submodule update --init --recursive --depth 1 --recommend-shallow &&
                           cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_libjxl} RelWithDebInfo x86_64 ${BASH_OPTIONS}
+                          <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_libjxl} RelWithDebInfo arm64 ${BASH_OPTIONS}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_libksane/CMakeLists.txt b/project/bundles/3rdparty/ext_libksane/CMakeLists.txt
index 5f55a73af0..4273a53f20 100755
--- a/project/bundles/3rdparty/ext_libksane/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_libksane/CMakeLists.txt
@@ -81,7 +81,7 @@ elseif(APPLE)
                         URL_MD5 ${KF5_APPLICATION_MD5SUM}
 
                         CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_libksane} debug x86_64 "-DBUILD_TESTING=OFF -Wno-dev"
+                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_libksane} debug arm64 "-DBUILD_TESTING=OFF -Wno-dev"
 
                         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
@@ -105,7 +105,7 @@ elseif(APPLE)
                         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/libksane-common-rules.patch
 
                         CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_libksane} debug x86_64 "-DWITH_DESIGNER_PLUGIN=OFF -DBUILD_TESTING=OFF -Wno-dev"
+                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_libksane} debug arm64 "-DWITH_DESIGNER_PLUGIN=OFF -DBUILD_TESTING=OFF -Wno-dev"
 
                         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_marble/CMakeLists.txt b/project/bundles/3rdparty/ext_marble/CMakeLists.txt
index 6d18838aa1..0758572313 100755
--- a/project/bundles/3rdparty/ext_marble/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_marble/CMakeLists.txt
@@ -60,7 +60,7 @@ elseif(APPLE)
                                       <SOURCE_DIR>/fixbundledatapath.sh
 
                         CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_marble} debug x86_64 "-DWITH_DESIGNER_PLUGIN=OFF -DBUILD_MARBLE_TESTS=OFF -DBUILD_MARBLE_TOOLS=OFF -DBUILD_MARBLE_EXAMPLES=OFF -DBUILD_MARBLE_APPS=OFF -DBUILD_WITH_DBUS=OFF -DQTONLY=ON -DBUILD_TESTING=OFF -Wno-dev"
+                                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_marble} debug arm64 "-DWITH_DESIGNER_PLUGIN=OFF -DBUILD_MARBLE_TESTS=OFF -DBUILD_MARBLE_TOOLS=OFF -DBUILD_MARBLE_EXAMPLES=OFF -DBUILD_MARBLE_APPS=OFF -DBUILD_WITH_DBUS=OFF -DQTONLY=ON -DBUILD_TESTING=OFF -Wno-dev"
 
                         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_opencv/CMakeLists.txt b/project/bundles/3rdparty/ext_opencv/CMakeLists.txt
index 11f4c30616..13a0b1a548 100644
--- a/project/bundles/3rdparty/ext_opencv/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_opencv/CMakeLists.txt
@@ -136,7 +136,7 @@ elseif(APPLE)
         GIT_TAG 4.6.0
 
         CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_opencv} RelWithDebInfo x86_64 "${BASH_OPTIONS}"
+                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_opencv} RelWithDebInfo arm64 "${BASH_OPTIONS}"
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/3rdparty/ext_qt/5.15-LTS/config_help-5.15.txt b/project/bundles/3rdparty/ext_qt/5.15-LTS/config_help-5.15.txt
index d9ff8e598e..5011afe7d6 100644
--- a/project/bundles/3rdparty/ext_qt/5.15-LTS/config_help-5.15.txt
+++ b/project/bundles/3rdparty/ext_qt/5.15-LTS/config_help-5.15.txt
@@ -203,10 +203,10 @@ Build environment:
   -android-sdk path .... Set Android SDK root path [$ANDROID_SDK_ROOT]
   -android-ndk path .... Set Android NDK root path [$ANDROID_NDK_ROOT]
   -android-ndk-platform  Set Android platform
-  -android-ndk-host .... Set Android NDK host (linux-x86, linux-x86_64, etc.)
+  -android-ndk-host .... Set Android NDK host (linux-x86, linux-arm64, etc.)
                          [$ANDROID_NDK_HOST]
   -android-abis .......  Comma separated Android abis, default is:
-                         armeabi-v7a,arm64-v8a,x86,x86_64
+                         armeabi-v7a,arm64-v8a,x86,arm64
   -android-style-assets  Automatically extract style assets from the device at
                          run time. This option makes the Android style behave
                          correctly, but also makes the Android platform plugin
diff --git a/project/bundles/3rdparty/ext_qt/5.15/config_help-5.15.txt b/project/bundles/3rdparty/ext_qt/5.15/config_help-5.15.txt
index d9ff8e598e..5011afe7d6 100644
--- a/project/bundles/3rdparty/ext_qt/5.15/config_help-5.15.txt
+++ b/project/bundles/3rdparty/ext_qt/5.15/config_help-5.15.txt
@@ -203,10 +203,10 @@ Build environment:
   -android-sdk path .... Set Android SDK root path [$ANDROID_SDK_ROOT]
   -android-ndk path .... Set Android NDK root path [$ANDROID_NDK_ROOT]
   -android-ndk-platform  Set Android platform
-  -android-ndk-host .... Set Android NDK host (linux-x86, linux-x86_64, etc.)
+  -android-ndk-host .... Set Android NDK host (linux-x86, linux-arm64, etc.)
                          [$ANDROID_NDK_HOST]
   -android-abis .......  Comma separated Android abis, default is:
-                         armeabi-v7a,arm64-v8a,x86,x86_64
+                         armeabi-v7a,arm64-v8a,x86,arm64
   -android-style-assets  Automatically extract style assets from the device at
                          run time. This option makes the Android style behave
                          correctly, but also makes the Android platform plugin
diff --git a/project/bundles/3rdparty/ext_qtwebkit/CMakeLists.txt b/project/bundles/3rdparty/ext_qtwebkit/CMakeLists.txt
index 4873ff9b22..ec0a931a6b 100644
--- a/project/bundles/3rdparty/ext_qtwebkit/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_qtwebkit/CMakeLists.txt
@@ -43,7 +43,7 @@ if(APPLE)
         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qtwebkit-fixrpath-macports.patch
 
         CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
-                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_qtwebkit} MinSizeRel x86_64 ${BASH_OPTIONS}
+                          <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_qtwebkit} MinSizeRel arm64 ${BASH_OPTIONS}
 
         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
 
diff --git a/project/bundles/macports/01-build-macports.sh b/project/bundles/macports/01-build-macports.sh
index c9593b8f6f..5b93322878 100755
--- a/project/bundles/macports/01-build-macports.sh
+++ b/project/bundles/macports/01-build-macports.sh
@@ -210,7 +210,7 @@ EOF
         # No need to build with both architectures embeded (x86 and ARM) for Apple Silicon target
 
         cat << EOF >> "$INSTALL_PREFIX/etc/macports/variants.conf"
-+universal
++arm64
EOF
 
     fi
diff --git a/project/bundles/macports/config.sh b/project/bundles/macports/config.sh
index 830ac93ed5..d84dc30231 100644
--- a/project/bundles/macports/config.sh
+++ b/project/bundles/macports/config.sh
@@ -16,7 +16,7 @@ BUILDING_DIR="`pwd`/temp.build"
########################################################################
 
# Target macOS architecture: "x86_64" for Intel 64 bits, or "arm64" for Apple Silicon 64 bits.
-ARCH_TARGET="x86_64"
+ARCH_TARGET="arm64"
 
if [[ $ARCH_TARGET = "x86_64" ]] ; then
 
@@ -50,7 +50,7 @@ if [[ $ARCH_TARGET = "x86_64" ]] ; then
elif [[ $ARCH_TARGET = "arm64" ]] ; then
 
     # Apple Silicon is supported since macOS BigSur
-    OSX_MIN_TARGET="11.0"
+    OSX_MIN_TARGET="11.3"
 
else