Elektro CAD Software für Mac M1
mail Date :    01/06/2023 20:48

Sehr geehrte Damen und Herren

Vielen dank das Sie so ein tolles Projekt lins leben gerufen haben und ich bin auch sehr froh ein so tolles Programm gefunden zu haben. Nun zu meinen Problem, ich habe ihr Programm unter Windows genutzt und war sehr zufrieden, bis ich vor kurzen auf Mac umgestiegen bin (aus privaten gründen.). Nun habe ich gesehen das sie das Programm auch für linux und Mac anbieten; nur leider für Mac x86. kann ich das CAD Programm auch für den Mac M1 nutzen? Und wenn ja wie?

Vielen Dank
Mit freundlichen Grüßen

gg translate:

Ladies and Gentlemen

Thank you for bringing such a great project to life and I am also very happy to have found such a great program. Now to my problem, I used your program on Windows and was very happy until I recently switched to Mac (for personal reasons.). Now I saw that they also offer the program for linux and Mac; only unfortunately for Mac x86. can I also use the CAD program for the Mac M1? And if so how?

Thanks very much

Best regards

Yippee...

Fixed sqlite3 database export on Apple arm64 packages with Digikam scripts .
https://www.qt.io/blog/commercial-lts-q … 9-released

Qt 5.15.9 provides support for macOS on ARM, including prebuilt binaries for both single architecture and universal builds. Build system support for universal builds is limited to the qmake build system. See the Qt for macOS documentation for details on how to enable universal builds for your application.

F/opt/digikam.org.arm64/libexec/qt5/lib /opt/digikam.org.arm64/lib/libsqlite3.0.dylib -framework QtSvg -framework QtPrintSupport /opt/digikam.org.arm64/lib/libKF5WidgetsAddons.dylib -framework QtWidgets -framework QtGui -framework AppKit -framework Metal -framework QtNetwork -framework QtXml -framework QtSql -framework QtConcurrent /opt/digikam.org.arm64/lib/libKF5CoreAddons.dylib -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL   
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtWidgets.framework/QtWidgets) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtGui.framework/QtGui) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/lib/libKF5WidgetsAddons.dylib) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtSvg.framework/QtSvg) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtPrintSupport.framework/QtPrintSupport) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/lib/libsqlite3.0.dylib) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtNetwork.framework/QtNetwork) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtSql.framework/QtSql) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtXml.framework/QtXml) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/lib/libKF5CoreAddons.dylib) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtConcurrent.framework/QtConcurrent) was built for newer macOS version (11.3) than being linked (11.0)
ld: warning: dylib (/opt/digikam.org.arm64/libexec/qt5/lib/QtCore.framework/QtCore) was built for newer macOS version (11.3) than being linked (11.0)

The time of compilation is 1 min 10 sec

______________________________________________________________
Copy Qt libraries and private frameworks:
Processing Mac deployment tool...

______________________________________________________________
Copy file missing:
Copying add elements in the bundle...
Copying titleblocks in the bundle...
Copying translations in the bundle... 
Copying translations in the bundle... 
Copying examples in the bundle... 
qelectrotech.app: replacing existing signature

______________________________________________________________
Create zip tarball:
Would you like to upload for Notarize packages qelectrotech-0.100.0-r7856-arm64.zip, n/Y?.

FYI, I just saw MacPorts ported Qt 5.15.9 and I retry again Digikam scripts with little hacks for build only arm64 (Apple silicon) packages for the moment.. QET build with universal compile ok, but QET crash on launch ... So need to hack again Digikam and compile many hours again only arch: arm64......
I will see later...for universal....

laurent@mini-de-laurent digikam % git diff

diff --git a/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt b/project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
index 89de58b171..2212bc50fc 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 dd073280a6..9f8eb237f8 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
@@ -243,84 +243,15 @@ echo "---------- Building digiKam dependencies with Macports"
# With OSX less than El Capitan, we need a more recent Clang compiler than one provided by XCode.
# This only concern x86_64 architecture.
 
-if [[ $MAJOR_OSX_VERSION -lt 11 && $MINOR_OSX_VERSION -lt 10 ]]; then
 
-    echo "---------- Install more recent Clang compiler from Macports for specific ports"
-    port install clang_select
-    port install clang-3.4
-    port select --set clang mp-clang-3.4
-
-fi
-
-echo -e "\n"
-
-if [[ $ARCH_TARGET = "x86_64" ]] ; then
-
-    # Note: subversion is used to checkout translations from KDE repositories.
-    # Subversion do not compile under arm64 and XCode drop svn supports.
-    # KDE team plan to migrate svn to git: https://phabricator.kde.org/T13514
-
-    port install \
-                 ld64 +ld64_xcode \
-                 subversion
-
-fi
-
-echo -e "MariaDB Variant=$MP_MARIADB_VARIANT\n"
 
