This document presents instructions for setting up development environment
in KDevelop 4 for developming KTechLab.
The figures referred in this document are located in the
Please refer to the
Building and Running
section of the README.md file for the dependencies of KTechab.
Besides the requirements listed in the README.md file,
KDevelop 4 should be installed.
First run the
simple-setup.sh script, in order to perform the initial
configuration of CMake build system.
Open KDevelop 4:
Open / Import Project...:
Navigate to the downloaded source tree of KTechLab and
On the next dialog box, with the settings of CMake,
For the build directory select as build directory the
subdirectory of the source tree:
Now the Kdevelop 4 project should be created:
At this stage building and "installing" the project should work.
The "installation" sets up a runnable KTechLab installation in the
simple-install subdirectory of the source tree.
Without installation, KTechLab will not find its plugins, so it won't be
able to display or edit circuits.
For building select the KTechLab project in KDevelop 4 and click on the
The build should finish fast, as the source tree has been already built.
For installing, the
Install selection button can be clicked from the
toolbar of the
Projects tool view:
For running KTechLab from KDevelop 4, Launches have to be created in
In the menu select
In the newly appeared dialog click
Add new launch configuration:
As Executable select
Executable, click the browse button, and
from the source tree select
For proper launch of KTechLab, several environment variables have to be
correctly set up. These are:
For easy management, KDevelop 4 can set up the environment of a program that
is being launched.
Configure Environment Variables button:
In the environment configuration dialog, write a name for the new
environment settings group, and click the
Add group button:
Next, the environment variable names and values have to be set up.
In order to do so, open the
file from the source tree and copy the names and values of the
environment variables to the environment setup dialog in KDevelop 4.
An example using the terminal is presented on figures
The end result is depicted on
OK on the environment setup dialog.
After the environment has been set up, select it as the used environment
for launching KTechLab:
OK to finish setting up the launch.
Now by clicking
Execute Current Launch, KTechLab can be started:
In order to ensure that KTechLab is launched properly, it is recommended to
verify the list of loaded KTechLab plugins.
For doing so, in KTechLab, select
Loaded Plugins from the menu:
A list similar to
24-loaded-plugins-list.png should be shown.
Notice the plugins that have in their name KTechLab.
Because launching KTechLab has been already set up,
Debug Current Launch button from the toolbar can be readily used:
KDevelop can be used from now on to work on KTechLab:
Feel free to contact the developers
- by email on the
ktechlab-devel list on SourceForge:
- chat on IRC:
- any other means listed on KTechLab's project page on Github