Patch to make kdevelop-svn compile

Andreas Pakulat apaku at gmx.de
Sun Nov 15 12:46:12 UTC 2009


On 15.11.09 11:52:29, Benjamin Schindler wrote:
> Hi
> 
> Current kdevelop-svn does not compile. The attached patch fixes this.
> The first patch (the CMakeLists patch) is required to make kdevelop
> compile on gentoo (it's a sed script executed in the ebuild).
> This is a separate issue so you can savely ignore that part

Then you need to fix gentoo. The patch is wrong. The variable exposed by
FindKDE4Workspace is named KDE4WORKSPACE_PREOCESSUI_LIBS and contains an
imported target. Its already known that gentoo broke this some time back
and refuses to fix their packaging (IIRC). So much for the first part.
 
> Index: projectmanagers/cmake/cmakedocumentation.cpp
> ===================================================================
> --- projectmanagers/cmake/cmakedocumentation.cpp	(revision 1049395)
> +++ projectmanagers/cmake/cmakedocumentation.cpp	(working copy)
> @@ -49,6 +49,7 @@
>          virtual QString name() const { return mName; }
>          virtual bool providesWidget() const { return false; }
>          virtual KDevelop::IDocumentationProvider* provider() { return s_provider; }
> +        virtual QWidget* documentationWidget(QWidget*) { return NULL; } 
>          
>          static CMakeDocumentation* s_provider;
>          
> Index: documentation/qthelp/qthelpdocumentation.h
> ===================================================================
> --- documentation/qthelp/qthelpdocumentation.h	(revision 1049395)
> +++ documentation/qthelp/qthelpdocumentation.h	(working copy)
> @@ -42,6 +42,8 @@
>          
>          virtual QString description() const;
>          
> +        virtual bool providesWidget() const { return true; }
> +        
>          virtual QWidget* documentationWidget(QWidget* parent);
>          
>          virtual KDevelop::IDocumentationProvider* provider();
> @@ -62,6 +64,7 @@
>  {
>      Q_OBJECT
>      public:
> +        virtual bool providesWidget() const { return true; }
>          virtual QWidget* documentationWidget(QWidget* parent = 0);
>          virtual QString description() const { return QString(); }
>          virtual QString name() const;

And this suggests that your kdevplatform is out of date. There's no such
virtual declared anywhere in kdevplatform/interfaces/idocumentation.h.

Andreas

-- 
This will be a memorable month -- no matter how hard you try to forget it.




More information about the KDevelop-devel mailing list