lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: [Mingw-users] imlib2
- Date: Thu, 1 May 2008 07:53:32 +0200 (CEST)
- From: Vincent Torri <vtorri@xxxxxxxxxxxx>
- Subject: ***BOGO*** Re: [Mingw-users] imlib2
>> On Wednesday 30 April 2008 15:50, Tripp wrote:
>>> trying to compile imlib2,
>>> and again it's not close to being a simple,
>>> configure & make & make install.
>>>
>>> got up to here:
>>> on configure i get this,
>>>
>>> checking for X... no
>>> checking for XOpenDisplay in -lX11... no
>>> configure: error: ERROR: libX11 not found.
>>
>> I suspect that you're heading for a hiding to nothing with this one;
>> For your needs, you may do better looking at Cygwin.
>
> yeah,
> i might try cygwin or xming.
>
>> if the package can't be built --without-x,
>
> i'd settle for that.
> but:
> c:/mingw/include/ctype.h:255: warning: C99 inline functions are not
> supported; using GNU89
> api.c: In function 'imlib_context_new':
> api.c:170: error: 'imlib_context_new': definition is marked as
> dllimport
> api.c: At top level:
> api.c:4787: warning: 'imlib_rotate_image_from_buffer' redeclared
> without dllimport attribute: previous dllimport ignored
> make[3]: *** [api.lo] Error 1
> make[3]: Leaving directory `/c/test/imlib2/src/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/test/imlib2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/test/imlib2'
> make: *** [all] Error 2
1) In Imlib2.h, replace:
# ifdef WIN32
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
# else
# define EAPI __declspec(dllimport)
# endif
# else
by
#ifdef _WIN32
# ifdef EFL_IMLIB2_BUILD
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
# else
# define EAPI
# endif /* ! DLL_EXPORT */
# else
# define EAPI __declspec(dllimport)
# endif /* ! EFL_IMLIB2_BUILD */
#else
2) In configure.in
add:
AC_LIBTOOL_WIN32_DLL
before AC_PROG_LIBTOOL
and add, for example after AC_PROG_LIBTOOL :
case "$host_os" in
mingw*|cegcc)
AC_DEFINE(EFL_IMLIB2_BUILD, 1, [Define to mention that imlib2 is built])
esac
and tell me if it works.
Vincent Torri
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users