Search code examples
visual-studio-2010visual-c++zlibgdallibpng

can not open input file libpng15-vc9.lib


I am setting up my GDAL 1.8.0 Project in Visual Studio 2010 Windows, I am on way to add libpng to project.

My libpng release libs are under following folder... They are successfully built with zlib in this folder, as you can see there are no files missing as per VTP site.

D:\libpng-16

libpng files image

And I have also changed additional libraries file names.

files

Even though I added path in Property Manager, this error is still coming.

added folder path image

Still I am getting following error

error

Thank You in advance.


Solution

  • you should give absolute path d:/libpng-16/libpng16.lib

    or

    Add the path (d:/libpng-16) in Linker->General->Additional Library Directives

    The same applies for all the other libraries also.