<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Reiner,</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).</p>
<p>This HAVE_SSE_AT_COMPILE_TIME macro is set in gdal.cmake when
"${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86|AMD64)" .</p>
<p>So I believe there's a misconfiguration of your CMake cross
compilation. Try adding -DCMAKE_SYSTEM_PROCESSOR=ARM64 perhaps.
Although
<a class="moz-txt-link-freetext" 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.</p>
<p>Even<br>
</p>
<br>
<div class="moz-cite-prefix">Le 04/11/2024 à 16:38, Reiner Schlitzer
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8768a21974164e95872ae9dab5779a96@awi.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}@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;}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;}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.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0cm;}ul
{margin-bottom:0cm;}</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]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></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.<o:p></o:p></span></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here are details on what
I have done:<o:p></o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">The GDAL source was downloaded from the
master branch at
<a href="https://github.com/OSGeo/GDAL"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OSGeo/GDAL</a>.
<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">CMAKE configuration command:
</span><span
style="font-size:9.0pt;font-family:Consolas;mso-fareast-language:DE"
lang="EN-US">cmake -DCMAKE_PREFIX_PATH=c:/develop
-DBUILD_APPS=OFF -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF
-DOGR_BUILD_OPTIONAL_DRIVERS=OFF
-DCMAKE_BUILD_TYPE=Release ..</span><span lang="EN-US"><o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
lang="EN-US">CMAKE build command:
</span><span
style="font-size:9.0pt;font-family:Consolas;mso-fareast-language:DE"
lang="EN-US">cmake --build .</span><span lang="EN-US"><o:p></o:p></span></li>
</ul>
<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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any advice on how to
make progress is greatly appreciated. Thanks in advance.<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">Best regards, <o:p></o:p></span></p>
<p class="MsoNormal">Reiner Schlitzer<o:p></o:p></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">Prof. Dr. Reiner
Schlitzer<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">Alfred-Wegener-Institut<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">Helmholtz-Zentrum
für Polar- und Meeresforschung<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">Am Alten Hafen
26<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">27568
Bremerhaven<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE">GERMANY<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE"> <o:p></o:p></span></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"
moz-do-not-send="true"><span style="color:#954F72">Reiner.Schlitzer@awi.de</span></a><o:p></o:p></span></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"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.awi.de/en/about-us/organisation/staff/single-view/reiner-schlitzer.html</a></span><span
style="mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.</pre>
</body>
</html>