LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2011, 01:18 PM   #1
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Rep: Reputation: 2
[Solved]pykde4 make error


I want to compile newest pykde4 to get pythonscriptengine working in kde-current, but I get make error:
Code:
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_label(PyObject*, PyObject*)':                                       
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17474:42: error: 'class KTabWidget' has no member named 'label'
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_tabLabel(PyObject*, PyObject*)':
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17502:42: error: 'class KTabWidget' has no member named 'tabLabel'
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_setTabLabel(PyObject*, PyObject*)':
/home/zakonnik/programy/kde4.6/new/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17530:21: error: 'class KTabWidget' has no member named 'setTabLabel'
make[2]: *** [CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart2.o] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDE4_kdeui.dir/all] Error 2
make: *** [all] Error 2
How to fix this?

Last edited by DeTomasso; 01-20-2011 at 06:14 AM.
 
Old 01-13-2011, 03:49 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Visit alienbob's ktown repo.

http://alien.slackbook.org/ktown/4.5.95/
 
1 members found this post helpful.
Old 01-15-2011, 07:20 AM   #3
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Original Poster
Rep: Reputation: 2
I can't see any link between my problem and AlienBob's repo. I want to compile this stuff by myself, besides his kdebindings (which I installed and uninstalled when it didn't solved the problems i had) doesn't seem to have pykde4.
 
Old 01-15-2011, 08:42 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I think, andrewthomas has the right idea.

Your issue is with 'sipkdeuipart2.cpp'.
Suggest : Use the sip related patch : kdebindings.1170602.sip_4_11_x.diff.gz
( Or read in the patch, which lines are to be edited.)
http://alien.slackbook.org/ktown/4.5...e/kdebindings/


Debian has two "sip patches" + then some : [kdebindings_4.4.5-3.debian.tar.gz]
> > debian/patches/*
http://packages.debian.org/sid/python-kde4 >> 'Links for python-kde4'.

..
 
Old 01-15-2011, 10:46 AM   #5
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Original Poster
Rep: Reputation: 2
andrewthomas, knudfl thanks, that gave me overall idea what to do. I've found this thread: http://osdir.com/ml/kde-bindings/2010-12/msg00062.html with the same error that I have. But, there is a patch for sip/kdecore/typedefs.sip, I've downloaded and applied it anyway but still have same make errors.

Last edited by DeTomasso; 01-15-2011 at 10:48 AM.
 
Old 01-16-2011, 03:01 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There are three "pykde4-typedefs-fix"_patches :


1) The "must be tried first" 'typedefs-fix' from Alien Bob, ref post #2,
kdebindings.1170602.sip_4_11_x.diff.gz
http://alien.slackbook.org/ktown/4.5...4_11_x.diff.gz

2) The 'old' Gentoo pykde4-typedefs-fix.patch
https://bugs.gentoo.org/attachment.c...68&action=view

3) The Gentoo "updated patch for pykde4-4.5.5"
https://bugs.gentoo.org/attachment.cgi?id=259333
pykde4-typedefs-fix.patch

May be you used the wrong patch ? The obsolete 2) ?



Other patches ....
0001-pykde4-4.5.90-depend-on-newer-PyQt4-with-declarative.patch
https://bugs.gentoo.org/attachment.c...95&action=view

..
 
Old 01-17-2011, 12:44 PM   #7
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Original Poster
Rep: Reputation: 2
Alright, what I've done:
1. copied pykde/sip/kdecore/typedefs.sip to home directory;
2. Applied AlienBob's patch;
That gave me make error:
Code:
/home/zakonnik/programy/kde4.6/source/pykde4/sip/kdecore/typedefs.sip:587: %MappedType template for this type has already been defined
make[2]: *** [sip/akonadi/sipakonadipart0.cpp] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDE4_akonadi.dir/all] Error 2
3. copied back typedefs.sip to kdecore directory;
4. Applied Gentoo "updated patch for pykde4-4.5.5";
same make error as above;
5. downloaded typedefs file from here --> http://websvn.kde.org/trunk/KDE/kdeb...athrev=1170602
same make error;
6. downloaded and applied patch from here --> https://bugs.kde.org/show_bug.cgi?id=261283
adn I'm back where I started:
Code:
[ 22%] Building CXX object CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart2.o
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_label(PyObject*, PyObject*)':                                    
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17474:42: error: 'class KTabWidget' has no member named 'label'
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_tabLabel(PyObject*, PyObject*)':
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17502:42: error: 'class KTabWidget' has no member named 'tabLabel'
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp: In function 'PyObject* meth_KTabWidget_setTabLabel(PyObject*, PyObject*)':
/home/zakonnik/programy/kde4.6/source/pykde4/build/sip/kdeui/sipkdeuipart2.cpp:17530:21: error: 'class KTabWidget' has no member named 'setTabLabel'
make[2]: *** [CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart2.o] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDE4_kdeui.dir/all] Error 2
make: *** [all] Error 2
Now I'm really confused, those patches should removed that error. Last thing to say, console output when I was applying them:
Code:
patch -p1 < kdebindings.1170602.sip_4_11_x.diff 
patching file sip/kdecore/typedefs.sip
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 succeeded at 872 (offset 139 lines).
gentoo one:
Code:
patch -p1 < pykde.patch 
patching file sip/kdecore/typedefs.sip
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 succeeded at 666 with fuzz 2 (offset 84 lines).
Hunk #2 succeeded at 814 with fuzz 1 (offset 84 lines).
An finally the one from bugs.kde:
Code:
patch -p1 < sip2.patch 
patching file sip/kdecore/typedefs.sip
Hunk #1 succeeded at 666 with fuzz 2 (offset 84 lines).
Hunk #2 succeeded at 730 with fuzz 1 (offset 84 lines).
looks like the only one that patched the file correctly, but still I get make error.
 
Old 01-18-2011, 03:10 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Slackware-Current-64 , PyKDE4 :
Not many build results can be found. The Debian Sid files are listed here
http://packages.debian.org/sid/all/p...4-dev/filelist
http://packages.debian.org/sid/amd64...-kde4/filelist

http://packages.debian.org/sid/python-kde4-dev
Using the Debian Sid patches, Debian Resources: kdebindings_4.4.5-3.debian.tar.gz
http://ftp.de.debian.org/debian/pool....debian.tar.gz

And : kdebindings-4.5.95.tar.bz2 from the Fedora 15 SRC.RPM (no usable patches).
cd kdebindings-4.5.95/
tar xvf kdebindings_4.4.5-3.debian.tar.gz ( The patch package )
patch -p1 < debian/patches/01_python_modules_dont_link_against_libpython.diff
patch -p1 < debian/patches/02_include_default_settings_in_python_cmakelist.diff
patch -p1 < debian/patches/07_fix_kpythonpluginfactory_build.diff
patch -p1 < debian/patches/11_make_pykde4_respect_sip_flags.diff
patch -p1 < debian/patches/12_pythonpluginfactory_use_versioned_python_lib.diff

cd python/pykde4/build/ && cmake .. && make : No errors ( But lots of warnings :
One of the patches turns on the verbose mode ! )
[100%] Built target python_module_PyKDE4_soprano



Using "yesterdays version" ( 2011-01-12 ), PyKDE4 :
mkdir -p <dir>/python && cd <dir>/python/ &&
bzr branch lp:~neon/kdebindings/PyKDE4 && ln -s PyKDE4 pykde4
&& cd ../ && tar xvf kdebindings_4.4.5-3.debian.tar.gz
&& patch -p1 < debian/patches/01_python*, etc. etc. : same as for 4.5.95.
cd python/pykde4/build/ && cmake .. && make : No errors.
[100%] Built target kpythonpluginfactory

The prerequisites, I used http://alien.slackbook.org/ktown/4.5.95/x86_64/kde/
# upgradepkg <required-kde*>
And # upgradepkg soprano* http://alien.slackbook.org/ktown/4.5.95/x86_64/deps/
+ sip-4.12, PyQt-x11-gpl-4.8.2.

..

Last edited by knudfl; 01-18-2011 at 06:55 PM.
 
Old 01-20-2011, 06:12 AM   #9
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Original Poster
Rep: Reputation: 2
knudfl, thank you a lot!
By following your footsteps I finally manage to install it. And all works just fine. Thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting make: *** [all] Error 2 during make command for libmad-0.15.1b DJockey Linux - Software 3 07-29-2009 05:32 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration