[cairo] Problem while compile cairo dll with fontconfig on MinGW
Đào Việt Phương
dvphuong.fet at gmail.com
Thu Feb 25 00:28:44 PST 2010
This is my building process.:
This is the log of my building process:
------------------------------
-----------------------------------------
$ ./configure --enable-shared --disable-static CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
lt_cv_deplibs_check_method=pass_all
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... C:/MinGW/mingw32/bin/ld.exe
checking if the linker (C:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for C:/MinGW/mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... (cached) objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/MinGW/mingw32/bin/ld.exe) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/bash
checking if dolt supports this host... no, falling back to libtool
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for find... /bin/find
checking for xargs... /bin/xargs
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... C:/MinGW/mingw32/bin/ld.exe
checking if the linker (C:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (C:/MinGW/mingw32/bin/ld.exe) supports
shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (C:/MinGW/mingw32/bin/ld.exe) supports
shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether gcc and cc understand -c and -o together... yes
checking for inline... inline
checking for pkg-config... (cached) /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... no
checking for native atomic primitives... none
checking whether atomic ops require a memory barrier... no
checking for native Win32... yes
checking for Sun Solaris (non-POSIX ctime_r)... no
checking for cos in -lm... yes
checking for sched_yield in -lrt... no
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking sys/un.h usability... no
checking sys/un.h presence... no
checking for sys/un.h... no
checking sched.h usability... no
checking sched.h presence... no
checking for sched.h... no
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for feenableexcept... no
checking for fedisableexcept... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking byteswap.h usability... no
checking byteswap.h presence... no
checking for byteswap.h... no
checking for signal.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for vasnprintf... no
checking for link... no
checking for ctime_r... no
checking for drand48... no
checking for flockfile... no
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking for supported warning flags...
checking whether gcc supports -Wall... no
checking whether gcc supports -Wextra... no
checking whether gcc supports -Wsign-compare... no
checking whether gcc supports -Werror-implicit-function-declaration... no
checking whether gcc supports -Wpointer-arith... no
checking whether gcc supports -Wwrite-strings... no
checking whether gcc supports -Wstrict-prototypes... no
checking whether gcc supports -Wmissing-prototypes... no
checking whether gcc supports -Wmissing-declarations... no
checking whether gcc supports -Wnested-externs... no
checking whether gcc supports -Wpacked... no
checking whether gcc supports -Wswitch-enum... no
checking whether gcc supports -Wmissing-format-attribute... no
checking whether gcc supports -Wstrict-aliasing=2... no
checking whether gcc supports -Winit-self... no
checking whether gcc supports -Wunsafe-loop-optimizations... no
checking whether gcc supports -Wdeclaration-after-statement... no
checking whether gcc supports -Wold-style-definition... no
checking whether gcc supports -Wno-missing-field-initializers... no
checking whether gcc supports -Wno-unused-parameter... no
checking whether gcc supports -Wno-attributes... no
checking whether gcc supports -Wno-long-long... no
checking whether gcc supports -Winline... no
checking whether gcc supports -fno-strict-aliasing... no
checking whether gcc supports -fno-common... no
checking whether gcc supports -Wp,-D_FORTIFY_SOURCE=2... no
checking which warning flags were supported...
checking how to enable unused result warnings...
checking how to allow undefined symbols in shared libraries used by test
suite... checking whether gcc supports -Wl,--allow-shlib-undefined... no
checking for VALGRIND... no
no
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for X... no
checking for cairo's Xlib surface backend feature...
checking for xlib... no
no
checking whether cairo's Xlib surface backend feature could be enabled... no
(requires X development libraries)
checking for cairo's Xlib Xrender surface backend feature...
checking whether cairo's Xlib Xrender surface backend feature could be
enabled... no (requires --enable-xlib)
checking for cairo's Quartz surface backend feature...
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking CoreGraphics/CoreGraphics.h usability... no
checking CoreGraphics/CoreGraphics.h presence... no
checking for CoreGraphics/CoreGraphics.h... no
checking whether cairo's Quartz surface backend feature could be enabled...
no (requires CoreGraphics framework)
checking for cairo's Quartz font backend feature...
checking whether cairo's Quartz font backend feature could be enabled... no
(requires CoreGraphics framework)
checking for cairo's Microsoft Windows surface backend feature...
checking whether cairo's Microsoft Windows surface backend feature could be
enabled... yes
checking for cairo's Microsoft Windows font backend feature...
checking whether cairo's Microsoft Windows font backend feature could be
enabled... yes
checking for gs... no
checking for cairo's PNG functions feature...
checking for png... yes
checking whether cairo's PNG functions feature could be enabled... yes
checking for cairo's FreeType font backend feature...
checking for FONTCONFIG... yes
checking for FcFini... no
checking for FREETYPE... yes
checking whether cairo's FreeType font backend feature could be enabled...
yes
checking for FT_Bitmap_Size.y_ppem... yes
checking for FT_GlyphSlot_Embolden... no
checking for FT_Load_Sfnt_Table... no
checking for FT_Library_SetLcdFilter... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
checking for cairo's PostScript surface backend feature...
checking whether cairo's PostScript surface backend feature could be
enabled... yes
checking for gs... no
checking for LIBSPECTRE... no
no
checking for cairo's PDF surface backend feature...
checking whether cairo's PDF surface backend feature could be enabled... yes
checking for POPPLER... no
no
checking for cairo's SVG surface backend feature...
checking whether cairo's SVG surface backend feature could be enabled... yes
checking for LIBRSVG... no
no
checking for cairo's image surface backend feature...
checking for pixman... yes
checking whether cairo's image surface backend feature could be enabled...
yes
checking for cairo's user font backend feature...
checking whether cairo's user font backend feature could be enabled... yes
checking for gtk... no
no
configure: creating ./config.status
config.status: creating src/cairo.pc
config.status: creating cairo-uninstalled.pc
config.status: creating src/cairo-win32.pc
config.status: creating cairo-win32-uninstalled.pc
config.status: creating src/cairo-win32-font.pc
config.status: creating cairo-win32-font-uninstalled.pc
config.status: creating src/cairo-png.pc
config.status: creating cairo-png-uninstalled.pc
config.status: creating src/cairo-ft.pc
config.status: creating cairo-ft-uninstalled.pc
config.status: creating src/cairo-ps.pc
config.status: creating cairo-ps-uninstalled.pc
config.status: creating src/cairo-pdf.pc
config.status: creating cairo-pdf-uninstalled.pc
config.status: creating src/cairo-svg.pc
config.status: creating cairo-svg-uninstalled.pc
config.status: creating Makefile
config.status: creating boilerplate/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating test/pdiff/Makefile
config.status: creating perf/Makefile
config.status: creating util/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing ./build/Makefile.win32.features commands
config.status: creating ./build/Makefile.win32.features
config.status: ./build/Makefile.win32.features is unchanged
config.status: executing ./src/Makefile.am.features commands
config.status: creating ./src/Makefile.am.features
config.status: ./src/Makefile.am.features is unchanged
config.status: executing ./src/Makefile.win32.features commands
config.status: creating ./src/Makefile.win32.features
config.status: ./src/Makefile.win32.features is unchanged
config.status: executing ./boilerplate/Makefile.am.features commands
config.status: creating ./boilerplate/Makefile.am.features
config.status: ./boilerplate/Makefile.am.features is unchanged
config.status: executing ./boilerplate/Makefile.win32.features commands
config.status: creating ./boilerplate/Makefile.win32.features
config.status: ./boilerplate/Makefile.win32.features is unchanged
config.status: executing src/cairo-features.h commands
config.status: creating src/cairo-features.h
config.status: executing ./src/cairo-supported-features.h commands
config.status: creating ./src/cairo-supported-features.h
config.status: ./src/cairo-supported-features.h is unchanged
config.status: executing ./build/Makefile.win32.features-h commands
config.status: creating ./build/Makefile.win32.features-h
config.status: ./build/Makefile.win32.features-h is unchanged
cairo (version 1.8.10 [release]) will be compiled with:
The following surface backends:
Image: yes (always builtin)
Xlib: no (requires X development libraries)
Xlib Xrender: no (requires --enable-xlib)
Quartz: no (requires CoreGraphics framework)
Quartz-image: no (disabled, use --enable-quartz-image to enable)
XCB: no (disabled, use --enable-xcb to enable)
Win32: yes
OS2: no (disabled, use --enable-os2 to enable)
PostScript: yes
PDF: yes
SVG: yes
glitz: no (disabled, use --enable-glitz to enable)
BeOS: no (disabled, use --enable-beos to enable)
DirectFB: no (disabled, use --enable-directfb to enable)
The following font backends:
User: yes (always builtin)
FreeType: yes
Win32: yes
Quartz: no (requires CoreGraphics framework)
The following functions:
PNG functions: yes
And the following internal features:
gcov support: no
test surfaces: no (disabled, use --enable-test-surfaces to enable)
ps testing: no (requires ghostscript)
pdf testing: no (requires poppler-glib >= 0.9.2)
svg testing: no (requires librsvg-2.0 >= 2.15.0)
win32 printing testing: no (requires ghostscript)
---------------------------------------------------------------------------
make all-recursive
make[1]: Entering directory `/home/VIETPHUONG/cairo-1.8.10'
Making all in src
make[2]: Entering directory `/home/VIETPHUONG/cairo-1.8.10/src'
make all-am
make[3]: Entering directory `/home/VIETPHUONG/cairo-1.8.10/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
-I. -IC:/msys/1.0/local/include/pixman-1
-IC:/msys/1.0/local/include/freetype2 -IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include/libpng12 -I/usr/local/include
-g -O2 -MT cairo-analysis-surface.lo -MD -MP -MF
.deps/cairo-analysis-surface.Tpo -c -o cairo-analysis-surface.lo
cairo-analysis-surface.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.
-IC:/msys/1.0/local/include/pixman-1 -IC:/msys/1.0/local/include/freetype2
-IC:/msys/1.0/local/include -IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include/libpng12 -I/usr/local/include -g -O2 -MT
cairo-analysis-surface.lo -MD -MP -MF .deps/cairo-analysis-surface.Tpo -c
cairo-analysis-surface.c -DDLL_EXPORT -DPIC -o
.libs/cairo-analysis-surface.o
....
... THIS IS SO LONG SO I TRIMMED THE PART THAT I THINK IT HAS LITTLE
INFORMATION....
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.
-IC:/msys/1.0/local/include/pixman-1 -IC:/msys/1.0/local/include/freetype2
-IC:/msys/1.0/local/include -IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include/libpng12 -I/usr/local/include -g -O2 -MT
cairo-deflate-stream.lo -MD -MP -MF .deps/cairo-deflate-stream.Tpo -c
cairo-deflate-stream.c -DDLL_EXPORT -DPIC -o .libs/cairo-deflate-stream.o
mv -f .deps/cairo-deflate-stream.Tpo .deps/cairo-deflate-stream.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
-I. -IC:/msys/1.0/local/include/pixman-1
-IC:/msys/1.0/local/include/freetype2 -IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include/libpng12 -I/usr/local/include
-g -O2 -MT cairo-svg-surface.lo -MD -MP -MF .deps/cairo-svg-surface.Tpo -c
-o cairo-svg-surface.lo cairo-svg-surface.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.
-IC:/msys/1.0/local/include/pixman-1 -IC:/msys/1.0/local/include/freetype2
-IC:/msys/1.0/local/include -IC:/msys/1.0/local/include
-IC:/msys/1.0/local/include/libpng12 -I/usr/local/include -g -O2 -MT
cairo-svg-surface.lo -MD -MP -MF .deps/cairo-svg-surface.Tpo -c
cairo-svg-surface.c -DDLL_EXPORT -DPIC -o .libs/cairo-svg-surface.o
mv -f .deps/cairo-svg-surface.Tpo .deps/cairo-svg-surface.Plo
Generating cairo.def
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info
10802:10:10800 -no-undefined -export-symbols cairo.def -L/usr/local/lib -o
libcairo.la -rpath /usr/local/lib
cairo-analysis-surface.lo cairo-arc.lo cairo-array.lo cairo-atomic.lo
cairo-base85-stream.lo cairo-bentley-ottmann.lo cairo.lo cairo-cache.lo
cairo-clip.lo cairo-color.lo cairo-debug.lo cairo-fixed.lo
cairo-font-face.lo cairo-font-face-twin.lo cairo-font-face-twin-data.lo
cairo-font-options.lo cairo-freelist.lo cairo-gstate.lo cairo-hash.lo
cairo-hull.lo cairo-image-surface.lo cairo-lzw.lo cairo-matrix.lo
cairo-meta-surface.lo cairo-misc.lo cairo-mutex.lo cairo-output-stream.lo
cairo-paginated-surface.lo cairo-path-bounds.lo cairo-path.lo
cairo-path-fill.lo cairo-path-fixed.lo cairo-path-stroke.lo cairo-pattern.lo
cairo-pen.lo cairo-polygon.lo cairo-rectangle.lo cairo-region.lo
cairo-scaled-font.lo cairo-skiplist.lo cairo-slope.lo cairo-spline.lo
cairo-stroke-style.lo cairo-surface.lo cairo-surface-fallback.lo
cairo-system.lo cairo-traps.lo cairo-unicode.lo cairo-user-font.lo
cairo-version.lo cairo-wideint.lo cairo-cff-subset.lo
cairo-scaled-font-subsets.lo cairo-truetype-subset.lo
cairo-type1-fallback.lo cairo-type1-subset.lo cairo-type3-glyph-surface.lo
cairo-pdf-operators.lo cairo-win32-surface.lo
cairo-win32-printing-surface.lo cairo-win32-font.lo cairo-png.lo
cairo-ft-font.lo cairo-ps-surface.lo cairo-pdf-surface.lo
cairo-deflate-stream.lo cairo-svg-surface.lo -LC:/msys/1.0/local/lib
-lpixman-1 -LC:/msys/1.0/local/lib -lfreetype -LC:/msys/1.0/local/lib
-lfontconfig -LC:/msys/1.0/local/lib -lpng12 -lgdi32 -lmsimg32 -lm
-lz -lz -lm -lm
libtool: link: if test "x`/bin/sed 1q cairo.def`" = xEXPORTS; then cp
cairo.def .libs/libcairo-2.dll.def; else echo EXPORTS >
.libs/libcairo-2.dll.def; cat cairo.def >> .libs/libcairo-2.dll.def; fi
libtool: link: gcc -shared .libs/libcairo-2.dll.def
.libs/cairo-analysis-surface.o .libs/cairo-arc.o .libs/cairo-array.o
.libs/cairo-atomic.o .libs/cairo-base85-stream.o
.libs/cairo-bentley-ottmann.o .libs/cairo.o .libs/cairo-cache.o
.libs/cairo-clip.o .libs/cairo-color.o .libs/cairo-debug.o
.libs/cairo-fixed.o .libs/cairo-font-face.o .libs/cairo-font-face-twin.o
.libs/cairo-font-face-twin-data.o .libs/cairo-font-options.o
.libs/cairo-freelist.o .libs/cairo-gstate.o .libs/cairo-hash.o
.libs/cairo-hull.o .libs/cairo-image-surface.o .libs/cairo-lzw.o
.libs/cairo-matrix.o .libs/cairo-meta-surface.o .libs/cairo-misc.o
.libs/cairo-mutex.o .libs/cairo-output-stream.o
.libs/cairo-paginated-surface.o .libs/cairo-path-bounds.o .libs/cairo-path.o
.libs/cairo-path-fill.o .libs/cairo-path-fixed.o .libs/cairo-path-stroke.o
.libs/cairo-pattern.o .libs/cairo-pen.o .libs/cairo-polygon.o
.libs/cairo-rectangle.o .libs/cairo-region.o .libs/cairo-scaled-font.o
.libs/cairo-skiplist.o .libs/cairo-slope.o .libs/cairo-spline.o
.libs/cairo-stroke-style.o .libs/cairo-surface.o
.libs/cairo-surface-fallback.o .libs/cairo-system.o .libs/cairo-traps.o
.libs/cairo-unicode.o .libs/cairo-user-font.o .libs/cairo-version.o
.libs/cairo-wideint.o .libs/cairo-cff-subset.o
.libs/cairo-scaled-font-subsets.o .libs/cairo-truetype-subset.o
.libs/cairo-type1-fallback.o .libs/cairo-type1-subset.o
.libs/cairo-type3-glyph-surface.o .libs/cairo-pdf-operators.o
.libs/cairo-win32-surface.o .libs/cairo-win32-printing-surface.o
.libs/cairo-win32-font.o .libs/cairo-png.o .libs/cairo-ft-font.o
.libs/cairo-ps-surface.o .libs/cairo-pdf-surface.o
.libs/cairo-deflate-stream.o .libs/cairo-svg-surface.o -L/usr/local/lib
-LC:/msys/1.0/local/lib /usr/local/lib/libpixman-1.a
/usr/local/lib/libfreetype.a /usr/local/lib/libfontconfig.a
/usr/local/lib/libpng12.a -lgdi32 -lmsimg32 -lz -o .libs/libcairo-2.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libcairo.dll.a
make[3]: Leaving directory `/home/VIETPHUONG/cairo-1.8.10/src'
make[2]: Leaving directory `/home/VIETPHUONG/cairo-1.8.10/src'
make[1]: Leaving directory `/home/VIETPHUONG/cairo-1.8.10'
//------------------------------------------------------------------------------------------------------------------
This is some log that can not redirect to file so I copy from command line
screen (sorry because I have not much exp):
cairo-misc.c:611:1: warning: "WINVER" redefined
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/
windows.h:48,
from cairo-mutex-impl-private.h:195,
from cairo-mutex-type-private.h:45,
from cairo-scaled-font-private.h:44,
from cairoint.h:354,
from cairo-misc.c:41:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windef.h:12:1:
warning
: this is the location of the previous definition
cairo-system.c:58:1: warning: "WINVER" redefined
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/
windows.h:48,
from cairo-mutex-impl-private.h:195,
from cairo-mutex-type-private.h:45,
from cairo-scaled-font-private.h:44,
from cairoint.h:354,
from cairo-system.c:48:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windef.h:12:1:
warning
: this is the location of the previous definition
cairo-win32-surface.c: In function `_cairo_win32_print_gdi_error':
cairo-win32-surface.c:96: warning: passing arg 5 of `FormatMessageW' from
incomp
atible pointer type
cairo-win32-surface.c:99: warning: passing arg 2 of `fwprintf' from
incompatible
pointer type
Creating library file: .libs/libcairo.dll.a
C:/msys/1.0/local/lib/libfontconfig.a(fcfreetype.o): In function
`FcFreeTypeQuer
yFace':
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:727: undefined
ref
erence to `libiconv_open'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:746: undefined
ref
erence to `libiconv'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:751: undefined
ref
erence to `libiconv_close'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1663:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1684:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1544:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1551:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1573:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:756: undefined
ref
erence to `libiconv_close'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:737: undefined
ref
erence to `libiconv_close'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1723:
undefined re
ference to `FT_Get_X11_Font_Format'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcfreetype.c:1061:
undefined re
ference to `FT_Get_BDF_Property'
C:/msys/1.0/local/lib/libfontconfig.a(fcxml.o): In function
`FcConfigMessage':
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:466: undefined
referenc
e to `xmlSAX2GetLineNumber'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:469: undefined
referenc
e to `xmlSAX2GetLineNumber'
C:/msys/1.0/local/lib/libfontconfig.a(fcxml.o): In function
`FcConfigParseAndLoa
d':
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:2500: undefined
referen
ce to `xmlCreatePushParserCtxt'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:2539: undefined
referen
ce to `xmlParseChunk'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:2553: undefined
referen
ce to `xmlFreeParserCtxt'
C:/msys/1.0/home/VIETPHUONG/fontconfig-2.8.0/src/fcxml.c:2544: undefined
referen
ce to `xmlCtxtGetLastError'
collect2: ld returned 1 exit status
make[3]: *** [libcairo.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Now I try with the following configure command (add LIBS="-lexpat -liconv
-lfreetype") and use libexpat instead of libxml2:
$ ./configure --enable-shared --disable-static CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
lt_cv_deplibs_check_method=pass_all LIBS="-lexpat -liconv -lfreetype".
It's ok, but I still don't understand what is reason?
2010/2/25 suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp>
> Hi,
>
> Could you post whole log of your building process?
>
> Regards,
> mpsuzuki
>
> Đào Việt Phương wrote:
>
>> Hi all,
>> I need to compile cairo dll on MinGW with freetype support, because the
>> requirement is only one cairo dll so the other dependencies library I've
>> compiled as static libs. The problem is linking with fontconfig reports
>> some
>> undefined references to FreeType functions.
>> I 've compiled cairo as static lib with--enable-ft=yes and cairo as
>> dynamic
>> lib with --enable-ft=no without problems.
>>
>> Could any one help me know where the problem come from?
>> Thanks!
>>
>> ------------------------------------------------------------------------
>>
>> --
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>>
>
>
--
-----------------------------------------------------------------------
Đào Việt Phương
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100225/05cb819d/attachment-0001.html>
More information about the cairo
mailing list