From: Mona on 12 Mar 2010 15:25 Hi, I am trying to build a package called Tkpng, which depends on zlib. But, when I extracted the files from the .tgz file for this package, it does not contain zlib folder. Have you experienced any issue like this? Do you know where one can get zlib files? On make, it is complaining: tkImgPNG.c generic\tkImgPNG.c(18) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory Does anyone how can I resolve this issue? Thanks, Mona.
From: George Petasis on 12 Mar 2010 16:49 στις 12/3/2010 10:25 μμ, O/H Mona έγραψε: > Hi, > > I am trying to build a package called Tkpng, which depends on zlib. > But, when I extracted the files from the .tgz file for this package, > it does not contain zlib folder. Have you experienced any issue like > this? Do you know where one can get zlib files? > > On make, it is complaining: > > tkImgPNG.c > generic\tkImgPNG.c(18) : fatal error C1083: Cannot open include file: > 'zlib.h': > No such file or directory > > Does anyone how can I resolve this issue? > > Thanks, > Mona. http://www.zlib.net/
From: Mona on 14 Mar 2010 21:02 > > Does anyone how can I resolve this issue? > > > Thanks, > > Mona. > > http://www.zlib.net/ Thanks. Now, when I am building, I get the below link errors. Any ideas how I can resolve these? rm -f tkpng09.dll link -dll -nologo -lz C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/ lib /tclstub85.lib C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/lib/ tkstub8 5.lib -release -out:tkpng09.dll tkImgPNG.obj tkImgPNGInit.obj LINK : warning LNK4044: unrecognized option '/lz'; ignored tkstub85.lib(tkStubLib.obj) : MSIL .netmodule or module compiled with / GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linke r performance LINK : warning LNK4044: unrecognized option '/lz'; ignored Creating library tkpng09.lib and object tkpng09.exp tkImgPNG.obj : error LNK2001: unresolved external symbol _deflateInit_ tkImgPNG.obj : error LNK2001: unresolved external symbol _inflateInit_ tkImgPNG.obj : error LNK2001: unresolved external symbol _inflateEnd tkImgPNG.obj : error LNK2001: unresolved external symbol _deflateEnd tkImgPNG.obj : error LNK2001: unresolved external symbol _crc32 tkImgPNG.obj : error LNK2001: unresolved external symbol _inflate tkImgPNG.obj : error LNK2001: unresolved external symbol _deflate tkpng09.dll : fatal error LNK1120: 7 unresolved externals make: *** [tkpng09.dll] Error 96 Thanks, Mona.
From: Georgios Petasis on 15 Mar 2010 05:51 στις 15/3/2010 03:02, O/H Mona έγραψε: >>> Does anyone how can I resolve this issue? >> >>> Thanks, >>> Mona. >> >> http://www.zlib.net/ > > Thanks. > Now, when I am building, I get the below link errors. Any ideas how I > can resolve these? > > rm -f tkpng09.dll > link -dll -nologo -lz C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/ > lib > /tclstub85.lib C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/lib/ > tkstub8 > 5.lib -release -out:tkpng09.dll tkImgPNG.obj tkImgPNGInit.obj > LINK : warning LNK4044: unrecognized option '/lz'; ignored > tkstub85.lib(tkStubLib.obj) : MSIL .netmodule or module compiled with / > GL found; > restarting link with /LTCG; add /LTCG to the link command line to > improve linke > r performance > LINK : warning LNK4044: unrecognized option '/lz'; ignored > Creating library tkpng09.lib and object tkpng09.exp > tkImgPNG.obj : error LNK2001: unresolved external symbol _deflateInit_ > tkImgPNG.obj : error LNK2001: unresolved external symbol _inflateInit_ > tkImgPNG.obj : error LNK2001: unresolved external symbol _inflateEnd > tkImgPNG.obj : error LNK2001: unresolved external symbol _deflateEnd > tkImgPNG.obj : error LNK2001: unresolved external symbol _crc32 > tkImgPNG.obj : error LNK2001: unresolved external symbol _inflate > tkImgPNG.obj : error LNK2001: unresolved external symbol _deflate > tkpng09.dll : fatal error LNK1120: 7 unresolved externals > make: *** [tkpng09.dll] Error 96 > > > Thanks, > Mona. > You have to compile zlib, and link with the produced zlib library. George
From: Spam on 16 Mar 2010 13:41 On Sun, 14 Mar 2010, Mona wrote: > Now, when I am building, I get the below link errors. Any ideas how I > can resolve these? > > rm -f tkpng09.dll > link -dll -nologo -lz C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/ > lib > /tclstub85.lib C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/lib/ > tkstub8 > 5.lib -release -out:tkpng09.dll tkImgPNG.obj tkImgPNGInit.obj > LINK : warning LNK4044: unrecognized option '/lz'; ignored > tkstub85.lib(tkStubLib.obj) : MSIL .netmodule or module compiled with / [snip] Always read error messages (especially from a linker) like a love letter! Note the referenced '/lz' as an unrecognized option ... '-lz' in a *nix based system implies that libz.[so|a|o] exists somewhere where your linker can find it. You will need to put the libz.dll or whatever windows compiler will name it in a location that it can be found, and point your linker to it an a manner consistent with object files ... Cheers, Rob.
|
Next
|
Last
Pages: 1 2 3 Prev: Playing a sound in WIndows Next: Simple help with variable of variable |