<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">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">I build GDAL as part of superbuild of my project.</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">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="-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"><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="-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">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="-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 script is sort of:</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><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="-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">and the output:</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><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></BODY></HTML>