701

(13 replies, posted in Code)

Ok, I saw the crash, but it didn't crash with my Debian deb packages so I think it's because of old versions of Qt on the QEMU/KVM Debian 11 VM..

FYI, I tried to build a new VM based on DigiKam scripts for the appimage with xubuntu 18.04 GCC 11 and compile Qt 5.15.11 but it was not possible yet to export the sqlite3 database without crashing the apimage...
https://invent.kde.org/graphics/digikam … type=heads

Hum, I think you do download KF5 branch for all, not master branch, I think master it is for Qt 6 version..
KF5 version to 5.112.0.

https://invent.kde.org/frameworks/extra … type=heads
https://invent.kde.org/frameworks/kcore … type=heads
https://invent.kde.org/frameworks/kwidg … type=heads

703

(13 replies, posted in Code)

I can't reproduce your crash here on my Debian, what your OS?

https://github.com/KDE/extra-cmake-modu … .cmake#L30

https://api.kde.org/ecm/module/ECMQueryQt.html

Maybe send D:/QET_Chinese/kcoreaddons-master/build/CMakeFiles/CMakeOutput.log".

====== Installing development tools for Microsoft Windows======
===== Install Qt: =====
Follow the instructions in this https://guillaumebelz.github.io/qtinstall in order to correctly install Qt

Create the QTPATH environment variable. For that :
Go to the Windows control panel, in the search bar type 'environment variable', in the result go to 'Modify system environment variables', in the dialog click on 'Environment variable' in the new dialog in 'system variable' click on 'new'.

Variable name:

QTPATH

value of the variable:

C:\Qt\5.15.0\mingw81_64

The path will need to be adapted according to your case.

Add minGW to the PATH environment variable, to do this:

Go to the Windows control panel, in the search bar type 'environment variable', in the result go to 'Modify system environment variables', in the dialog click on 'Environment variable' in the new dialog in 'system variable' select the 'Path' line then click on modify. In the 'Variable value' field add at the end

;C:\Qt\Tools\mingw810_64\bin\

the path will have to be adapted according to your case.
===== Installing cmake =====
Download the installer from the https://cmake.org/install/

During installation if you are asked to add cmake to the PATH do so (for all users) otherwise you will have to manually add the cmake bin folder to the PATH, see the procedure above. The path will be something like ''C:\Program Files\CMake\bin''.
===== ECM =====
The procedure used comes from this https://qelectrotech.org/forum/viewtopi … 120#p10120

Download https://github.com/KDE/extra-cmake-modules then unzip it to the folder of your choice.
In a command guest:

cd (path of ecm)
cmake -DCMAKE_INSTALL_PREFIX=%QTPATH% -G "MinGW Makefiles"
mingw32-make install



Compile KwidgetAddons and KcoreAddons (libraries used by QElectroTech)
The procedure used comes from this forum post and this one.

KCoreAddons
https://github.com/KDE/kcoreaddons
Download KCoreAddons and unzip it to the folder of your choice. In a command guest:

cd (path of kcoreaddons)
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=%QTPATH% -DCMAKE_PREFIX_PATH=$QTPATH -G "MinGW Makefiles" -DZLIB_LIBRARY:FILEPATH=C:\Qt\Tools\mingw810_64\x86_64-w64-mingw32\lib\libz.a
mingw32-make
mingw32-make install

the path C:\Qt\Tools\mingw810_64\x86_64-w64-mingw32\lib\libz.a must be adapted according to your case.

Rename C:\Qt\5.15.0\mingw81_64\lib\libKF5CoreAddons.dll.a to libKF5CoreAddons.a (Path to adapt according to your case).

KWidgetAddons
https://github.com/KDE/kwidgetsaddons
Download KWidgetAddons and unzip it to the folder of your choice. In a command guest:

cd (kwidgetsaddons path)
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=%QTPATH% -DCMAKE_PREFIX_PATH=$QTPATH -G "MinGW Makefiles" -DZLIB_LIBRARY:FILEPATH=C:\Qt\Tools\mingw810_64\x86_64-w64-mingw32\lib\libz.a
mingw32-make
mingw32-make install

the path C:\Qt\Tools\mingw810_64\x86_64-w64-mingw32\lib\libz.a must be adapted according to your case.

Rename C:\Qt\5.15.0\mingw81_64\lib\libKF5WidgetsAddons.dll.a to libKF5WidgetsAddons.a (Path to adapt according to your case).

