[Liboil] build error

Sébastien Moutte sebastien at moutte.net
Wed Nov 2 01:23:22 PST 2005


Thanks, it builds now from cvs since David has applied your patch.
I built it with a fresh install of cygwin+gcc-3.4.4-1+autoconf 2.59 + 
automake 1.9.6.
But it doesn't build what i need :) i need a windows DLL and an export 
library file to build project like gstreamer with visual studio.
cygwin builds executables linked on the linux API emulation layer 
library cygwin1.dll.
So cygwin isn't the good way for me.

I'm now trying with MinGW, it builds fine and generates executable which 
links on windows C run-time but it generates unix libraries (.a/.la).
What's the way to generate a liboil windows library with MinGW ?
Is there already binary packages of liboil for windows ?

Thanks,
Sebastien

Stephane Fillod wrote:

>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 ?
>
>  
>
>------------------------------------------------------------------------
>
>--- 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
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Liboil mailing list
>Liboil at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/liboil
>  
>


More information about the Liboil mailing list