====== 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:
value of the variable:
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
"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."