Hi, Neil Roberts wrote: > I've been playing with cross-compiling the SDL backend using the MinGW > compiler and the binaries from Tor Lillqvist. It almost works out of > the box apart from a few issues which I thought I would share:
Many thanks, looks very good. > - The DATADIR macro conflicts with some obscure define in the Windows > headers so it won't compile. As far as I can tell it's not actually > used anywhere in Clutter yet so I've renamed it to CLUTTER_DATADIR. I think renaming this should not be a problem. > - The configure script chokes when trying to find libGL because it's > called opengl32 on Windows and it should probably use libGLee > anyway. I've changed the tests for Windows builds. That looks good to me. I think it is not necessary to check for libOpengl32 as that is a system library since some version of win9x (and I suspect the libGlee check would fail if libOpengl32 is not present anyway). > - In pangoclutter-render.c there is a bare call to malloc. This gets > redefined to rpl_malloc because configure.ac contains the > AC_FUNC_MALLOC test and the MSVC malloc isn't GNU > compatible. However, the rpl_malloc function isn't defined anywhere > so it fails to link when compiling test-text. I've just replaced the > call with g_malloc because the return value isn't checked anyway so > it doesn't look right. But I guess ideally unless I've misunderstood > something, either the AC_FUNC_MALLOC macro should be taken out or > the rpl_malloc function should be defined somewhere. g_malloc() is fine, just need to change the corresponding free two lines up to g_free(). > - The GLee header is included as <GL/Glee.h> but in the GLee zip file > it is actually <GL/GLee.h> so it won't compile on case-sensitive > OSs. My wrong :(. Just wondering, would it be worth adding a brief readme with instructions how to set up the cross-compilation and put it into build/migw-cross ? Tomas -- To unsubscribe send a mail to [EMAIL PROTECTED]
