From licb at cma.gov.cn Sat Apr 12 10:51:35 2014 From: licb at cma.gov.cn (licb at cma.gov.cn) Date: Sat, 12 Apr 2014 23:51:35 +0800 (GMT+08:00) Subject: [Geotiff] libgeotiff link error on Windows system Message-ID: <766df08b.361f.14556a30702.Coremail.licb@cma.gov.cn> Dear Sir, I have been trying to build libgeotiff library on Microsoft Windows 8.1 by using Visual Studio 2013, but I couldnt get it working. First thing first, I successfully built the PROJ.4 (proj-4.8.0) and libtiff (tiff-4.0.3) libs. Then I modified the makefile.vc under libgeotiff-1.4.0 directory as follows: OSGEO4W = C:\FY2Grid\tiff-4.0.3\libtiff TIFF_INC = -I$(OSGEO4W) TIFF_LIB_DLL = $(OSGEO4W)\libtiff_i.lib PROJ_LIB_DLL = C:\FY2Grid\proj-4.8.0\src\proj.lib ...... $(DLLNAME): $(OBJS) link /dll /out:$(DLLNAME) /implib:geotiff_i.lib proj.lib $(OBJS) $(TIFF_LIB_DLL) $(PROJ_LIB_DLL) if exist $(DLLNAME).manifest mt -manifest $(DLLNAME).manifest -outputresource:$(DLLNAME);2 When I issue the following commands: C:\FY2Grid\libgeotiff-1.4.0>nmake /f makefile.vc clean C:\FY2Grid\libgeotiff-1.4.0>nmake /f makefile.vc to build libgeotiff, it throwed the following linking error message .... ... cl -I. -Ilibxtiff -IC:\FY2Grid\tiff-4.0.3\libtiff /MD /Ox /nologo /c geo_simpletags.c geo_simpletags.c lib /out:geotiff.lib xtiff.obj geo_free.obj geo_get.obj geo_names.obj geo_new.obj geo_print.obj geo_set.obj geo_tiffp.obj geo_write.obj geo_extra.obj geo_trans.obj geo_normalize.obj geotiff_proj4.obj geo_simpletags.obj cpl_csv.obj cpl_serv.obj Microsoft (R) Library Manager Version 11.00.60610.1 Copyright (C) Microsoft Corporation. All rights reserved. link /dll /out:geotiff.dll /implib:geotiff_i.lib proj_i.lib xtiff.obj geo_free.obj geo_get.obj geo_names.obj geo_new.obj geo_print.obj geo_set.obj geo_tiffp.obj geo_write.obj geo_extra.obj geo_trans.obj geo_normalize.obj geotiff_proj4.obj geo_simpletags.obj cpl_csv.obj cpl_ser v.obj C:\FY2Grid\tiff-4.0.3\libtiff\libtiff_i.lib C:\FY2Grid\proj-4.8.0\src\proj.lib Microsoft (R) Incremental Linker Version 11.00.60610.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : fatal error LNK1181: cannot open input file 'proj_i.lib' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.EXE"' : return code '0x49d' Stop. "cannot open input file 'proj_i.lib'", but the "proj_i.lib" is really in the given directory. Would you please show me how to successfully build your libgeotiff? Thank you. Golden Lee