[cairo] [PATCH] building libcairo-2.dll on Linux

Behdad Esfahbod behdad at behdad.org
Sun Apr 15 23:51:54 PDT 2007


On Fri, 2007-04-13 at 23:29 -0400, Kouhei Sutou wrote:
> Hi,
> 
> I tried to build libcairo-2.dll on Debian GNU/Linux with
> MinGW.
> 
> I could build libcairo-2.dll with GnuWin32's libpng
> package. I used the following configure options[*]:
> 
>   CFLAGS="-I$HOME/work/win32/include -L$HOME/work/win32/lib" \
>     PKG_CONFIG_PATH=$HOME/work/win32/lib/pkgconfig \
>     ./configure --prefix=/tmp/cairo --host=i586-mingw32msvc \
>                 --disable-freetype --disable-xlib
> 
> [*] I installed GnuWin32's libpng package to $HOME/work/win32/
>     directory.
> 
> But I needed attached patch to build libcairo-2.dll.
> 
> 
> I didn't check libcairo-2.dll built on Linux because I don't
> have Windows environment. I can send libcairo-2.dll built on
> Linux if someone checks this.

Thanks.  I have committed and pushed the patch now.  BTW, don't we need
to define cairo_public to __declspec(dllexport) and
__declspec(dllimport) for win32?  I don't see any code for that.  Or is
that not needed because of cairo.def?


> Thanks,
> --
> kou

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list