.mjt/mosh/Packaging/cairo


.mjt/mosh/Packaging

Win32

moshcairo.dll = cairo + libpng + zlib + pixman + freetype2

Prerequisites

Files

zlib125-dll have to flatten into libpng required dir structure.

repos

git clone git://anongit.freedesktop.org/git/cairo
git clone git://anongit.freedesktop.org/git/pixman.git
git clone git://git.sv.nongnu.org/freetype/freetype2.git
git clone git://libpng.git.sourceforge.net/gitroot/libpng/libpng 

Build

Freetype

libpng

pixman

Note: pixman and cairo have to build on Cygwin's make at VS2010 command prompt.

First, remove link.exe from /usr/bin

  1. open VisualStudio command prompt
  2. c:/cygwin/cygwin.bat
  3. cd pixman/pixman
  4. make -f Makefile.win32

cairo

patch like:

diff --git a/build/Makefile.win32.common b/build/Makefile.win32.common
index e422500..5cc3efc 100644
--- a/build/Makefile.win32.common
+++ b/build/Makefile.win32.common
@@ -28,12 +28,12 @@ PIXMAN_LIBS := $(top_builddir)/../pixman/pixman/$(CFG)/pixma
 CAIRO_LIBS =  gdi32.lib msimg32.lib user32.lib
 ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
 LIBPNG_CFLAGS += -I$(top_srcdir)/../libpng/
-CAIRO_LIBS +=  $(top_builddir)/../libpng/libpng.lib
+CAIRO_LIBS +=  "$(top_builddir)/../libpng/projects/vstudio/Release Library/libp
 endif
 ifeq ($(CAIRO_HAS_PS_SURFACE)$(CAIRO_HAS_PDF_SURFACE),00)
 else
-ZLIB_CFLAGS += -I$(top_srcdir)/../zlib/
-CAIRO_LIBS += $(top_builddir)/../zlib/zdll.lib
+ZLIB_CFLAGS += -I$(top_srcdir)/../zlib125-dll/zlib-1.2.5/
+CAIRO_LIBS += $(top_builddir)/../zlib125-dll/zlib-1.2.5/zdll.lib
 endif

 DEFAULT_CFLAGS = -nologo $(CFG_CFLAGS)
  1. make -f Makefile.win32
  2. (follow instruction to install built libraries)

MENU

now: 2

リンク


最新の20件
2018-09-03 2018-05-09 2017-09-29 2017-01-10 2016-12-11 2016-10-04 2016-08-14 2016-06-05 2016-05-29 2016-04-15 2015-12-28 2013-02-25 2013-02-21 2013-02-20 2013-02-12 2013-02-11 2013-02-10
最新の20件
2010-02-01 2010-01-31 2010-01-30 2010-01-29 2010-01-16

Counter: 1214, today: 2, yesterday: 3

リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Last-modified: 2011-09-17 (土) 18:14:41 (2561d);  Modified by mona
PukiWiki 1.4.6 Copyright © 2001-2005 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji
Powered by PHP 5.2.17
HTML convert time to 0.024 sec.