<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I managed to get the GDAL library with ECW support to compile and link for 32-bit, but realized I need to get the 64-bit library working. I’m having linking issues with this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m running Windows 10, VS2015 command line tools, and trying to build GDAL 2.1.3 with support for ERDAS ECW 5.3. The relevant (I believe) parts of my nmake.opt file are;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:"Courier New";color:black">WIN64=YES<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white"><span style="font-size:9.0pt;color:black"># Uncomment the following and update to enable ECW read support with the <br># 4.1+ readonly SDK<br>ECWDIR = …\Hexagon\ERDAS_ECW_JPEG_2000_SDK_53<br>ECWFLAGS = -DECWSDK_VERSION=53 \<br> -I$(ECWDIR)\include \<br> -I$(ECWDIR)\include/NCSECW/api -I$(ECWDIR)\include/NCSECW/jp2 \<br> -I$(ECWDIR)\include/NCSECW/ecw<br>ECWLIB = $(ECWDIR)\lib\vc110\x64\NCSEcw.lib<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white"><span style="font-size:9.0pt;color:black">SYM_PREFIX=<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white">(I’ve tried <span style="font-size:9.0pt;color:black">SYM_PREFIX=_) as well.<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:9.0pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span style="font-size:9.0pt;color:black"><o:p> </o:p></span></pre>
<p class="MsoNormal">The output I get is;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Generating Code...<o:p></o:p></p>
<p class="MsoNormal"> cd ..<o:p></o:p></p>
<p class="MsoNormal"> if exist gdal.lib del gdal.lib<o:p></o:p></p>
<p class="MsoNormal"> lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj
apps\ogr2ogr_lib.obj apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj<o:p></o:p></p>
<p class="MsoNormal">ogrsf_frmts.lib(ogrjmllayer.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library<o:p></o:p></p>
<p class="MsoNormal">ogr.lib(ograpispy.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library<o:p></o:p></p>
<p class="MsoNormal">nitf_gcprpc.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library<o:p></o:p></p>
<p class="MsoNormal">ecwcreatecopy.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library<o:p></o:p></p>
<p class="MsoNormal">cpl_recode_iconv.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library<o:p></o:p></p>
<p class="MsoNormal"> link /nologo /dll /INCLUDE:OSRValidate /INCLUDE:OPTGetProjectionMethods /INCLUDE:OGR_G_GetPointCount /INCLUDE:OGRRegisterAll /INCLUDE:GDALSimpleImageWarp /INCLUDE:GDALReprojectImage /INCLUDE:GDALComputeMedianCutPCT /INCLUDE:GDALDitherRGB2PCT
/INCLUDE:OCTNewCoordinateTransformation port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj
apps\ogr2ogr_lib.obj apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj D:\Users\LCandy\AppData\Local\Hexagon\ERDAS_ECW_JPEG_2000_SDK_53\lib\vc110\x64\NCSEcw.lib
gcore\Version.res /out:gdal201.dll /implib:gdal_i.lib<o:p></o:p></p>
<p class="MsoNormal"> Creating library gdal_i.lib and object gdal_i.exp<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol OSRValidate<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol OPTGetProjectionMethods<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol OGR_G_GetPointCount<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol OGRRegisterAll<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol GDALSimpleImageWarp<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol GDALReprojectImage<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol GDALComputeMedianCutPCT<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol GDALDitherRGB2PCT<o:p></o:p></p>
<p class="MsoNormal">LINK : error LNK2001: unresolved external symbol OCTNewCoordinateTransformation<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Followed by a string of ‘unresolved external symbol’ errors.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And, to confirm that I’m using the 64-bit compiler / linker from VS, the final line of the output is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">gdal201.dll : fatal error LNK1120: 247 unresolved externals<o:p></o:p></p>
<p class="MsoNormal">NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\link.EXE"' : return code '0x460'<o:p></o:p></p>
<p class="MsoNormal">Stop.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve been struggling with this for two days, so any help at all would be greatly appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Liam. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#002776">Liam Candy D +27 11 638 2078 M +27 11 282 8658 Ext 8113 2078</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>