I'm trying to use LibTiff in a C++ Program in Visual Studio 2010. I downloaded tiff-3.9.2.zip from ftp://ftp.remotesensing.org/pub/libtiff. To test LibTiff it would be nice if someone could give me a step by step instruction how to import libtiff to visual Studio and build the Fax2Tiff tool.
There are so many files so that I am totally confused.
What I already have done:
1) Created a new Empty Win32 Console Application Project named "TiffTest"
2) Copied the folder "libtiff" from the tiff-3.9.2.zip to the Project Folder
3) Copied the file "fax2tiff.c" to the Project Folder
4) Added those files to the Project
5) Added the "libtiff" folter to the additional include folders
6) Renamed the files "tif_config.vc.h" and "tiffconf.vc.h" to "tif_config.h" and "tiffconf.h"
7) Tried to compile it.
This does not really work. All I do to get rid of the error messages causes new error messages. Can anyone tell me how I can get libtiff to work?
I really need help...
Thank you so much!
I think it would be better
In addition, you should decide which version of the file- and memory-related files you want to use in your version of the library. There are Unix, DOS and Windows-style versions for file- and memory related files.
And for fax2tiff you will probably need Windows version of the
getopt.c
andgetopt.h
files. You may usewingetopt.h
andwingetopt.c
found on koders.comI successfully use libtiff-3.9.4 and tiff2pdf built using this approach.
Btw, libtiff version 3.9.4 is most recent one in 3.x branch.
Below is the part of my
LibTiff.vcxproj
. It shows which files are needed to build libtiff on Windows using Visual Studio 2010.