On Wed, Dec 19, 2007 at 12:20:03PM +0000, Neil Roberts wrote:
> I wonder if it would be worth making a script to download the right
> packages and rewrite all of the pkgconfig files?

Ok, well I finally got round to doing this, so here is my script. You
need to have a cross compiler already installed, but it points you in
the right direction if it can't find one. It can then download and
patch all of the dependencies and build Clutter.

I found a few more issues though:

- It currently only builds static libraries because libtool complains
  that Windows libraries can't have undefined symbols. I think this
  can be easily fixed if you add -no-undefined to the LDFLAGS for
  libclutter.la in Makefile.am. Presumably this might affect other
  platforms as well?

- The pkg-config file file for Clutter always includes a dependency on
  gdk-pixbuf-xlib-2.0 - even when building the SDL flavour where it's
  not used. This makes the configure scripts fail for programs that
  try to build against Clutter SDL. So without taking this out,
  clutter-cairo won't build either.

- In the flowers demo for clutter-cairo there is a call to sleep which
  seems to fail under MinGW (I'm not entirely sure why though). Would
  it be easier to just change this to g_usleep?

Regards,
- Neil

Attachment: fetch-cross.sh
Description: Bourne shell script

Reply via email to