KTextEditor & Frameworks question
Christoph Cullmann
cullmann at absint.com
Tue Jan 7 08:37:16 UTC 2014
> On Tuesday 07 January 2014 07:12:40 Christoph Cullmann wrote:
> > > > I tried my luck with splitting/grafting/kdeexamples template.
> > > >
> > > > Could somebody take a look what ended up in the master branch of
> > > >
> > > > git at git.kde.org:scratch/cullmann/ktexteditor.git
> > > >
> > > > Any feedback welcome, if I screwed it up a lot ;)
> > > >
> > > > That git shall contain a KTextEditor framework, I hope, with grafting
> > > > able
> > > > history, at least I was able to graft against kate.git using the howto.
> > > > The
> > > > structure should fit a framework, only the tests dir is missing as
> > > > empty
> > > > atm.
> > > >
> > > > Greetings
> > > > Christoph
> > >
> > > Hey,
> > >
> > > Just tried to build kdevplatform against the ktexteditor framework --
> > > Didn't work because CMake didn't find KF5TextEditorConfig.cmake.
> > >
> > > The problem is that all your .cmake files are missing the KF5 prefix
> > > which
> > > other frameworks apparently have set.
> > > CMake cannot find the framework via find_package(KF5 ... COMPONENTS
> > > TextEditor), then, I suppose.
> > >
> > > Makes sense?
> >
> > Hmm, the framework-template did not indicate that, but yeah, you are right,
> > e.g. KCoreAddons has everywhere KCoreAddons as identifier beside for the
> > .cmake stuff and the library name, there it is KF5CoreAddons.
> >
> > Is changing that to KF5TextEditor the right way to fix the issue then
>
> Yes, and please fix the template while you're at it :-)
Will give it a try in the evening ;)
Just a question: ATM setup.sh gets just the name + dest, e.g. I told it the name
KTextEditor
Should the heuristic be: If there is a K in front, remove it and do stuff like
KFooBar leads to KF5FooBar, else keep the complete FooBar name and do KF5FooBar.
Greetings
Christoph
--
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH Email: cullmann at AbsInt.com
Science Park 1 Tel: +49-681-38360-22
66123 Saarbrücken Fax: +49-681-38360-20
GERMANY WWW: http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
More information about the Kde-frameworks-devel
mailing list