<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
h4
        {mso-style-priority:9;
        mso-style-link:"Título 4 Car";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        font-weight:bold;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.Ttulo4Car
        {mso-style-name:"Título 4 Car";
        mso-style-priority:9;
        mso-style-link:"Título 4";
        font-family:"Times New Roman",serif;
        mso-fareast-language:CA;
        font-weight:bold;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EstiloCorreo20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.pre
        {mso-style-name:pre;}
span.EstiloCorreo22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EstiloCorreo24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
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="CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="ES" style="color:#1F497D">Sorry,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES" style="color:#1F497D">I solved the problem. </span>
<span lang="EN-US" style="color:#1F497D">I pointed to a lib:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;mso-fareast-language:CA">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">(PROJ_LIBRARY_RELEASE
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;mso-fareast-language:CA">"D:/GitHub-repository/PROJ/build/lib/Release/proj.lib"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;mso-fareast-language:CA">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">(PROJ_LIBRARY_DEBUG
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;mso-fareast-language:CA">"D:/GitHub-repository/PROJ/build/lib/Debug/proj.lib"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;mso-fareast-language:CA">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">(PROJ_INCLUDE_DIR
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;mso-fareast-language:CA">"D:/GitHub-repository/PROJ/src"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;mso-fareast-language:CA">And now it builds perfectly :)</span><span lang="EN-US" style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="ES" style="mso-fareast-language:CA">De:</span></b><span lang="ES" style="mso-fareast-language:CA"> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>En nombre de </b>Abel Pau<br>
<b>Enviado el:</b> divendres, 30 de juny de 2023 9:44<br>
<b>Para:</b> gdal-dev@lists.osgeo.org<br>
<b>Asunto:</b> Re: [gdal-dev] Trying to build GDAL but I am missing something<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hi and good morning,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am trying to debug GDAL and for doing this I executed Cmake and the configuration seems to be correct.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But when I try to build it “Cmake --build .” one persistent error arises<span style="color:#1F497D">:</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">LINK : fatal error LNK1104: cannot open file 'D:\GitHub-repository\PROJ\build\src\apps\invproj.dir\Release\\.obj' [D:\G<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">itHub-repository\GDAL\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have configurated in CMakeLists.txt the next PROJ library:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black">(PROJ_LIBRARY_RELEASE
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">"D:/GitHub-repository/PROJ/build/src/apps/invproj.dir/Release/"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black">(PROJ_INCLUDE_DIR
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">"D:/GitHub-repository/proj-9.2.0/src"</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With this shown in image2.png<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Attatched]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It shoud be ok because the documentations says:<o:p></o:p></p>
<h4 style="mso-margin-top-alt:9.6pt;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;background:#FCFCFC">
<span style="font-size:14.0pt;font-family:"Helvetica",sans-serif;color:#404040">PROJ<a href="https://gdal.org/development/building_from_source.html#proj" title="Permalink to this heading"><span style="font-size:10.5pt;font-family:Symbol;color:#2980B9">Á</span></a><o:p></o:p></span></h4>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;line-height:18.0pt;background:#FCFCFC;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Arial",sans-serif;color:#404040"><a href="https://github.com/OSGeo/PROJ/"><span style="color:#2980B9">PROJ</span></a> >= 6 is a <em><span style="font-family:"Arial",sans-serif">required</span></em> dependency for GDAL.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:4.5pt;background:#E7F2FA"><span class="pre"><b><span lang="EN-US" style="font-family:Consolas;color:black">PROJ_INCLUDE_DIR</span></b></span><b><span lang="ES" style="font-family:"Arial",sans-serif;color:#2980B9"><a href="https://gdal.org/development/building_from_source.html#cmdoption-arg-PROJ_INCLUDE_DIR" title="Permalink to this definition"><span lang="EN-US" style="font-family:Symbol;color:#404040">Á</span></a></span></b><b><span lang="EN-US" style="font-family:"Arial",sans-serif;color:#2980B9"><o:p></o:p></span></b></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;line-height:18.0pt;background:#FCFCFC;box-sizing: border-box">
<span style="font-family:"Arial",sans-serif;color:#404040">Path to an include directory with the </span><span class="pre"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #E1E4E5 1.0pt;padding:2.0pt;background:white">proj.h</span></span><span style="font-family:"Arial",sans-serif;color:#404040"> header
 file.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:4.5pt;background:#E7F2FA"><span class="pre"><b><span lang="EN-US" style="font-family:Consolas;color:black">PROJ_LIBRARY_RELEASE</span></b></span><b><span lang="ES" style="font-family:"Arial",sans-serif;color:#2980B9"><a href="https://gdal.org/development/building_from_source.html#cmdoption-arg-PROJ_LIBRARY_RELEASE" title="Permalink to this definition"><span lang="EN-US" style="font-family:Symbol;color:#404040">Á</span></a></span></b><b><span lang="EN-US" style="font-family:"Arial",sans-serif;color:#2980B9"><o:p></o:p></span></b></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;line-height:18.0pt;background:#FCFCFC;box-sizing: border-box">
<span style="font-family:"Arial",sans-serif;color:#404040">Path to a shared or static library file, such as </span><span class="pre"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #E1E4E5 1.0pt;padding:2.0pt;background:white">proj.dll</span></span><span style="font-family:"Arial",sans-serif;color:#404040">, </span><span class="pre"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #E1E4E5 1.0pt;padding:2.0pt;background:white">libproj.so</span></span><span style="font-family:"Arial",sans-serif;color:#404040">, </span><span class="pre"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #E1E4E5 1.0pt;padding:2.0pt;background:white">proj.lib</span></span><span style="font-family:"Arial",sans-serif;color:#404040">,
 or other name. A similar variable </span><span class="pre"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #E1E4E5 1.0pt;padding:2.0pt;background:white">PROJ_LIBRARY_DEBUG</span></span><span style="font-family:"Arial",sans-serif;color:#404040"> can
 also be specified to a similar library for building Debug releases.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then, anyone knows what I am doing wrong? I’ve tried lots of things. PROJ is built with CMake and all was OK.<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>