Changeset View
Changeset View
Standalone View
Standalone View
app_templates/cpp/CMake/cmake_kdevplugin/README.md
- This file was added.
1 | # Simple KDevelop Plugin | ||||
---|---|---|---|---|---|
2 | | ||||
3 | ## Installation instructions | ||||
4 | | ||||
5 | Make sure the project is configured to install to the directory of your choice: | ||||
6 | | ||||
7 | In KDevelop, select the menu entry "Project" > "Open Configuration...", | ||||
8 | then in the dialog choose the tab "CMake", | ||||
9 | there select in the "Cache Values" list the entry with the name `CMAKE_INSTALL_PREFIX` | ||||
10 | and ensure the correct path is set. | ||||
11 | | ||||
12 | If you install to a custom directory, you need to extend the `QT_PLUGIN_PATH` | ||||
13 | environment variable that KDevelop sees when it is started. The path to be added | ||||
14 | is the "plugins" subdir, whose exact path depends on the operating system and | ||||
15 | if that is a 64 bit or 32 bit one. | ||||
16 | On Debian, Ubuntu & similar with a 64 bit system add: | ||||
17 | $my_install_prefix/lib/x86_64-linux-gnu/plugins | ||||
18 | On openSUSE & similar with a 64 bit system add: | ||||
19 | $my_install_prefix/lib64/plugins | ||||
20 | (where `$my_install_prefix` is the directory `CMAKE_INSTALL_PREFIX` is set to) | ||||
21 | | ||||
22 | If you are unsure, check in the installation log the path to which the plugin is installed. | ||||
23 | | ||||
24 | | ||||
25 | Example: | ||||
26 | When CMAKE_INSTALL_PREFIX is set to "/home/userX/projects/mykdevplugin/" and | ||||
27 | this is a Debian 64-bit system, open a console and enter: | ||||
28 | | ||||
29 | export QT_PLUGIN_PATH=$QT_PLUGIN_PATH:/home/userX/projects/mykdevplugin/lib/x86_64-linux-gnu/plugins | ||||
30 | | ||||
31 | Then start KDevelop from that console: | ||||
32 | | ||||
33 | kdevelop | ||||
34 | | ||||
35 | If everything went well, you should see "Hello world, my plugin is loaded!" printed in the console and the plugin also listed in the dialog opened by the menu entry "Help" > "Loaded Plugins". |