[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] Fwd: build patch (Re: PyKDE5 current status)
From:       Simon Edwards <simon () simonzone ! com>
Date:       2015-04-01 19:58:13
Message-ID: af645b999a9723a714470407d74b25ca () localhost
[Download RAW message or body]

See attachment.


-------- Original Message --------
Subject: Re: PyKDE5 current status
Date: 2015-03-31 23:06
 From: Luca <gluca86@gmail.com>
To: Simon Edwards <simon@simonzone.com>

Hi Simon,
good news, I got it working with the original files from git:
Attached the patch I created, now I'm able to load the library without
problem.

I have to try with my custom .sip build, to see how to build it with 
this
changes included.

Regards,
	Luca

In data martedì, 31 marzo 2015 08.23:27, hai scritto:
> Hi,
> 
> On 2015-03-30 22:28, Luca wrote:
> > thank you, I was able to build PyKDE5 against the new framework 5.8.0
> > I had to modify the twine2 scripts (toolbox.py) in order to make it
> > works.
> > I encountered lot of issues that I had to fix manually with "//ig".
> > I tried to build kauth without success, during compiling I god some
> > strange
> > errors with sip.
> > I'm new to sip and fixing them is hard for me.
> 
> It sounds like you are making progress. :-) Just remember that PyKDE is
> one of the biggest (counting classes etc) bindings projects on the
> planet.
> 
> > Everything fine, except the fact that I continue to have this error:
> > <<< from PyKDE5.kcoreaddons import kaboutdata
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >
> > ImportError: No module named 'PyKDE5.typedefs'
> 
> mmm... May be something changed in later versions of SIP. What you 
> could
> try is to open up CMakeLists.txt and add a 'typedefs' module to the
> build like the other normal modules. May be building a typedefs, even 
> if
> it is empty, is enough to get it working.
> 
> > What blocked you during building kauth, kconfig and kjs?
> 
> I can't remember about kauth. kconfig was pushed down the list mainly
> because it is a real pain to do. IIRC, the C++ uses a ton of templates
> etc which have to be manually translated to something reasonable. In
> this case it might be better to think up something smarter than just
> trying to map the C++ API 1:1.
> 
> I didn't see much of a use case for wrapping kjs. (Doesn't Qt have a
> different JS engine or two?)
> 
> > there is other kf5 modules, do you consider them? (like ki18n, and
> > other from
> > https://community.kde.org/Frameworks/Building/Details)
> 
> I've stayed mainly with the core ones because of time really. But yes,
> there are a heap of them around these days.
> 
> cheers,

-- 
Simon Edwards
simon@simonzone.com
Nijmegen, The Netherlands

["pykde5.patch" (text/x-patch)]

diff -rupN pykde5_orig/.git/FETCH_HEAD pykde5/.git/FETCH_HEAD
--- pykde5_orig/.git/FETCH_HEAD	2015-03-31 23:01:40.668581273 +0200
+++ pykde5/.git/FETCH_HEAD	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-7679bd26fa501ac9379be6fcb8ea2493935c5bee		branch 'master' of git://anongit.kde.org/pykde5
I file binari pykde5_orig/.git/index e pykde5/.git/index sono diversi
diff -rupN pykde5_orig/.git/ORIG_HEAD pykde5/.git/ORIG_HEAD
--- pykde5_orig/.git/ORIG_HEAD	2015-03-31 23:01:35.698519342 +0200
+++ pykde5/.git/ORIG_HEAD	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-7679bd26fa501ac9379be6fcb8ea2493935c5bee
diff -rupN pykde5_orig/sip/karchive/karchivemod.sip pykde5/sip/karchive/karchivemod.sip
--- pykde5_orig/sip/karchive/karchivemod.sip	2015-03-31 23:01:35.695185967 +0200
+++ pykde5/sip/karchive/karchivemod.sip	2015-03-31 22:55:36.137374858 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 
 %Include k7zip.sip
diff -rupN pykde5_orig/sip/kcoreaddons/kcoreaddonsmod.sip pykde5/sip/kcoreaddons/kcoreaddonsmod.sip
--- pykde5_orig/sip/kcoreaddons/kcoreaddonsmod.sip	2015-03-31 23:01:35.695185967 +0200
+++ pykde5/sip/kcoreaddons/kcoreaddonsmod.sip	2015-03-31 22:55:00.286928682 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 
 %Include kaboutdata.sip
diff -rupN pykde5_orig/sip/kguiaddons/kguiaddonsmod.sip pykde5/sip/kguiaddons/kguiaddonsmod.sip
--- pykde5_orig/sip/kguiaddons/kguiaddonsmod.sip	2015-03-31 23:01:35.695185967 +0200
+++ pykde5/sip/kguiaddons/kguiaddonsmod.sip	2015-03-31 22:56:03.464381658 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 %Import QtGui/QtGuimod.sip
 
diff -rupN pykde5_orig/sip/kplotting/kplottingmod.sip pykde5/sip/kplotting/kplottingmod.sip
--- pykde5_orig/sip/kplotting/kplottingmod.sip	2015-03-31 23:01:35.695185967 +0200
+++ pykde5/sip/kplotting/kplottingmod.sip	2015-03-31 22:56:37.358136902 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 %Import QtGui/QtGuimod.sip
 %Import QtWidgets/QtWidgetsmod.sip
diff -rupN pykde5_orig/sip/kwidgetsaddons/kwidgetsaddonsmod.sip pykde5/sip/kwidgetsaddons/kwidgetsaddonsmod.sip
--- pykde5_orig/sip/kwidgetsaddons/kwidgetsaddonsmod.sip	2015-03-31 23:01:35.698519342 +0200
+++ pykde5/sip/kwidgetsaddons/kwidgetsaddonsmod.sip	2015-03-31 22:54:39.683338953 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 %Import QtWidgets/QtWidgetsmod.sip
 
diff -rupN pykde5_orig/sip/solid/solidmod.sip pykde5/sip/solid/solidmod.sip
--- pykde5_orig/sip/solid/solidmod.sip	2015-03-31 23:01:35.698519342 +0200
+++ pykde5/sip/solid/solidmod.sip	2015-03-31 22:55:17.330474123 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 
 //%Include acadapter.sip
diff -rupN pykde5_orig/sip/sonnet/sonnetmod.sip pykde5/sip/sonnet/sonnetmod.sip
--- pykde5_orig/sip/sonnet/sonnetmod.sip	2015-03-31 23:01:35.698519342 +0200
+++ pykde5/sip/sonnet/sonnetmod.sip	2015-03-31 22:57:15.488611609 +0200
@@ -23,7 +23,7 @@
 #pragma GCC visibility push(default)
 %End
 
-%Import typedefs.sip
+%Include typedefs.sip
 %Import QtCore/QtCoremod.sip
 %Import QtGui/QtGuimod.sip
 %Import QtWidgets/QtWidgetsmod.sip
diff -rupN pykde5_orig/sip/typedefs.sip pykde5/sip/typedefs.sip
--- pykde5_orig/sip/typedefs.sip	2015-03-31 23:01:35.698519342 +0200
+++ pykde5/sip/typedefs.sip	2015-03-31 23:04:39.054138057 +0200
@@ -15,7 +15,6 @@
 // Free Software Foundation, Inc.,
 // 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-%Module PyKDE5.typedefs
 
 typedef uint mode_t;
 

[Attachment #4 (text/plain)]

_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic