[Liboil] build error

Stephane Fillod f8cfe at free.fr
Fri Oct 28 05:06:12 PDT 2005


Bonjour,

On Fri, Oct 28, 2005 at 01:22:55PM +0200, Sébastien Moutte wrote:
> I'm trying to build liboil on windows+cygwin+gcc.
[...]

I haven't tried on Cygwin yet, but for MinGW, you'll definitely need 
the attached patch (liboil-mingw.patch), which is harmless for other archs.
Liboil cross-compiles fine under Debian/Linux (w/ mingw32 package
installed) with this command:

	configure --host=i586-mingw32msvc --disable-glib

The patch is against CVS as of today.

Sebastien, what version of liboil are you building? What version of
compiler under Cygwin? What version of autoconf/automake ?

-- 
Stéphane
-------------- next part --------------
--- configure.ac	28 Oct 2005 03:12:05 -0000	1.62
+++ configure.ac	28 Oct 2005 11:57:37 -0000
@@ -19,7 +19,8 @@ dnl - interfaces added -> increment AGE
 dnl - interfaces removed -> AGE = 0
 LIBOIL_LIBVERSION="1:0:1"
 AC_SUBST(LIBOIL_LIBVERSION)
-AM_PROG_LIBTOOL
+AC_LIBTOOL_WIN32_DLL
+AC_PROG_LIBTOOL
 AM_PROG_AS
 
 AC_CONFIG_SRCDIR([liboil/liboil.h])
--- liboil/Makefile.am	28 Oct 2005 03:22:42 -0000	1.45
+++ liboil/Makefile.am	28 Oct 2005 11:57:38 -0000
@@ -128,20 +128,20 @@ liboilarray.c: liboiltmp1.la Makefile
 	echo '#include <liboil/liboilfunction.h>' >>liboilarray.c.tmp
 	echo >>liboilarray.c.tmp
 	grep '^_oil_function_class_' .libs/liboiltmp1.exp | \
-	  sed 's/.*/extern OilFunctionClass &;/' >>liboilarray.c.tmp
+	  sed -e 's/ .*$$//' -e 's/[^ ]*/extern OilFunctionClass &;/' >>liboilarray.c.tmp
 	echo >>liboilarray.c.tmp
 	echo 'OilFunctionClass *_oil_function_class_array[] = {' >>liboilarray.c.tmp
 	grep '^_oil_function_class_' .libs/liboiltmp1.exp | \
-	  sed 's/.*/  \&&,/' >>liboilarray.c.tmp
+	  sed -e 's/ .*$$//' -e 's/[^ ]*/  \&&,/' >>liboilarray.c.tmp
 	echo '  NULL' >>liboilarray.c.tmp
 	echo '};' >>liboilarray.c.tmp
 	echo >>liboilarray.c.tmp
 	grep '^_oil_function_impl_' .libs/liboiltmp1.exp | \
-	  sed 's/.*/extern OilFunctionImpl &;/' >>liboilarray.c.tmp
+	  sed -e 's/ .*$$//' -e 's/[^ ]*/extern OilFunctionImpl &;/' >>liboilarray.c.tmp
 	echo >>liboilarray.c.tmp
 	echo 'OilFunctionImpl *_oil_function_impl_array[] = {' >>liboilarray.c.tmp
 	grep '^_oil_function_impl_' .libs/liboiltmp1.exp | \
-	  sed 's/.*/  \&&,/' >>liboilarray.c.tmp
+	  sed -e 's/ .*$$//' -e 's/[^ ]*/  \&&,/' >>liboilarray.c.tmp
 	echo '  NULL' >>liboilarray.c.tmp
 	echo '};' >>liboilarray.c.tmp
 	echo >>liboilarray.c.tmp


More information about the Liboil mailing list