[Kde-bindings] pykde4 build error (from svn)
Frederik Gladhorn
gladhorn at kde.org
Tue Sep 8 14:37:14 UTC 2009
KCategoryDrawer has changed.
Since I never looked at the bindings before, I don't know how the sip files
are generated.
The following patch solves the build issue for me. The problem is the d-
pointer that has been introduced afaict. There is also KCategoryDrawerV2
which has no bindings yet.
Greetings,
Frederik
(Please cc me as I'm not subscribed to this list)
Index: python/pykde4/sip/kdeui/kcategorydrawer.sip
===================================================================
--- python/pykde4/sip/kdeui/kcategorydrawer.sip (revision 1021198)
+++ python/pykde4/sip/kdeui/kcategorydrawer.sip (working copy)
@@ -29,6 +29,10 @@
KCategoryDrawer ();
virtual void drawCategory (const QModelIndex& index, int
sortRole, const QStyleOption& option, QPainter* painter) const;
virtual int categoryHeight (const QModelIndex& index, const
QStyleOption& option) const;
+
+private:
+ KCategoryDrawer (const KCategoryDrawer&);
+
}; // KCategoryDrawer
s.wezel at arcor.de wrote:
> Hi,
>
> i can't compile pykde4.
> it fails with following error in sipkdeuipart5.cpp:
>
> /usr/kde/svn/include/kcategorydrawer.h: In member function
> ‘KCategoryDrawer& KCategoryDrawer::operator=(const KCategoryDrawer&)’:
> /usr/kde/svn/include/kcategorydrawer.h:37: error: non-static const member
> ‘KCategoryDrawer::Private* const KCategoryDrawer::d’, can't use default
> assignment operator
>
> First i thought it might be a problem with the gcc version i'm using
> (4.3.2). I tried gcc 4.1.2 but with no success
>
> Then i thought it might be a problem with the installed sip version
> because i read somewhere that kde trunk needs an unreleased sip version .
> I tried the latest development snapshot of 4.9 (20090904). But the error
> remains.
>
> I have this problem for several weeks, so i don't think that this is an
> error
> in pykde4. I more think that this might be a problem on my system.
>
> I'm using gentoo and use the the kde-live ebuilds from
> git://git.overlays.gentoo.org/proj/kde.git
>
> I hope you can help me to find the problem.
>
> Regards
>
> Stephan Wezel
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
More information about the Kde-bindings
mailing list