port install \
              cctools +xcode \
              cmake \
              ccache \
-             libpng \
-             jpeg \
-             tiff \
-             boost \
-             eigen3 \
-             gettext \
-             libusb \
-             libgphoto2 \
-             jasper \
-             lcms2 \
-             expat \
-             libxml2 \
-             libxslt \
-             libical \
-             lensfun \
-             bison \
-             py38-lxml \
-             x265 \
-             libde265 \
-             libheif \
-             aom \
-             ffmpeg \
-             wget +ssl \
-             qt5-qtbase \
-             qt5-qtdeclarative \
-             qt5-qtmacextras \
-             qt5-qtquickcontrols \
-             qt5-qtxmlpatterns \
-             qt5-qtsvg \
-             qt5-qttools \
-             qt5-qttranslations \
-             qt5-qtimageformats \
-             qt5-qtnetworkauth \
-             qt5-sqlite-plugin \
-             qt5-mysql-plugin $MP_MARIADB_VARIANT
-
-port deactivate boost
-
-if [[ $DK_QTWEBENGINE = 1 ]] ; then
-
-    port install qt5-qtwebengine
+             qt5
 
-else
 
-    port install qt5-qtwebkit
-
-fi
-
-port activate boost
 
# port broken since a while. check later
#             sane-backends \
@@ -360,17 +291,9 @@ cmake $ORIG_WD/../3rdparty \
        -DKA_VERSION=$DK_KA_VERSION \
        -DKF5_VERSION=$DK_KF5_VERSION \
        -DENABLE_QTVERSION=$DK_QTVERSION \
-       -DENABLE_QTWEBENGINE=$DK_QTWEBENGINE \
-       -Wno-dev
+        -Wno-dev
 
-if [[ $DK_QTWEBENGINE = 0 ]] ; then
-    cmake --build . --config RelWithDebInfo --target ext_qtwebkit    -- -j$CPU_CORES
-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_libavif     -- -j$CPU_CORES
 
#################################################################################################
 
diff --git a/project/bundles/macports/02-build-extralibs.sh b/project/bundles/macports/02-build-extralibs.sh
index ffad309c19..0307ae5133 100755
--- a/project/bundles/macports/02-build-extralibs.sh
+++ b/project/bundles/macports/02-build-extralibs.sh
@@ -69,35 +69,18 @@ cmake $ORIG_WD/../3rdparty \
        -DKP_VERSION=$DK_KP_VERSION \
        -DKF5_VERSION=$DK_KF5_VERSION \
        -DENABLE_QTVERSION=$DK_QTVERSION \
-       -DENABLE_QTWEBENGINE=$DK_QTWEBENGINE \
        -Wno-dev
 
# 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             -- -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
-cmake --build . --config RelWithDebInfo --target ext_threadweaver        -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_karchive            -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kdbusaddons         -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_ki18n               -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kcrash              -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kcodecs             -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kauth               -- -j$CPU_CORES
+
cmake --build . --config RelWithDebInfo --target ext_kguiaddons          -- -j$CPU_CORES
cmake --build . --config RelWithDebInfo --target ext_kwidgetsaddons      -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kitemviews          -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kcompletion         -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kconfigwidgets      -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kiconthemes         -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kservice            -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kglobalaccel        -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kxmlgui             -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_kbookmarks          -- -j$CPU_CORES
+
cmake --build . --config RelWithDebInfo --target ext_kimageformats       -- -j$CPU_CORES
 
# Extra support for digiKam
@@ -106,17 +89,7 @@ cmake --build . --config RelWithDebInfo --target ext_kimageformats       -- -j$C
#cmake --build . --config RelWithDebInfo --target ext_libksane            -- -j$CPU_CORES
 
# Geolocation support
-cmake --build . --config RelWithDebInfo --target ext_marble              -- -j$CPU_CORES
-
-# Marble install shared lib at wrong place.
-mv $INSTALL_PREFIX/Marble.app/Contents/MacOS/lib/libastro*  $INSTALL_PREFIX/lib
-mv $INSTALL_PREFIX/Marble.app/Contents/MacOS/lib/libmarble* $INSTALL_PREFIX/lib
-
-# Calendar support
-cmake --build . --config RelWithDebInfo --target ext_kcalendarcore       -- -j$CPU_CORES
 
