2,976

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

I removed this packages, checked 64 bits package x86_64-w64-mingw32.static.posix.seh not stable and too fragile and often crashes...

https://forum.qt.io/topic/109709/speed- … ication/17

Maybe use Msvc compiler, if someone can try it?

https://git.tuxfamily.org/qet/qet.git/c … 2289c9d393
https://git.tuxfamily.org/qet/qet.git/c … e0d3bb1186

./count_elements.sh
7321 elements dans 1023 categories (soit 8344 fichiers)

2,981

(60 replies, posted in Code)

Done.

2,982

(3 replies, posted in Code)

Yes you can help to improve QET under Windows.

2,983

(60 replies, posted in Code)

Yes!

And for QET team use
git clone ssh://your TuxFamily login@git.tuxfamily.org/gitroot/qet/qet.git

2,984

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

Please try https://download.qelectrotech.org/qet/b … 0-07-24-1/

i686-w64-mingw32.static.posix.sjlj for 32 bits package.
x86_64-w64-mingw32.static.posix.seh for 64 bits package.

https://www.opencascade.com/content/mingw-w64-vs-msvc

To compare performance, I have run all OCCT tests in sequential (single process) mode. The results are as follows:

Compiler       | Build time | DLL size | All tests run time | CPU diff, % |
----------------------------------------------------------------
MSVC 2010      |   29 min   | 63348 Kb |      6 h 04 min    |      0      |
MSVC 2017      |   30 min   | 62021 Kb |      5 h 55 min    |     -2%     |
Mingw-w64 SEH  |   30 min   | 61716 Kb |      6 h 07 min    |     +1%     |
Mingw-w64 SJLJ |   35 min   | 78516 Kb |      7 h 42 min    |    +38%     |

2,985

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

https://forum.qt.io/topic/78300/mingw-vs-msvc/5
https://retifrav.github.io/blog/2018/02 … tatically/
https://www.opencascade.com/content/mingw-w64-vs-msvc

2,986

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

Under Windows QET is very slow and sometimes freeze, if you are lucky to try under Linux you will find that the program is very fast and smooth.

Joshua try to improve this.

https://qelectrotech.org/forum/viewtopi … 498#p12498

For my part I'm trying to see what I can improve with the Windows packaging MXE cross compiler.

2,987

(60 replies, posted in Code)

A cron job (360 mins) syncs the remote GIT master (Tuxfamily) to the Github mirror, I just changed the timer to 60 mins now.

If you want the last Commit on master :

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

2,988

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

What your version?
Like :

2,989

(3 replies, posted in Code)

I already do it in the packaging scripts.

https://qelectrotech.org/forum/viewtopi … 045#p10045

https://qelectrotech.org/wiki_new/doc/packaging_debian

GITCOMMIT=$(git rev-parse --short HEAD)
 
#Find Subversion revision number in trunk branch
if [ -z "$HEAD" ] ; then
#HEAD=$(svn --xml info svn://svn.tuxfamily.org/svnroot/qet/qet/trunk | grep revision=\" | tail -1 | cut -d\" -f2)   
A=$(git rev-list HEAD --count)
HEAD=$(($A+473))
 
fi
 
