From Mageia wiki
Revision as of 15:16, 11 July 2018 by Morgano (talk | contribs) (Versions: Appimage of 0.7 available now)
Jump to: navigation, search

I just throw down my notes quickly here, feel free to enchance 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

Since may 2018 we have latest officially finished version 0.6 packaged in Cauldron and Mageia 6.

Appimage

There is now july 2018 an appimage of the QET development version 0.7 at https://qelectrotech.org/forum/viewtopic.php?pid=8336#p8336

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 ends 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 normal user

$ make clean

The new one

Now, for both first time and subsequent times, as normal user

$ qmake
$ make -j8

Here "j8" mean use 8 threads, i.e suitable for fast compile on a i7 CPU. You usually change the number to same as number of available cores plus minus one depending on taste, or just omit "-j8" above so it use 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