You are not logged in.

#1 2008-01-21 22:54:32

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

[Request] clutter-gtk

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

#2 2008-01-22 18:53:00

madhatter
Member
From: Freudenstadt, Germany
Registered: 2004-09-01
Posts: 59

Re: [Request] clutter-gtk

I'd guess they Python modules get installed in the wrong directory.
Can you post the filelist?

Offline

#3 2008-01-22 19:35:16

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Request] clutter-gtk

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

#4 2008-01-23 16:47:05

madhatter
Member
From: Freudenstadt, Germany
Registered: 2004-09-01
Posts: 59

Re: [Request] clutter-gtk

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

#5 2008-01-23 18:56:43

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Request] clutter-gtk

I've got clutter and pyclutter installed but I will try these dependencies.

Offline

#6 2008-01-24 12:29:46

madhatter
Member
From: Freudenstadt, Germany
Registered: 2004-09-01
Posts: 59

Re: [Request] clutter-gtk

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

#7 2008-01-24 14:37:41

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Request] clutter-gtk

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

#8 2008-01-24 16:36:52

madhatter
Member
From: Freudenstadt, Germany
Registered: 2004-09-01
Posts: 59

Re: [Request] clutter-gtk

lenni wrote:

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 smile ) - so it's not your responsibility IMHO.

Offline

#9 2008-01-25 06:56:23

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Request] clutter-gtk

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

#10 2008-01-25 19:27:49

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

Re: [Request] clutter-gtk

Snowman wrote:

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

Board footer

Powered by FluxBB