[mapserver-users] add nodefaultlib into makefile

Zhang, William wzhang at c-cor.net
Fri Sep 6 21:01:16 EDT 2002


Michael,

Thank you for the help. After recompiling the freetype.lib (v 2.1.2) with
single-threaded option, I could build gd.lib without error. But that gd.lib
still did not work. So according to the message you wrote on August 29, I
moved back to FreeType v1.3.1. Although I could compiled gd.lib (v 1.8.4)
with FreeType (v 1.3.1), but when using gdtestft.c to test gd.lib,
gdImageStringFT function returned error message: "libgd was not build with
FreeType font support". Do you have some suggestion on this problem?

Thank you again.

William


Here is the build message

Deleting intermediate files and output files for project 'Makefile1 - Win32
Debug'.
--------------------Configuration: Makefile1 - Win32
Debug--------------------
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O
-DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gd.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gd.c
 ........

 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O
-DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdfontt.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdfontt.c
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O
-DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdfonts.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdfonts.c
 .......

 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O
-DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdttf.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdttf.c
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O
-DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdft.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdft.c
......

 LIB gd.obj gdhelpers.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj
gd_io_file.obj gd_ss.obj  gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj
gdfonts.obj gdfontmb.obj gdfontl.obj  gdfontg.obj gdtables.obj gdttf.obj
gdft.obj gdcache.obj gdkanji.obj g
d_jpeg.obj gd_wbmp.obj wbmp.obj libpng.lib zlib.lib libjpeg.lib freetype.lib
Microsoft (R) Library Manager Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
zlib.lib(adler32.obj) : warning LNK4006: _adler32 already defined in
libpng.lib(adler32.obj); second definition ignored
zlib.lib(compress.obj) : warning LNK4006: _compress2 already defined in
libpng.lib(compress.obj); second definition ignored
............

zlib.lib(zutil.obj) : warning LNK4006: _zcfree already defined in
libpng.lib(zutil.obj); second definition ignored
zlib.lib(zutil.obj) : warning LNK4006: _z_errmsg already defined in
libpng.lib(zutil.obj); second definition ignored
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib pngtogd.c
gd.lib libpng.lib zlib.lib libjpeg.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
pngtogd.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:pngtogd.exe 
pngtogd.obj 
gd.lib 
libpng.lib 
zlib.lib 
libjpeg.lib 
 .......... 
 
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib gdtestttf.c
gd.lib libpng.lib zlib.lib libjpeg.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdtestttf.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:gdtestttf.exe 
gdtestttf.obj 
gd.lib 
libpng.lib 
zlib.lib 
libjpeg.lib 
 cl -I C:\MapServer\SourceCode\zlib  -I
C:\MapServer\SourceCode\pnglib\lpng124  -I
C:\MapServer\SourceCode\JPEG\jpeg6b  -I
C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib gdtestft.c
gd.lib libpng.lib zlib.lib libjpeg.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gdtestft.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:gdtestft.exe 
gdtestft.obj 
gd.lib 
libpng.lib 
zlib.lib 
libjpeg.lib 

Makefile1.exe - 0 error(s), 70 warning(s)



More information about the mapserver-users mailing list