You are not logged in.
I am trying to make a PKGBUILD for kde-guidance and notably its power manager, which is much less outdated than klaptopdaemon, and much less bloated than kpowersave.
guidance requires pykde-extensions which in turn requires pykde, available in community (though it has a quirk, as noted on the AUR comments, but it's irrelevant here)
so let's go. here's pykde-extensions PKGBUILD
pkgname=pykde-extensions
pkgver=0.4.0
pkgrel=1
pkgdesc="PyKDE Extensions is a set of extensions for PyKDE."
arch=('i686' 'x86_64')
url="http://www.simonzone.com/software/pykdeextensions/"
depends=('pykde')
source=("http://www.simonzone.com/software/pykdeextensions/pykdeextensions-${pkgver}.tar.gz")
install=pykde-extensions.install
#md5sums=()
build() {
cd $startdir/src/pykdeextensions-$pkgver
python setup.py build
python setup.py install --root=$startdir/pkg
}
running checkpykde
Error: Couldn't find module 'kparts'.
Couldn't import KDE! Please make sure that PyKDE is installed and working.
PyKDE is available here: http://www.riverbankcomputing.co.uk/pykde/index.php
==> ERROR: Build Failed.
Aborting...
trying manually in python interactive:
>>> import kparts
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libkonsolepart.so: cannot open shared object file: No such file or directory
then I found this: http://ircarc.com/freenode-archlinux/1614.html
export LD_LIBRARY_PATH=/opt/kde/lib/kde3
>>> import kparts
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.5/site-packages/kparts.so: undefined symbol: _ZNK23konsoleBrowserExtension9classNameEv
and now, here what's what I found about it: http://www.mail-archive.com/pyqt%40rive … 11654.html
well, there's no -x option in pykde configure.py...
so I'm stuck. any ideas?
PS: while it shouldn't really matter, I'm using kdemod. maybe someone using vanilla kde is kind enough to try the above PKGBUILD?
Last edited by lloeki (2008-03-02 19:53:24)
To know recursion, you must first know recursion.
Offline
I modify your PKGBUILD a little bit and it works fine for me.
pkgname=pykde-extensions
pkgver=0.4.0
pkgrel=1
pkgdesc="PyKDE Extensions is a set of extensions for PyKDE."
arch=('i686' 'x86_64')
url="http://www.simonzone.com/software/pykdeextensions/"
depends=('pykde')
source=("http://www.simonzone.com/software/pykdeextensions/pykdeextensions-${pkgver}.tar.gz")
#install=pykde-extensions.install
md5sums=(5249c7288c1b2bed44a2d91111d3313a)
license=('GPL')
build() {
cd $startdir/src/pykdeextensions-$pkgver
python setup.py build
python setup.py install --root=$startdir/pkg
}
Then i tried to compile kde-guidance manually whitout a PKGBUILD.Took this Tarball: http://www.simonzone.com/software/guida … .0.tar.bz2
python setup.py build
Throws a:
running build
running build_py
running build_ext
running build_kcm
Failed to find KDE KCM files in: /usr/lib/kde3
Where i can setup these Path? I have no Idea...thus i set a Link:
ln -s /opt/kde/lib/kde3/ /usr/lib/kde3
Further compiling, i got another error:
libtool --mode=link gcc -module -export-dynamic build/serviceconfig.lo -rpath /usr/lib/kde3 -o build/kcm_serviceconfig.la -lpython2.5 -lpthread -ldl -lutil
/usr/lib/python2.5/site-packages/sip.so /usr/lib/python2.5/site-packages/qt.so /usr/lib/python2.5/site-packages/kdecore.so /usr/lib/python2.5/site-packages/kdeui.so -L/usr/lib
-lkdecore -lpythonize -L/opt/qt/lib -lqt-mt -lm
-lstdc++ -lc /usr/lib/libgcc_s.so -R /usr/lib -R /opt/qt/lib -R /usr/lib/python2.5/site-packages
-R /usr/lib/python2.5/site-packages -R /usr/lib/python2.5/site-packages -R /usr/lib
libtool: link: gcc -shared build/.libs/serviceconfig.o -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/opt/qt/lib
-Wl,-rpath -Wl,/usr/lib/python2.5/site-packages -lpython2.5 -lpthread -ldl -lutil -L/usr/lib -lkdecore
-lpythonize -L/opt/qt/lib -lqt-mt -lm -lstdc++ -lc -Wl,-soname -Wl,kcm_serviceconfig.so.0 -o build/.libs/kcm_serviceconfig.so.0.0.0
/usr/bin/ld: cannot find -lkdecore
collect2: ld returned 1 exit status
error: command 'libtool' failed with exit status 1
kdeocore.so existing in /usr/lib/python2.5/site-packages/kdecore.so, so why i got these message?
P.S. Using kdemod too.
Offline