Hi, I need some help to cross compiling Clutter. Right now I have sucessfully compiled clutter-1.0.0 on a i686 PC and I'm trying to compile it for a sh4 platform using SDL.
I didn't got very far becouse I'm still having "configure" problems: *./configure --host=sh4-linux --with-flavour=sdl * checking for getpagesize... yes checking for working mmap... no checking for memset... yes checking for memcpy... yes checking for strcasecmp... yes checking for glib-mkenums... /usr/bin/glib-mkenums checking for glib-genmarshal... /usr/bin/glib-genmarshal checking for sh4-linux-pkg-config... /usr/bin/sh4-linux-pkg-config checking pkg-config is at least version 0.9.0... yes checking for dlopen in -ldl... yes checking for sdl-config... /usr/bin/sdl-config checking for glEnable in -lGL... no configure: error: libGL not found The platform files (include, lib, etc) are not in the default paths, like /usr/include and /usr/lib. They are in some other place like /opt/sh4/usr/include, /opt/sh4/usr/lib, /opt/sh4/usr/bin, and so on... Here is some of the config.log ============================================================================ configure:13044: sh4-linux-gcc -o conftest -g -O2 conftest.c -ldl >&5 configure:13051: $? = 0 configure:13072: result: yes configure:13889: checking for sdl-config configure:13907: found /usr/bin/sdl-config configure:13919: result: /usr/bin/sdl-config configure:13943: checking for glEnable in -lGL configure:13978: sh4-linux-gcc -o conftest -g -O2 conftest.c -lGL >&5 /opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.3/../../../../sh4-linux/bin/ld: cannot find -lGL collect2: ld returned 1 exit status configure:13985: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "clutter" | #define PACKAGE_TARNAME "clutter" | #define PACKAGE_VERSION "1.0.0" | #define PACKAGE_STRING "clutter 1.0.0" | #define PACKAGE_BUGREPORT " http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter" | #define PACKAGE "clutter" | #define VERSION "1.0.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define STDC_HEADERS 1 | #define HAVE_FCNTL_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_MALLOC 0 | #define malloc rpl_malloc | #define HAVE_STDLIB_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MEMSET 1 | #define HAVE_MEMCPY 1 | #define HAVE_STRCASECMP 1 | #define HAVE_CLUTTER_SDL 1 | #define HAVE_COGL_GL 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char glEnable (); | int | main () | { | return glEnable (); | ; | return 0; | } configure:14006: result: no configure:14015: error: libGL not found ============================================================================ Any help is welcome. Thanks