<html 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=utf-8">
<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;}
@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;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:DE;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage24
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:290477221;
mso-list-template-ids:-386924326;}
@list l0:level1
{mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level4
{mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level7
{mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1
{mso-list-id:1589148297;
mso-list-template-ids:1365422418;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style>
</head>
<body lang="DE" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Even,<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">thanks for your help. I have solved my problem and have successfully built the GDAL library for Windows ARM64. The cause was a second CMAKE installation as part of StrawberryPerl, which currently is only available as
x64 package. Uninstalling StrawberryPerl and using the CMAKE within Visual Studio solved the problem. Thanks again for your prompt responses.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Reiner<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><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 style="mso-fareast-language:DE">Von:</span></b><span style="mso-fareast-language:DE"> Even Rouault <even.rouault@spatialys.com>
<br>
<b>Gesendet:</b> Montag, 4. November 2024 16:49<br>
<b>An:</b> Reiner Schlitzer <Reiner.Schlitzer@awi.de>; gdal-dev@lists.osgeo.org<br>
<b>Betreff:</b> Re: [gdal-dev] compiling gdal from source for Windows ARM64 failed<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Reiner,<span style="mso-fareast-language:DE"><o:p></o:p></span></p>
<p>the error "cpl_cpu_features.cpp(69): error C3861: "CPL_CPUID":" indicates that the compiler goes into a code path that is protected by a #if defined(HAVE_SSE_AT_COMPILE_TIME).<o:p></o:p></p>
<p>This HAVE_SSE_AT_COMPILE_TIME macro is set in gdal.cmake when "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86|AMD64)" .<o:p></o:p></p>
<p>So I believe there's a misconfiguration of your CMake cross compilation. Try adding -DCMAKE_SYSTEM_PROCESSOR=ARM64 perhaps. Although
<a href="https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html">
https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html</a> suggest you should likely rather use a proper CMAKE_TOOLCHAIN_FILE to set all variables correctly.<o:p></o:p></p>
<p>Even<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Le 04/11/2024 à 16:38, Reiner Schlitzer via gdal-dev a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am trying to compile the GDAL library for the Windows ARM64 architecture but fail during the build step because of undefined CPL_CPUID in the port\cpl_cpu_features.cpp file. The Windows ARM64 case seems not to be covered
in the definition block at the top.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Can you please give advice on how to fix this issue, or can you please get me into contact with people working on creating GDAL binaries for Windows ARM64. If GDAL binaries for Windows ARM64 already exist, please point
me to the download location. Thank you very much in advance.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Here are details on what I have done:</span><o:p></o:p></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo3"><span lang="EN-US">The GDAL source was downloaded from the master branch at
<a href="https://github.com/OSGeo/GDAL">https://github.com/OSGeo/GDAL</a>. </span>
<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo3"><span lang="EN-US">CMAKE configuration command:
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;mso-fareast-language:DE">cmake -DCMAKE_PREFIX_PATH=c:/develop -DBUILD_APPS=OFF -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF -DOGR_BUILD_OPTIONAL_DRIVERS=OFF -DCMAKE_BUILD_TYPE=Release ..</span><o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo3"><span lang="EN-US">CMAKE build command:
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;mso-fareast-language:DE">cmake --build .</span><o:p></o:p></li></ol>
<p class="MsoNormal"><span lang="EN-US">The output from the config and build steps are attached. Dependencies, such as proj, hdf5, netcdf, sqlite3, expat, openssl, zlib and others had been compiled successfully previously and are accessible at compile time
at C:\develop. I am working on a Windows on Arm system with Snapdragon(R) X Elite processor and 32GB of RAM.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Any advice on how to make progress is greatly appreciated. Thanks in advance.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Best regards, </span><o:p></o:p></p>
<p class="MsoNormal">Reiner Schlitzer<o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">------------------------------------------------</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">Prof. Dr. Reiner Schlitzer</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">Alfred-Wegener-Institut</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">Helmholtz-Zentrum für Polar- und Meeresforschung</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">Am Alten Hafen 26</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">27568 Bremerhaven</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">GERMANY</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">e-mail: <a href="mailto:Reiner.Schlitzer@awi.de" title="mailto:Reiner.Schlitzer@awi.de"><span style="color:#954F72">Reiner.Schlitzer@awi.de</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE"><a href="https://www.awi.de/en/about-us/organisation/staff/single-view/reiner-schlitzer.html">https://www.awi.de/en/about-us/organisation/staff/single-view/reiner-schlitzer.html</a></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="http://www.spatialys.com">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
<pre>Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.<o:p></o:p></pre>
</div>
</body>
</html>