VERSION=$(cat sources/qet.h | grep "const QString version" |  cut -d\" -f2 | cut -d\" -f1)          #Find version tag in Subversion sources/qet.h
tagName=$(cat sources/qet.h | grep displayedVersion |  cut -d\" -f2 | cut -d\" -f1)                 #Find displayedVersion tag in Subversion sources/qet.h
 
 
cd $DEFAULT_DIR/qelectrotech-$VERSION.r$HEAD/debian/patches/
sed -i 's/'"$tagName+[0-9]*"'/'"$tagName+$GITCOMMIT"'/' 03_qet.diff

https://qelectrotech.org/wiki_new/doc/p … n#appimage

https://git.tuxfamily.org/qet/qet.git/t … t.yaml#n98

2,990

(3 replies, posted in Le petit monde de la scolarité)

Bonjour,

Actuellement en école d'ingénieur en génie industriel par alternance,
j'ai peu à peu aussi bien contaminé les formateurs de mon école,
et mes collègues de travail à l'utilisation de Qelectrotech.

Ce logiciel est extrêmement pratique pour l'apprentissage,
il réponds à toutes les premières nécessités.

Merci beaucoup, tu as tout notre soutien pour contaminer dans ce sens d'autres collègues sur le logiciel QET. ;-)

ce fil devrait te renseigner :
https://qelectrotech.org/forum/viewtopi … 516#p12516

La chaîne Youtube :
https://www.youtube.com/user/scorpio8101/videos

Des videos dans plusieurs langues :

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


Manuel :
https://download.qelectrotech.org/qet/m … index.html
https://download.qelectrotech.org/qet/j … l/QET.html

Par contre, beaucoup me retournent que la prise en main est extrêmement difficile...

Comparé à d'autres logiciels pro et tres cher comme SEE Electrical expert ou Eplan la prise en main est extrêmement facile intuitive et rapide..
Le code source est ouvert et libre, comme les formats des projets, éléments, (XML),  base de données Sqlite de quoi aiguiser la curiosité et découverte de nouvelles fonctions passerelles, outils, etc par des ingénieurs.

https://qelectrotech.org/forum/viewforum.php?id=14
https://qelectrotech.org/forum/viewtopic.php?id=1682
https://qelectrotech.org/forum/viewtopic.php?id=1725


Bonne journée

2,991

(60 replies, posted in Code)

Yes off course you can merge it, thanks Simon.

2,992

(60 replies, posted in Code)

Same, see translators tab.

2,993

(60 replies, posted in Code)

I 'll try to add https://github.com/jrfonseca/drmingw like Digikam for Windows build :
https://www.digikam.org/news/2018-10-31 … ouncement/
No compile in static mode I try to rebuild all MXE in shared mode..

2,994

(60 replies, posted in Code)

I check tomorow, time to go to my work..

2,995

(60 replies, posted in Code)

URL transformed to HTTPS due to an HSTS policy
--2020-07-21 19:47:32--  https://download.kde.org/stable/framewo … 0.0.tar.xz
Résolution de download.kde.org (download.kde.org)… 2a01:4f8:171:1f24::3, 136.243.156.189
Connexion à download.kde.org (download.kde.org)|2a01:4f8:171:1f24::3|:443… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found
Emplacement : http://ftp.kaist.ac.kr/kde/stable/frame … 0.0.tar.xz [suivant]
--2020-07-21 19:47:33--  http://ftp.kaist.ac.kr/kde/stable/frame … 0.0.tar.xz
Résolution de ftp.kaist.ac.kr (ftp.kaist.ac.kr)… 103.22.220.133
Connexion à ftp.kaist.ac.kr (ftp.kaist.ac.kr)|103.22.220.133|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 22320 (22K) [application/x-xz, application/x-xz]
Sauvegarde en : « /media/backup2/digikam/project/bundles/mxe/temp.dwnld/kcrash-5.70.0.tar.xz »

     0K .......... .......... .                               100% 70,9K=0,3s

2020-07-21 19:47:34 (70,9 KB/s) — « /media/backup2/digikam/project/bundles/mxe/temp.dwnld/kcrash-5.70.0.tar.xz » sauvegardé [22320/22320]

[  0%] Performing download step (verify and extract) for 'ext_kcrash'
-- verifying file...
     file='/media/backup2/digikam/project/bundles/mxe/temp.dwnld/kcrash-5.70.0.tar.xz'
-- verifying file... done
-- extracting...
     src='/media/backup2/digikam/project/bundles/mxe/temp.dwnld/kcrash-5.70.0.tar.xz'
     dst='/media/backup2/digikam/project/bundles/mxe/temp.build/ext_kf5_frameworks/ext_kcrash-prefix/src/ext_kcrash'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[100%] No patch step for 'ext_kcrash'
[100%] No update step for 'ext_kcrash'
[100%] Performing configure step for 'ext_kcrash'
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /media/backup2/digikam/project/bundles/mxe/build.win32/usr/x86_64-pc-linux-gnu/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /media/backup2/digikam/project/bundles/mxe/build.win32/usr/x86_64-pc-linux-gnu/bin/i686-w64-mingw32.static-gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /media/backup2/digikam/project/bundles/mxe/build.win32/usr/x86_64-pc-linux-gnu/bin/i686-w64-mingw32.static-g++
-- Check for working CXX compiler: /media/backup2/digikam/project/bundles/mxe/build.win32/usr/x86_64-pc-linux-gnu/bin/i686-w64-mingw32.static-g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--

Installing in /media/backup2/digikam/project/bundles/mxe/build.win32/usr/i686-w64-mingw32.static. Run /media/backup2/digikam/project/bundles/mxe/temp.build/ext_kf5_frameworks/ext_kcrash-prefix/src/ext_kcrash-build/prefix.sh to set the environment for KCrash.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE 
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- The following features have been enabled:

* Core Pattern Raising, Raising signals to kernel core patterns (iff the pattern is a process). You may wish to not install drkonqi if this can cause a UI conflict.

-- The following REQUIRED packages have been found:

* ECM (required version >= 5.70.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
* Qt5 (required version >= 5.12.0)
* Qt5Core (required version >= 5.12.0)
* KF5CoreAddons (required version >= 5.70.0)
* Qt5EventDispatcherSupport
* Qt5FontDatabaseSupport
* Threads
* Qt5Svg
* Qt5Network
* Qt5ThemeSupport
* Qt5AccessibilitySupport
* Qt5WindowsUIAutomationSupport
* Qt5Gui (required version >= 5.15.0)
* KF5WindowSystem (required version >= 5.70.0)

-- The following features have been disabled:

* QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)

-- The following OPTIONAL packages have not been found:

* X11

-- Configuring done
CMake Error at src/CMakeLists.txt:20 (add_library):
  Target "KF5Crash" links to target "Qt5::WinExtras" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at src/CMakeLists.txt:20 (add_library):
  Target "KF5Crash" links to target "Qt5::WinExtras" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_FIND_PREFIX_PATH
    CMAKE_INCLUDE_PATH
    CMAKE_SYSTEM_INCLUDE_PATH
    INSTALL_ROOT
    MXE_TOOLCHAIN
    ZLIB_ROOT


CMake Generate step failed.  Build files cannot be regenerated correctly.
gmake[3]: *** [ext_kf5_frameworks/CMakeFiles/ext_kcrash.dir/build.make:130 : ext_kf5_frameworks/ext_kcrash-prefix/src/ext_kcrash-stamp/ext_kcrash-configure] Erreur 1
gmake[2]: *** [CMakeFiles/Makefile2:1393 : ext_kf5_frameworks/CMakeFiles/ext_kcrash.dir/all] Erreur 2
gmake[1]: *** [CMakeFiles/Makefile2:1400 : ext_kf5_frameworks/CMakeFiles/ext_kcrash.dir/rule] Erreur 2
gmake: *** [Makefile:450 : ext_kcrash] Erreur 2
FAILED COMMAND: ${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kcrash -- -j$CPU_CORES


# Switch to a more recent gcc version
echo 'override MXE_PLUGIN_DIRS += plugins/gcc9' >> settings.mk

make -j48 MXE_TARGETS=$MXE_BUILD_TARGETS \
     cmake \
     gettext \
     freeglut \
     libxml2 \
     libxslt \
     libjpeg-turbo \
     libpng \
     tiff \
     boost \
     expat \
     lcms \
     liblqr-1 \
     eigen \
     jasper \
     zlib \
     mman-win32 \
     pthreads \
     qtbase \
     qttranslations \
     qtimageformats \
     qtwebkit \
     qttools \
     qtwinextras \
     sqlite  \
     qtscript \
     x265 \
     ffmpeg \
     openal \
     libical \
     imagemagick

echo -e "\n"

https://api.kde.org/frameworks/kcrash/html/index.html

2,996

(60 replies, posted in Code)

Maybe add other KF5 lib like https://github.com/KDE/kcrash

But I disable KCrash in my cross-compile env for windows. not compile..

# core KF5 frameworks dependencies
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_extra-cmake-modules -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kconfig             -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_breeze-icons        -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kcoreaddons         -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kwindowsystem       -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_solid               -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_threadweaver        -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_karchive            -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kdbusaddons         -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_ki18n               -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kcrash              -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kcodecs             -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kauth               -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kguiaddons          -- -j$CPU_CORES
${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kwidgetsaddons      -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kitemviews          -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kcompletion         -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kconfigwidgets      -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kiconthemes         -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kservice            -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kglobalaccel        -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kxmlgui             -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kbookmarks          -- -j$CPU_CORES
#${MXE_BUILD_TARGETS}-cmake --build . --config RelWithDebInfo --target ext_kimageformats       -- -j$CPU_CORES

2,997

(60 replies, posted in Code)

@Simon,
if you could try this patch on Windows?

2,998

(60 replies, posted in Code)

Add Linux gpu info 'model name'

QString OSName = QSysInfo::kernelType();
    if (OSName == "linux")
    {
    QProcess linuxcpuinfo;
    linuxcpuinfo.start("bash", QStringList() << "-c" << "cat /proc/cpuinfo |grep 'model name' | uniq");
    linuxcpuinfo.waitForFinished();
    QString linuxOutput = linuxcpuinfo.readAllStandardOutput();
    compilation_info +=  "<br>"" CPU : " + QString(linuxOutput.toLocal8Bit().constData());
 
    QProcess linuxgpuinfo;
    linuxgpuinfo.start("bash", QStringList() << "-c" << "lspci | grep VGA | cut -d : -f 3");
    linuxgpuinfo.waitForFinished();
    QString linuxGPUOutput = linuxgpuinfo.readAllStandardOutput();
    compilation_info += "<br>"" GPU : " + QString(linuxGPUOutput.toLocal8Bit().constData());
    }

2,999

(60 replies, posted in Code)

Nice example but in qml ...
https://doc.qt.io/QtApplicationManager/ … ample.html

https://stackoverflow.com/questions/183 … pplication
https://docs.microsoft.com/fr-fr/window … dfrom=MSDN

3,000

(60 replies, posted in Code)

Add Linux cpu info 'model name'

#else
    compilation_info += "  GCC " + QString(__VERSION__);
    compilation_info += "<br>Built with Qt " + QString(QT_VERSION_STR);
    compilation_info += " - Date : " + QString(__DATE__);
    compilation_info += " : " + QString(__TIME__);
    compilation_info += " <br>Run with Qt "+ QString(qVersion());
    compilation_info += " using" + QString(" %1 thread(s)").arg(QThread::idealThreadCount());
 
QProcess linuxcpuinfo;
         linuxcpuinfo.start("bash", QStringList() << "-c" << "cat /proc/cpuinfo | grep 'model name' | uniq");
         linuxcpuinfo.waitForFinished();
         QString linuxOutput = linuxcpuinfo.readAllStandardOutput();
    compilation_info += "<br>" + QString(linuxOutput.toLocal8Bit().constData());
 
    compilation_info +=  QString(QSysInfo::currentCpuArchitecture().toUpper());
    compilation_info += "<br>" "  OS : " +  QString(QSysInfo::kernelType());
    compilation_info += "  -   " + QString(QSysInfo::currentCpuArchitecture());
    compilation_info += " -  Version :    " + QString(QSysInfo::prettyProductName());
    compilation_info += "</br>" " -  Kernel :     " + QString(QSysInfo::kernelVersion());
    compilation_info += "<br>  *** Qt screens *** </br>";
     const auto screens = qApp->screens();
     for (int ii = 0; ii < screens.count(); ++ii) {
         compilation_info += "<br> ( "
                 + QString::number(ii + 1)
                 + " : "
                 + QString::number(screens[ii]->geometry().width() * screens[ii]->devicePixelRatio())
                 + " x "
                 + QString::number(screens[ii]->geometry().height() * screens[ii]->devicePixelRatio())
                 + " ) </br>";
     }
 
#endif
#endif