About Me

My photo
PhD Candidate at Purdue University, Computer Science.

Tuesday, November 06, 2007

Configure libtiff for Visual C

I had to move my working environment to windows to realize integration with my organization. So, one of the steps was to configure libtiff to work on Visual C.

To use LIBTIFF in your existing VC++ 6.0 Project/WorkSpace, you need to do the following setting modifications:

  1. Open your existing Project/WorkSpace file in VC++ 6.0
  2. Choose Project-Settings... menu item.
  3. Click "C/C++" tab.
  4. Choose "Preprocessor" item in the "Category:" menu.
  5. Choose "All Configurations" item in the "Settings for" menu.
  6. Add to the "Additional Include Directories:" field the path to the include directory of the libtiff folder.
  7. Choose "Code Generation" item from the "Category" menu
  8. Choose "Win32 Release" item in the "Settings for:" menu
  9. Select "Multithreaded" option in the "Use run-time library:" menu.
  10. Select "Win32 Debug" item in the "Settings for:" menu
  11. Set "Use run-time library" menu to the option "Debug Multithreaded".
  12. Click "Link" tab in the dialog.
  13. Select "Input" item in the "Category:" menu.
  14. Choose "All Configurations" item in the "Settings for:" menu
  15. Add to the "Additional library path:" the path to the lib folder in the libtiff folder.
  16. Choose "Win32 Release" item in the "Settings for:" menu
  17. Add to the "Object/library modules:" field: libtiff.lib
  18. Choose "Win32 Debug" item in the "Settings for:" menu
  19. Add following text to the "Object/library modules:" field: dlibtiff.lib.
  20. Click "Ok".

No comments: