2007.03.27 06:49 "[Tiff] "compiling libtiff using libjpeg under windows"", by Penumalli Madhavi

2007.03.27 07:26 "Re: [Tiff] "compiling libtiff using libjpeg under windows"", by alexander johnson

Hi Penumalli,

Unfortunately I never got it to work, I spent days at it but had to give up in the end. It seems like it should be something very easy to do but I just couldn't figure it out.

I think we need to set the path to the JPEG files so they link properly. If you see Makefile.vc, the lines:

INCL = -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) suggest this.

I think these are set in nmake.opt. I did try setting the path there, but I got different errors.

I am currently using the compiled libtiff which came with the installer. This unfortunately has a bad memory leak when opening and closing the image frequently so I quite badly need to compile it libtiff too. I'll be having a look at it again in 2 weeks or so, meanwhile if you have any success please let me know.

Good luck

Alex

On 3/27/07, Penumalli Madhavi <Penumalli.Madhavi@conexant.com> wrote:

Hi Alexander Johnson,

I got the same problem which was previously u got i.e

Does anyone know how to compile libtiff using the libtiff library in

windows. I have compiled the libjpeg bibrary and have placed the 4
required
header files and the .lib file into the libtiff folder source folder.
When
i try to build the makefile.vc file it fails during linking. It looks
like

the libjpeg.lib file isnt being found, but how do I add it correctly?

Below are the errors i get which occur when compiling the libtiff folder

of
the source code

Creating library libtiff_i.lib and object libtiff_i.exp

tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_read_header
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_resync_to_restart
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_start_decompress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_abort
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_read_scanlines
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_finish_decompress
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_read_raw_data
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_set_defaults
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_set_quality
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_suppress_tables
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_write_tables
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_set_colorspace
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_start_compress
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_write_scanlines
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_write_raw_data
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_finish_compress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_destroy
tif_jpeg.obj : error LNK2001: unresolved external symbol
_jpeg_CreateCompress
tif_jpeg.obj : error LNK2001: unresolved external symbol _jpeg_std_error
tif_jpeg.obj : error LNK2001: unresolved external symbol

_jpeg_CreateDecompress
libtiff.dll: fatal error LNK1120: 20 unresolved externals
NMAKE: fatal error U1077: 'link': return code '0x460'
Stop.
NMAKE: fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\bin\N
MAKE.EXE"': return code '0x2'
Stop.

Did u get any solution for that?If it is,plz tell me that.

Thanks Alex.

> Conexant E-mail Firewall (Conexant.Com) made the following annotations

> ********************** Legal Disclaimer **************************** "This

email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message in error, please advise the sender by reply email and delete the message. Thank you."

**********************************************************************

--
Alex