<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* 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:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Segoe UI",sans-serif;}
p.PrformatHTML, li.PrformatHTML, div.PrformatHTML
{mso-style-name:"Préformaté HTML";
mso-style-link:"Préformaté HTML Car";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:"Courier New";}
p.Textedebulles, li.Textedebulles, div.Textedebulles
{mso-style-name:"Texte de bulles";
mso-style-link:"Texte de bulles Car";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma",sans-serif;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle27
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle28
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle30
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="PT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">You would run it with a command like this<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" x86<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I do it this way because I also want to control the path and thus avoid contamination from other parts of my otherwise potentially messy environment. But since you run from the “</span><span lang="EN-US" style="color:#1F497D">x86
Command prompt for VS 2017</span><span lang="EN-US" style="mso-fareast-language:EN-US">” the vcvars32.bat was already run for you so no need to worry about that. The source of your trouble must me than be something else.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hello Joaquim,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thank you for answering ,
<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">I run nmake from within the x86 Command prompt for VS 2017, and no I had not previously run that batch.<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">I just tried that tough, and ran the command :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">vcvarsall.abt x86 10.0.17763.0
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">(that's my version of the windows SDK), I got "The specified configuration type is missing. The tools for the configuration might not be installed".<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">Do you know what it means ?<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">Thanks,<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">Rémi<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" 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 #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">De :</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Joaquim Manuel Freire Luís [<a href="mailto:jluis@ualg.pt">mailto:jluis@ualg.pt</a>]
<br>
<b>Envoyé :</b> lundi 25 février 2019 12:23<br>
<b>À :</b> PROVIN; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<b>Objet :</b> RE: [gdal-dev] Can't compile GDAL 2.4.0 with Visual 2017 - 32 bits<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You are running the nmake command from within a cmd window where you had previously run the vcvarsall.bat for 32 bits, right?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org">gdal-dev-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>PROVIN<br>
<b>Sent:</b> Monday, February 25, 2019 2:45 PM<br>
<b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> [gdal-dev] Can't compile GDAL 2.4.0 with Visual 2017 - 32 bits<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hello Jeff,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for your answer, I had tried that already (I usually compile GDAL this way with NMAKE),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">but I had the exact same error.<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">Maybe this has to do with my installation of Visual Studio ?<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Remi<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">Hi Remi,<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">Personally I'd recommend using the provided nmake.opt inside GDAL's root <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">directory, and modifying that for your own local libraries. (note that <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">the cleanest way to do this is to create a new file 'nmake.local' and <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">put your settings in there, leaving the distributed nmake.opt as <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">reference only, and then execute that with the command:<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> nmake /f makefile.vc<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">(others may recommend using the *.bat magic, but sometimes the raw <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">commandline is more fun ha)<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">Have a nice weekend,<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">-jeff<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">On 2019-02-21 9:18 AM, PROVIN wrote:<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> Hello,<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> I am trying to compile GDAL (version 2.40, but I also tried 2.3.1) with <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> Visual 2017 in 32 bits.<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> I used the generate_vcxproj.bat to generate my Visual project / <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> solution, this way (as indicated) :<o:p></o:p></i></span></pre>
<pre><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> generate_vcxproj.bat 15.0 32 gdal_vs2017<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> The compilation gives the following error :<o:p></o:p></i></span></pre>
<pre><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> fatal error C1083: Impossible d'ouvrir le fichier include : 'stdio.h' : <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> No such file or directory (compilation du fichier source cpl_list.cpp)<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> I have this error for all the files cpl_XXXX.cpp of "port" folder.<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> It is strange because these files are accessible when I right click on <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> the line<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> #include <stdio><o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> and open the file.<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> I tried to retarget the project, tried to reinstall Visual 2017.<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> I would be glad if anyone had any advice !<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> Thank you,<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> REMI<o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">><i> <o:p></o:p></i></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">-- <o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">Jeff McKenna<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">MapServer Consulting and Training Services<o:p></o:p></span></pre>
<pre><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:black"><a href="https://gatewaygeomatics.com/">https://gatewaygeomatics.com/</a><o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR"><img border="0" width="152" height="85" style="width:1.5833in;height:.8854in" id="Image_x0020_2" src="cid:image001.png@01D4CD21.209A1250" alt="sgn"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:10.0pt;mso-line-height-rule:exactly"><b><span lang="FR" style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#595959">Rémi PROVIN<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.0pt;mso-line-height-rule:exactly"><span lang="FR" style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:#595959">Ingénieur géomatique
</span><b><span lang="FR" style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#595959"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.0pt;mso-line-height-rule:exactly"><span lang="FR" style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:#595959"> 854 route de Rémire - 97354 Rémire Montjoly<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.0pt;mso-line-height-rule:exactly"><span lang="FR" style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:#595959">tél : 05-94-25-61-93</span><span lang="FR" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#595959">
- </span><span lang="FR" style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:#595959">fax : 05-94-25-61-94
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>