Retrieve QElectrotech sources with git
Install git for windows.

Download the code from the github repository https://github.com/qelectrotech/qelectr … rce-mirror

git clone https://github.com/qelectrotech/qelectrotech-source-mirror.git
cd qelectrotech-source-mirror.git
git submodule update --init --recursive
mkdir build
cd build
qmake ..\qelectrotech.pro
make -j8

TRY to copy your  KWidgetsAddons KCoreAddons. mkspecs/modules/*.pri  to D:\QT\5.15.2\mingw73_32\mkspecs\modules\

After in D:\QT\5.15.2\mingw73_32\mkspecs \modules\

edit  KWidgetsAddons KCoreAddons pri files like :
https://invent.kde.org/sdk/kdesrc-build … note_53888

Replace "$$PWD/../../" by real PATH in KWidgetsAddons KCoreAddons pri

See my example on OSX,
https://qelectrotech.org/wiki_new/doc/macosx

rename D:\QT\5.12.4\mingw73_32\lib\libKF5CoreAddons.dll.a to libKF5CoreAddons.a
rename D:\QT\5.12.4\mingw73_32\lib\libKF5WidgetsAddons.dll.a to libKF5WidgetsAddons.a

BTW, you need to use now dynamic text, under folio you rotate it when you want, its not the case for static text!

A question: why do you want to compile yourself QElectroTech, we offert a lot of packages here?

cmake .. -DCMAKE_INSTALL_PREFIX=%QTPATH% -DCMAKE_PREFIX_PATH=$QTPATH -G "MinGW Makefiles" -DZLIB_LIBRARY:FILEPATH=D:\QT\Tools\Tools\mingw730_64\x86_64-w64-mingw32\lib\libz.a


Hmm try:

cmake .. -DCMAKE_INSTALL_PREFIX=%QTPATH% -DCMAKE_PREFIX_PATH=$QTPATH -G "MinGW Makefiles" -DZLIB_LIBRARY:FILEPATH=D:\QT\Tools\mingw730_64\x86_64-w64-mingw32\libz.a

It's more easy to compile on Linux, like Ubuntu/Debian if you know?

Hello,

CMake Error at D:/CMake/share/ECM/modules/ECMQueryQt.cmake:84 (message):
  No executable found.  Can't check QT_INSTALL_PREFIX as required


maybe you forgot to enter in your terminal before this command:
SET QTPATH=C:\Qt\5.12.4\mingw73_64

But I saw you have Qt5 installed  on D:/QT ?? maybe correct your SET with good path and correct the Qt version and also minGW version?
SET QTPATH=D:\QT\5.12.4\mingw73_64

rvamerongen wrote:

Any progress and a fix possible?

Fix : new conductor have text without variable replaced
+
Fix bug 293: Automatic conductor numbering does not work

https://github.com/qelectrotech/qelectr … 849d22ff5a

716

(6 replies, posted in Elements)

T'as regardé dans le dossier arduino et raspberry?

717

(224 replies, posted in News)

Change weighting of second conductor color, see : https://qelectrotech.org/bugtracker/view.php?id=292

On old project you can  search and replace with an text editor in your project.qet file :
dash-size="10" by dash-size="5" by example..

https://qelectrotech.org/forum/viewtopi … 999#p12999
https://qelectrotech.org/wiki_new/doc/qt_pour_windows

Par contre il te vaut mieux enregistrer sous avec un nouveau nom, car si tu bouges ou rajoute ou enlèves des bornes ça ne fonctionnera pas. Tu perdras les fils existant déja connectés a tes anciens symboles...

Oui la vidéo en MP4 ne passait pas sur le forum, je l'ai reconvertie en webM:

ffmpeg -i edit_element.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus edit_element.webm




Merci pour ta vidéo, mais enregistre et ferme le projet, quand tu le ré ouvre la modification sera faite.

Étrange, quelle version as tu?
Je te conseille celle en dev.

723

(10 replies, posted in Import DXF)

I open your DXF with QCad, ctrl +A for select all parts, in Block menu I Click on explode and after I save file, now your DXF work whit QET dxf2elmt pulgin.

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

See https://github.com/antonioaja/dxf2elmt/issues/2

Bonjour, si tu as bien eu le questionnaire qui te propose 3 choix, écraser l'existant, conserver les deux versions, etc alors ils devraient être tous remplacés, a moins que les autres éléments ne soit pas le même symbole..

725

(10 replies, posted in Import DXF)

Little test on M2 MAC.