readme.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. VisualStudio instructions
  2. libpng version 1.6.20 - December 3, 2015
  3. Copyright (c) 1998-2010 Glenn Randers-Pehrson
  4. This code is released under the libpng license.
  5. For conditions of distribution and use, see the disclaimer
  6. and license in png.h
  7. This directory contains support for building libpng under MicroSoft
  8. VisualStudio 2010. It may also work under later versions of VisualStudio.
  9. You should be familiar with VisualStudio before using this directory.
  10. Initial preparations
  11. ====================
  12. You must enter some information in zlib.props before attempting to build
  13. with this 'solution'. Please read and edit zlib.props first. You will
  14. probably not be familiar with the contents of zlib.props - do not worry,
  15. it is mostly harmless.
  16. This is all you need to do to build the 'release' and 'release library'
  17. configurations.
  18. Debugging
  19. =========
  20. The release configurations default to /Ox optimization. Full debugging
  21. information is produced (in the .pdb), but if you encounter a problem the
  22. optimization may make it difficult to debug. Simply rebuild with a lower
  23. optimization level (e.g. /Od.)
  24. Linking your application
  25. ========================
  26. Normally you should link against the 'release' configuration. This builds a
  27. DLL for libpng with the default runtime options used by Visual Studio 2010.
  28. In particular the runtime library is the "MultiThreaded DLL" version.
  29. If you use Visual Studio defaults to build your application you will have no
  30. problems.
  31. If you don't use the Visual Studio defaults your application must still be built
  32. with the default runtime option (/MD). If, for some reason, it is not then your
  33. application will crash inside libpng16.dll as soon as libpng tries to read
  34. from a file handle you pass in.
  35. If you do not want to use the DLL, for example for a very small application,
  36. the 'release library' configuration may be more appropriate. This is built
  37. with a non-standard runtime library - the "MultiThreaded" version. When you
  38. build your application it must be compiled with this option (/MT), otherwise
  39. it will not build (if you are lucky) or crash (if you are not.)
  40. Stop reading here
  41. =================
  42. You have enough information to build a working application.
  43. Debug versions have limited support
  44. ===================================
  45. This solution includes limited support for debug versions of libpng. You
  46. do not need these unless your own solution itself uses debug builds (it is
  47. far more effective to debug on the release builds, there is no point building
  48. a special debug build unless you have heap corruption problems that you can't
  49. track down.)
  50. The debug build of libpng is minimally supported. Support for debug builds of
  51. zlib is also minimal. You really don't want to do this.