<div dir="ltr"><div>Which version are you compiling? How are you compiling? (CMake?)</div><div>there was a fix in 3.5.0 recently related to that: <a href="https://github.com/OSGeo/gdal/pull/5591">https://github.com/OSGeo/gdal/pull/5591</a></div><div><br></div><div>Cheers,</div><div>Javier<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 22 May 2022 at 19:29, Керим Хемраев via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Hi,</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"> </div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I build GDAL as part of superbuild of my project.</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I have no problems to build it on Windows and Linux but when building on MACOS (10.15.7 Catalina) I get error:</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><strong>GDAL/ogr/ogrsf_frmts/geojson/libjson/json_tokener.c:268:2: </strong><div><div><strong>error: use of undeclared identifier 'locale_t'</strong></div><div><strong>        locale_t oldlocale = uselocale(NULL);</strong></div></div></div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"> </div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I’m newbie to MACOS but using small cmake script and `find_path` function I know that both `locale.h` and `xlocale.h` exist.</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">The script is sort of:</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><span style="font-size:12px;line-height:20px">find_path(dir NAMES "locale.h")</span></div><div><span style="font-size:12px;line-height:20px">message("locale dir: ${dir}")</span></div></div><div><div><span style="font-size:12px;line-height:20px">find_path(xdir NAMES "xlocale.h")</span></div><div><span style="font-size:12px;line-height:20px">message("xlocale dir: ${xdir}")</span></div><div> </div></div></div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">and the output:</div><div style="background-color:rgb(255,255,255);color:rgb(44,45,46);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><span style="font-size:12px;line-height:20px">locale dir: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include</span></div><div><span style="font-size:12px;line-height:20px">xlocale dir: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include</span></div></div></div></div><div> </div><div>Though I have three SDK’s and all of them have `locale.h` and `xlocale.h`.</div><div>I hope somebody knows what is the problem and how to solve it</div><div> </div><div>Regards,</div><div>Kerim</div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>