From Mageia wiki
Jump to: navigation, search

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.

Links

A lot of documentation is in French only, but google translate can be used, i.e

Versions

Mageia 7 have latest officially finished version 0.7 packaged.

Appimage

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.

Building

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

As root:

# urpmi gcc make subversion qtbase5-common-devel lib64qt5svg-devel lib64qt5xml-devel lib64qt5network-devel lib64qt5printsupport-devel lib64qt5concurrent-devel lib64qt5sql-devel

Download sources

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:

$ svnversion

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.

Install

/!\ 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

Housekeeping

Where important files are stored

  • Configuration: ~/.config/QElectroTech/QElectroTech.conf
  • Users own created elements and titleblocks
    • ~/.qet/
    • OR can an be set as start parameter, i.e
qelectrotech --config-dir=/some/path/

https://qelectrotech.org/forum/viewtopic.php?pid=6275#p6275

Also see command line options, try entering $ qelectrotech --help

Also see https://qelectrotech.org/wiki_new/doc/options_compil_exec