-# Breeze style support
-cmake --build . --config RelWithDebInfo --target ext_breeze              -- -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


diff --git a/qelectrotech.pro b/qelectrotech.pro
index b9ec6ecba..937c1bf8b 100644
--- a/qelectrotech.pro
+++ b/qelectrotech.pro
@@ -244,7 +244,7 @@ TARGET = qelectrotech
 
# Ajustement des bibliotheques utilisees lors de l'edition des liens
unix:QMAKE_LIBS_THREAD -= -lpthread
-unix|win32: PKGCONFIG += sqlite3
+#unix|win32: PKGCONFIG += sqlite3
 
# Enable C++17
QMAKE_CXXFLAGS += -std=c++17
@@ -312,7 +312,8 @@ macx {
         # les chemins definis precedemment sont relatifs au dossier contenant le binaire executable
         DEFINES += QET_LANG_PATH_RELATIVE_TO_BINARY_PATH
         DEFINES += QET_COMMON_COLLECTION_PATH_RELATIVE_TO_BINARY_PATH
-        LIBS +=   /opt/digikam.org.x86_64/lib/libsqlite3.0.dylib
+        LIBS +=   /opt/digikam.org.arm64/lib/libsqlite3.0.dylib
+
}
 
# Compilers-specific options

Well, I did not try to compile Digikam in arm64 just to save time during the compilation of the environment, but it was a mistake to build all Qt5 was much longer than building qt5-qtbase and the Qt modules which I needed..

it takes a lot of time and I haven't looked at how many hours it took yet with an M2 chip it's much faster than an intel macbook pro, I seem to have read that Gilles said that building the DigiKam macports environment on his intel mac took more than 23 hours...

And to think that I lost a lot of time with Homebrew and even recompiled several times qt@5 formula for Sqlite3 export... since some weeks.... without result , each time a big crash during the export of the database... or database was empty..


https://download.qelectrotech.org/qet/b … S_X/arm64/

Enjoy! nomicons/wink

Voir:
https://git.tuxfamily.org/qet/qet.git/t … ow.cpp#n40
En fait c'est juste une translation de l'impression du projet en destination d' une imprimante qui est redigré vers une conversion vers un fichier en PDF simple.
qui es certes pratique, mais en aucun cas dynamique comme lire un projet.qet avec le moteur QElectroTech qui est capable de changer de folio suivant en cliquant sur les liens ou Xrefs cliquables et de zoomer sur la références maître ou esclave en lien !
https://wiki.qt.io/Exporting_a_document_to_PDF


Dans les faits nous sommes il me semble  pas assez expert pour construire ce moteur PDF, d'une part pour moi et mes faibles connaissances en C++ et mon état de santé compliqué, et Joshua par gros manque de temps !
Bonne soirée,
Laurent

Bonjour Dominique,

voir ce long topic qui en parle et quelques astuces
https://qelectrotech.org/forum/viewtopic.php?id=955

joshua wrote:

QET use a ready made "export to pdf" class provided by Qt framework.
For use link between Xref in pdf (and more, like summary, bill of éléments ect....), we must to write our own pdf export, and this is a very big work.
Like I say upper, we focus on big missing feature



Laurent

https://download.qelectrotech.org/qet/m … n-settings

User collection
Windows
C/users/user_name/Application Data/qet/elements

Linux
/Home/user_name/QElectroTech/collections/elements

Mac

Il y a un bouton pour télécharger le zip, voila:
https://github.com/qelectrotech/qelectr … s/main.zip

Apres suffit d'extraire le zip et de placer ce dossier dans dossier utilisateur qet/elements/ le chemin est différent suivant l'OS..

https://github.com/qelectrotech/qelectr … nt-contrib

Is easy to draw your self this board, no?

@Alex90: you could share your project to try it on my Debian or in my mini M2?
With my project attached to this post https://qelectrotech.org/forum/viewtopi … 309#p18309 project i make on Linux, I don't saw big change on Apple M2 with arm64 package..

1,285

(10 replies, posted in EN : Help, suggestions, discussions, ...)

Other manual, see 11.4 Working with the title block editor - (a tutorial)
https://download.qelectrotech.org/qet/m … doc-en.pdf

https://qelectrotech.org/forum/viewtopi … 001#p10001

https://download.qelectrotech.org/qet/forum_img_2/gost.png

https://download.qelectrotech.org/qet/forum_img_2/gost2.png


The size of the columns and rows does not have too much importance for the printing of a page what it is necessary to keep in mind it is to preserve the proportions of the format of a real page.

