This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How do I create Plasmoids for Plasma5 using KDevelop?

Tags: None
(comma "," separated)
arnavdhamija
Registered Member
Posts
6
Karma
0
I can't seem to find the KDE templates list under the New Projects section for KDevelop. Despite install the kapptemplate package, all I get is this: Image

Is kapptemplate broken for Plasma5? How can I get a template for Plasmoids in KDevelop without it then?
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS
Did you install kdevelop and kapptemplate to the same CMAKE_INSTALL_PREFIX?

If yes, then this should work out the box. Otherwise you'll have to extend the XDG_DATA_DIRS variable.

Also see: https://community.kde.org/Frameworks/Bu ... time_setup

For the record: This works fine for me.
arnavdhamija
Registered Member
Posts
6
Karma
0
kfunk wrote:Did you install kdevelop and kapptemplate to the same CMAKE_INSTALL_PREFIX?

If yes, then this should work out the box. Otherwise you'll have to extend the XDG_DATA_DIRS variable.

Also see: https://community.kde.org/Frameworks/Bu ... time_setup

For the record: This works fine for me.


Not too sure if I installed it to the same prefix; I used apt-get to get the packages. I'll build from source if nothing else works though.
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS
More details please. Which distro, which KDevelop version, which version of kapptemplate?
arnavdhamija
Registered Member
Posts
6
Karma
0
I am using Ubuntu 15.10 with the kubuntu-desktop package, KDevelop 4.7.1, and what seems to be kapptemplate 0.1. Running kapptemplate standalone does produce the required template, but it doesn't integrate with KDevelop.
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS
Oh, I see the problem...

kapptemplate is already KF5-based, while KDevelop isn't... They both expect the templates in different directories.

Try this hack to copy file templates from kapptemplate to the directory where kdevelop expects them:
$ sudo cp -Rv /usr/share/kdevappwizard/* /usr/share/kde4/apps/kdevappwizard/

Good luck.

Last edited by kfunk on Thu Jan 14, 2016 7:05 am, edited 1 time in total.
arnavdhamija
Registered Member
Posts
6
Karma
0
kfunk wrote:Oh, I see the problem...

kapptemplate is already KF5-based, while KDevelop isn't... They both expect the templates in different directions.

Try this hack to copy file templates from kapptemplate to the directory where kdevelop expects them:
$ sudo cp -Rv /usr/share/kdevappwizard/* /usr/share/kde4/apps/kdevappwizard/

Good luck.


Thank you so much! This did the trick : )


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]