<HTML><BODY><div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Javier hi,</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Thank you very much for pointing to this.</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">After I updated to the newer GDAL git tag (at 22 may 2022) I’m now able to compile it without problems with CMake.</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">The problem is solved.</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Regards,</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#2c2d2e; 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; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Kerim</div><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Понедельник, 23 мая 2022, 12:08 +03:00 от Javier Jimenez Shaw <j1@jimenezshaw.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16532969031082973977_BODY"><div class="cl_386018"><div><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" target="_blank">https://github.com/OSGeo/gdal/pull/5591</a></div><div> </div><div>Cheers,</div><div>Javier</div><div><div><div class="gmail_signature_mr_css_attr">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales<br>hay infinitos pensamientos irracionales.<br> </div></div></div></div> <div class="gmail_quote_mr_css_attr"><div class="mail-quote-collapse"><div class="gmail_attr_mr_css_attr"><span data-type="sender">On Sun, 22 May 2022 at 19:29, Керим Хемраев via gdal-dev <<a href="//e.mail.ru/compose/?mailto=mailto%3agdal%2ddev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:</span></div><div data-type="body"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote_mr_css_attr"><div><div><div style="background-color:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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:#ffffff; color:#2c2d2e; 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="//e.mail.ru/compose/?mailto=mailto%3agdal%2ddev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div></div></div></div></div></div></div></div></blockquote> <div> </div></div></BODY></HTML>