On the other hand, it influences the size of the symbols placed on the diagram.

The larger the sheet size, the smaller the placed symbols and vice versa.

1,286

(10 replies, posted in EN : Help, suggestions, discussions, ...)

https://qelectrotech.org/forum/viewtopic.php?id=2075

1,287

(10 replies, posted in EN : Help, suggestions, discussions, ...)

BTW, Importing an Excel Table with data and frame/raster:
https://qelectrotech.org/forum/viewtopic.php?id=2483

1,288

(10 replies, posted in EN : Help, suggestions, discussions, ...)

Yes is XML, and you have an editor titleblocks.

Maybe see this example:
https://github.com/qelectrotech/qelectr … vierge.qet

https://download.qelectrotech.org/qet/forum_img_2/table.png

1,289

(10 replies, posted in EN : Help, suggestions, discussions, ...)

Gost: is the bill of material, like BOM?

1,290

(53 replies, posted in Videos howto)

1,291

(10 replies, posted in EN : Help, suggestions, discussions, ...)

Hello Artyom,

Maybe with sqlite database export, and import table?
https://qelectrotech.org/forum/viewtopi … 256#p16256

Regards,
Laurent

1,292

(3 replies, posted in FR : Aide, suggestions, discussions, ...)

Salut Jc,
moi je suis impatient de connaitre le code visual studio et la fin sur excel même si j'ai pas ses softs, je doutes que ce ça intéresse plus que moi?

- j'ai réussi à faire le lien : j'avais fait 2 erreurs  :
        - la fonction recherche est difficile à maîtriser dans excel ,
        - ce que je croyais être une partie des erreurs vient en fait du fait que les champs n'étaient pas renseignés : j'interprétais cela en erreur alors que c'est simplement que  le champs est vide !!

1,293

(1 replies, posted in Code)

Hello Greg,

https://qelectrotech.org/forum/viewtopi … 024#p13024
https://qelectrotech.org/forum/viewtopic.php?id=1743

Maybe enter control + f in your diagram and search by element?

1,295

(1 replies, posted in EN : Help, suggestions, discussions, ...)

Personally, I select the conductor drawn then press F2 and I paste the HTML color code.

Example:

Power #2e859e
CATx   #55007f
etc

BTW, on the legend you could add a little texte with this HTML code color to remenber this code.

nice you're happy, great, enjoy nomicons/wink

scorpio810 wrote:

Apres les entreprises qui veulent et peuvent payer une fonctionnalité ou nouvelles features pour QET peuvent par exemple s'adresser à KDAB ce sont des experts Qt C++ ils participent activement à Qt et aussi à KDE mon environnement de bureau et framework Linux préféré.

https://www.kdab.com/fr/

Instead of KDAB you have also https://www.vikingsoftware.com/ who can add new functions to QET but I don't know prices...,
Companies can pay and have money for support to improve the software, for example pay to add navigation in a PDF file as when using the software, folio cross-references, clickable cross-references, etc.

We notice that large customers use our software and we thank them, they can in return help us by paying developers to bring or improve the software. ;-)

At the moment the little Team is made up of only two people with very little development time and many health problems which make the code progress slower than last 10 years ago, please help, thanks.

So that the machine documentation of an electrical, robotic, automated, etc. installation is freely accessible and free of charge to the greatest number of users, whatever their platform, enjoy. ,)

BTW, see our sponsors in this page which we are happy to share with you:
https://qelectrotech.org/

Please send this message to everyone who can help us, thanks in advance.

Regards,
laurent QElectroTech manager.

Hi,
easy, select your element, show Selection properties panel, if not actived enable it on https://download.qelectrotech.org/qet/m … tings-menu  click on Display

Displays or hides toolbars and panels
https://download.qelectrotech.org/qet/manual_0.7/build/_images/qet_menu_settings.png



In texts tab you see all element texts. You can add new texts, edit them if texts was dynamics or remove it:
https://download.qelectrotech.org/qet/manual_0.7/build/_images/qet_panel_properties.png

1,299

(1 replies, posted in EN : Help, suggestions, discussions, ...)

https://qelectrotech.org/forum/viewtopi … 638#p10638
https://download.qelectrotech.org/qet/m … oject-menu

Export the list of names of wires

Generates a .csv file summary of conductors used in the active project

https://download.qelectrotech.org/qet/manual_0.7/build/_images/qet_menu_project.png

https://download.qelectrotech.org/qet/m … lbar-depth
https://download.qelectrotech.org/qet/manual_0.7/build/_images/qet_toolbar_depth.png