KTechLab is an IDE for microcontrollers and electronics.
It supports circuit simulation,
program development for microcontrollers and
simulating the programmed microcontroller together with its application circuit.
KTechLab on github:
KTechLab on sourceforge
the official communucation channel is hosted on sourceforge,
it is called ktechlab-devel
on IRC, KTechLab developers regularly join the channel
#ktechlab, on FreeNode
source code repositories: see Getting the source section, below
KTechLab's source code is located in GIT repositories.
The official repository is located on github:
the master branch contains the latest tested development code,
while other branches might contain untested/unstable code
Other notable GIT repositories are located on sourceforge:
main KTechLab repository:
developers' own repositories:
Checking out from GIT can be performed with the following commands:
git clone git://github.com/ktechlab/ktechlab.git cd ktechlab git checkout -b master --track origin/master
Since KDE4, all Makefiles in KDE projects are generated using CMake.
After checking out the source (see Getting the source),
here is how to compile and install KTechLab.
By using a terminal, navigate to the top-level source-directory
Create and enter a build directory:
mkdir build && cd build
Run cmake to generate the Makefiles:
cmake .. -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=~/usr/
This command enables debug-symbols to be built
and installs all files into a
usr sub-directory in your home-directory.
If cmake complains about any missing libraries,
you need to install development versions for those.
Make sure cmake finishes with no error until you proceed.
Compile and install the source:
If you installed into a non-standard prefix
(like suggested in the cmake-command-line above),
you need to make sure that some environment variables are set:
export PATH=~/usr/bin:$PATH export LD_LIBRARY_PATH=~/usr/lib/kde4:~/usr/lib:$LD_LIBRARY_PATH export XDG_DATA_DIRS=~/usr/share:$XDG_DATA_DIRS export QT_PLUGIN_PATH=~/usr/lib/kde4:$QT_PLUGIN_PATH export KDEDIRS=~/usr:$KDEDIRS
After installing new versions of .desktop files or other
freedesktop.org-related files, you need to run:
to update all caches to use these files.
This is especially important when creating new plugins.
They won't be loadable by (or even visible to) the KDE's plugin-system,
until you ran kbuildsycoca4.
Note that you need to have the environment variables from step 5 set.
On fresh builds, it's necessary to update the mime database.
This will be done by the following command:
Where /path/to/mime is the path, where the ktechlab.xml gets installed to.
(there should be ~/usr/share/mime/packages/ktechlab.xml in this case)
If building and installing has been successfully completed, the command
Should launch KTechLab. Note that in some cases the KTechLab plugins
might be disabled, so they need to be enabled from the menu:
Setting -> Configure KTechLab -> Plugins,
and enable all the KTechLab-related plugins.
Sometimes it's easier to launch KTechLab from a script,
mostly for debugging purposes.
The script presented below sets the environment-variables and
installs all the mime-types before launching the KTechLab
executable located in the current directory:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash export PATH=~/usr/bin:$PATH export LD_LIBRARY_PATH=~/usr/lib/kde4:~/usr/lib:$LD_LIBRARY_PATH # export XDG_DATA_DIRS=~/usr/share:$XDG_DATA_DIRS export XDG_DATA_DIRS=$HOME/usr/share:$XDG_DATA_DIRS export QT_PLUGIN_PATH=~/usr/lib/kde4:$QT_PLUGIN_PATH export KDEDIRS=~/usr:$KDEDIRS kbuildsycoca4 &> /dev/null update-mime-database $HOME/usr/share/mime ./ktechlab