I just throw down my notes quickly here, feel free to enhance and integrate/link with other engineering articles...
QElectroTech "QET" is a free schematic editor for mainly power electric drawings. It can also draw pneumatics, hydraulic, electronic schematics.
- 1 Links
- 2 Versions
- 3 Building
- 4 Housekeeping
- Main page: https://qelectrotech.org/
- Tutorials: https://www.youtube.com/user/scorpio8101/videos
- Manual https://download.tuxfamily.org/qet/manual_0.7/build/index.html
- Bugtracker: https://qelectrotech.org/bugtracker/
A lot of documentation is in French only, but google translate can be used, i.e
- FAQ (old): https://translate.googleusercontent.com/translate_c?act=url&u=https://qelectrotech.org/wiki_new/doku.php%3Fid%3Ddoc:faq
Mageia 7 have latest officially finished version 0.7 packaged.
Using appimages it is easy to have several versions installed at the same time, i.e.: create work using the current version, use the old version to edit old work without losing compatibility for other users still on the old version, and try out the development version.
There are appimages at https://download.tuxfamily.org/qet/builds/AppImage/ of version 0.5, 0.61, 0.7, and the development version.
Also, see the discussion thread.
How to build latest development version locally
(written for Mageia 6)
Alternatively, you can compile and run it also to get debug info in Qt Creator, so you may want to install package qt-creator instead. (Details are out of scope for this article.)
Get required system packages
# urpmi gcc make subversion qtbase5-common-devel lib64qt5svg-devel lib64qt5xml-devel lib64qt5network-devel lib64qt5printsupport-devel lib64qt5concurrent-devel lib64qt5sql-devel
As normal user:
$ cd ~/Download $ svn checkout svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-trunk $ cd qelectrotech-trunk
Next time, instead do:
(this requires that you have kept the qelectrotech-trunk folder)
To quickly check if there is an update, and then get it:
$ cd ~/Download/qelectrotech-trunk $ svn up
Patch revision number (optional)
This makes "qelectrotech -v" as well as the about dialogue, report the revision number. Not important.
Both svn commands above end telling you the revision number.
You can also ask any time: In this folder issue:
In the file sources/qet.h, edit the string in line (example version 0.51-dev) :
const QString displayedVersion = "0.51-dev";
After "-dev" add the revision in the form " +svn 4728", in this case forming
const QString displayedVersion = "0.51-dev +svn 4728";
Someone good at sed could maybe post a one-liner for it here... ;)
Configure and compile
Continue in folder qelectrotech-trunk:
First uninstall earlier creation
If you have compiled and "make install" QElectroTech before in this folder first uninstall it, as root:
# make uninstall
Then as a normal user
$ make clean
The new one
Now, for both first time and subsequent times, as a normal user
$ qmake $ make -j8
Here "j8" means use 8 threads, i.e suitable for fast compile on an i7 CPU. You usually change the number to same as the number of available cores plus minus one depending on taste, or just omit "-j8" above so it uses one thread only if you are not in a hurry.
/!\ If you have quelectrotech installed by other means (rpm package, file copying etc) then uninstall it before continuing!
Install the fresh version as root:
# make install
Where important files are stored
- Configuration: ~/.config/QElectroTech/QElectroTech.conf
- Users own created elements and titleblocks
- OR can an be set as start parameter, i.e
Also see command line options, try entering $ qelectrotech --help