- 2007.06.29 13:52 "Re: [Tiff] Microsoft Image Viewer", by Toby Thain
- 2007.06.29 14:57 "Re: [Tiff] Microsoft Image Viewer", by Edward Lam
-
2007.06.29 17:43 "Re: [Tiff] Microsoft Image Viewer", by Kevin Myers
- 2007.06.29 09:07 "Re: [Tiff] Conversion of TIFF to JPG / BMP / PNG", by Peter Pan
- 2007.06.29 18:01 "Re: [Tiff] Microsoft Image Viewer", by Kevin Myers
2007.07.10 20:08 "[Tiff] Re: More question about Vista x64 tifflib build.", by Edward Lam
David Cheeseman wrote:
> Edward,
> So I followed your build instruction and managed to get a compiled
> library of the 3.8.2 libtiff.lib and to get it out of the way I'm very > grateful for this information. However, I've run into the same problem
> I did when I tried to hook into the library from C driver code, none of > the functions can be reached and I get several unresolved external symbols.
Our build system is quite different so it wouldn't help you. Anyhow, so I became interested and tried compiling 3.8.2. Here's what I did:
- Commented out the #define's in tiffconf.h for PIXARLOG_SUPPORT, ZIP_SUPPORT, and JPEG SUPPORT.
- From the Start menu, chose Visual Studio 2005 x64 Win64 Command Prompt
- cd to the tiff-3.8.2 directory
- nmake -f Makefile.vc
- This now creates the libtiff.lib file inside the libtiff directory.
- For testing, I just cd into libtiff and put the example file source file from the website, http://www.remotesensing.org/libtiff/libtiff.html#tiffrgbaimage (calling it example.c). Commented out the "...process raster data..." section.
- Now test compile (in the shell):
- cl /Ox /GX /MD example.c /link libtiff.lib
This all compiled and seemed to run fine when I ran it with a test image. Of course, I didn't verify the actual data read. :)
Cheers,
-Edward
> My new question is, how do you import the libtiff.lib file in such a
> way that the functions are visible in Visual C? Also, upon rebuilding > our 32bit lib under 3.8.2, I ran into the same issue. Am I using the
> wrong build tool? What modifications did you make to your Makefile? As > far as I know all you need to do to build a 64 bit library is to run
> 'setenv /x64 /vista' in the platform sdk (which uses nmake). Could you > post your buildsteps for x64?
> I know this is a lot to ask so I thank you in advance for any more
> information!