You are not logged in.
I would like to use clutter-gtk, which allows clutter stages to be used as gtk widgets.
I've tried the following PKGBUILD:
# Contributor: Lenni
pkgname=clutter-gtk
pkgver=0.4.0
pkgrel=1
pkgdesc="GTK bindings for clutter"
arch=('i686' 'x86_64')
url="http://clutter-project.org/"
#options=('!libtool')
license="LGPL"
#depends=('pygtk' 'gstreamer0.10-base' 'libgl')
makedepends=('bzip2')
source=("http://www.clutter-project.org/sources/$pkgname/0.4/$pkgname-$pkgver.tar.bz2")
md5sums=('')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
It builds and installs but when I want to start entertainer it throws the following error:
Traceback (most recent call last):
File "./entertainer-frontend.py", line 25, in <module>
from frontend.frontend_client import FrontendClient
File "/home/lenni/python/entertainer/devel/src/frontend/frontend_client.py", line 40, in <module>
from frontend.gui.user_interface import UserInterface
File "/home/lenni/python/entertainer/devel/src/frontend/gui/user_interface.py", line 26, in <module>
from clutter import cluttergtk
ImportError: cannot import name cluttergtk
Offline
I'd guess they Python modules get installed in the wrong directory.
Can you post the filelist?
Offline
tar -xvvzf clutter-gtk-0.4.0-1-i686.pkg.tar.gz
-rw-r--r-- root/root 288 2008-01-21 22:17 .PKGINFO
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/include/
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/share/
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/lib/
lrwxrwxrwx root/root 0 2008-01-21 22:17 usr/lib/libclutter-gtk-0.4.so -> libclutter-gtk-0.4.so.0.400.0
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/lib/pkgconfig/
-rwxr-xr-x root/root 1075 2008-01-21 22:17 usr/lib/libclutter-gtk-0.4.la
lrwxrwxrwx root/root 0 2008-01-21 22:17 usr/lib/libclutter-gtk-0.4.so.0 -> libclutter-gtk-0.4.so.0.400.0
-rwxr-xr-x root/root 10403 2008-01-21 22:17 usr/lib/libclutter-gtk-0.4.so.0.400.0
-rw-r--r-- root/root 275 2008-01-21 22:17 usr/lib/pkgconfig/clutter-gtk-0.4.pc
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/include/clutter-0.4/
drwxr-xr-x root/root 0 2008-01-21 22:17 usr/include/clutter-0.4/clutter-gtk/
-rw-r--r-- root/root 2312 2008-01-21 22:17 usr/include/clutter-0.4/clutter-gtk/clutter-gtk.h
Offline
On the project homepage are also "clutter" and "pyclutter" packages,
try to install these first.
I also found the dependencies of the Debian package:
libatk1.0-0 (>= 1.12.2), libc6 (>= 2.3.6-6), libcairo2 (>= 1.2.4), libclutter-0.4-0, libfontconfig1 (>= 2.4.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0), libpango1.0-0 (>= 1.14.8), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxfixes3 (>= 1:4.0.1), libxi6, libxinerama1, libxrandr2, libxrender1
Last edited by madhatter (2008-01-23 16:47:44)
Offline
I've got clutter and pyclutter installed but I will try these dependencies.
Offline
I solved it! You need to rebuild python-clutter after clutter-gtk is installed because it only compiles the toolkit-specific bindings when they are installed. Maybe that should be filed as a bug report to the python-clutter maintainer or the clutter project.
Offline
That seems to have done the trick. Thanks!
Would I put that in the makedepends or the ordinary depends? I mean, it matters in which order they are build, isn't it?
Offline
Would I put that in the makedepends or the ordinary depends? I mean, it matters in which order they are build, isn't it?
This only matters for the python-clutter package - clutter-gtk doesn't depend on python-clutter (forget what I said earlier ) - so it's not your responsibility IMHO.
Offline
You could add clutter-gtk as a makedepends of python-clutter if it doesn't depend on it. That way, python-clutter will have the extra python modules or bindings that were missing.
Offline
You could add clutter-gtk as a makedepends of python-clutter if it doesn't depend on it. That way, python-clutter will have the extra python modules or bindings that were missing.
Hmm, I'm not sure, whether I should ship python-clutter with clutter-gtk as a dependency.
I think when the new clutter 0.6 comes out, we'll see how good clutter-gtk is then and I may stuff them altogether.
Offline