swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] how to compile libgfx as a DLL?


From: oyster
Subject: [Swftools-common] how to compile libgfx as a DLL?
Date: Fri, 10 Apr 2009 09:59:44 +0800

thanx in advance

I can compile swftools without problem on my win2k with mingw
I need the DLL of the LIB, for example, I changed some line in
lib\Makefile as following
[quote]
libgfx$(A): $(gfx_objects) $(art_in_source) Makefile
        $(AR) r libgfx$(A) $(gfx_objects) $(art_in_source)
        gcc -DHAVE_CONFIG_H  -DHAVE_ZLIB -DHAVE_IO_H -DHAVE_FREETYPE
-DHAVE_FT2BUILD_H  -L/h/mingw/Dev-Cpp/lib/
-I/usr/local/include/freetype2 -shared -lfreetype -lzlib -ljpeg -o
gfx.dll $(gfx_objects) $(art_in_source) mem.c bitio.c utf8.c log.c
[/quote]

but I get the msg
it seem that freetype and zlib are not used, but that is not true
since I can get libgfx.lib
[msg]
In file included from bitio.c:33:
../config.h:228:1: warning: "HAVE_ZLIB" redefined
<command line>:2:1: warning: this is the location of the previous definition
gfxfont.obj:gfxfont.c:(.text+0x272): undefined reference to
`_imp__FT_Init_FreeType'
gfxfont.obj:gfxfont.c:(.text+0x2cc): undefined reference to `_imp__FT_New_Face'
gfxfont.obj:gfxfont.c:(.text+0x2eb): undefined reference to
`_imp__FT_Set_Pixel_Sizes'
gfxfont.obj:gfxfont.c:(.text+0x3c1): undefined reference to
`_imp__FT_Get_Postscript_Name'
gfxfont.obj:gfxfont.c:(.text+0x3d6): undefined reference to
`_imp__FT_Get_First_Char'
gfxfont.obj:gfxfont.c:(.text+0x419): undefined reference to
`_imp__FT_Get_Next_Char'
gfxfont.obj:gfxfont.c:(.text+0x45e): undefined reference to
`_imp__FT_Set_Charmap'
gfxfont.obj:gfxfont.c:(.text+0x4a8): undefined reference to
`_imp__FT_Get_Char_Index'
gfxfont.obj:gfxfont.c:(.text+0x529): undefined reference to
`_imp__FT_Get_Glyph_Name'
gfxfont.obj:gfxfont.c:(.text+0x630): undefined reference to
`_imp__FT_Get_Glyph_Name'
gfxfont.obj:gfxfont.c:(.text+0x6a3): undefined reference to
`_imp__FT_Load_Glyph'
gfxfont.obj:gfxfont.c:(.text+0x74e): undefined reference to `_imp__FT_Get_Glyph'
gfxfont.obj:gfxfont.c:(.text+0x7d6): undefined reference to
`_imp__FT_Outline_Decompose'
gfxfont.obj:gfxfont.c:(.text+0x819): undefined reference to
`_imp__FT_Done_Glyph'
gfxfont.obj:gfxfont.c:(.text+0x8a2): undefined reference to
`_imp__FT_Done_Glyph'
gfxfont.obj:gfxfont.c:(.text+0x915): undefined reference to `_imp__FT_Done_Face'
gfxfont.obj:gfxfont.c:(.text+0x923): undefined reference to
`_imp__FT_Done_FreeType'
devices/render.obj:render.c:(.text+0x10a2): undefined reference to `uncompress'
devices/render.obj:render.c:(.text+0x2908): undefined reference to `deflate'
devices/render.obj:render.c:(.text+0x2996): undefined reference to `deflateCopy'
devices/render.obj:render.c:(.text+0x29f6): undefined reference to `deflate'
devices/render.obj:render.c:(.text+0x2a8f): undefined reference to `deflateEnd'
devices/render.obj:render.c:(.text+0x2aeb): undefined reference to `deflate'
devices/render.obj:render.c:(.text+0x2b68): undefined reference to `deflateEnd'
devices/render.obj:render.c:(.text+0x3afd): undefined reference to
`deflateInit_'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0x8b4):
undefined reference to `inflate'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0x8cc):
undefined reference to `inflate'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0x914):
undefined reference to `inflateEnd'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0x9b4):
undefined reference to `inflateEnd'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xab7):
undefined reference to `inflateInit_'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xb84):
undefined reference to `deflate'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xcaf):
undefined reference to `deflate'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xda2):
undefined reference to `deflate'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xe4d):
undefined reference to `deflateEnd'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccQtbaaa.o:bitio.c:(.text+0xf89):
undefined reference to `deflateInit_'
collect2: ld returned 1 exit status
[/msg]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]