Javier hi,
 
Thank you very much for pointing to this.
After I updated to the newer GDAL git tag (at 22 may 2022) I’m now able to 
compile it without problems with CMake.
 
The problem is solved.
 
Regards,
Kerim
>Понедельник, 23 мая 2022, 12:08 +03:00 от Javier Jimenez Shaw 
><[email protected]>:
> 
>Which version are you compiling? How are you compiling? (CMake?)
>there was a fix in 3.5.0 recently related to that:  
>https://github.com/OSGeo/gdal/pull/5591
> 
>Cheers,
>Javier
>.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
>Entre dos pensamientos racionales
>hay infinitos pensamientos irracionales.
>   
>On Sun, 22 May 2022 at 19:29, Керим Хемраев via gdal-dev < 
>[email protected] > wrote:
>>Hi,
>> 
>>I build GDAL as part of superbuild of my project.
>>I have no problems to build it on Windows and Linux but when building on 
>>MACOS (10.15.7 Catalina) I get error:
>>GDAL/ogr/ogrsf_frmts/geojson/libjson/json_tokener.c:268:2: 
>>error: use of undeclared identifier 'locale_t'
>>        locale_t oldlocale = uselocale(NULL);
>> 
>>I’m newbie to MACOS but using small cmake script and `find_path` function I 
>>know that both `locale.h` and `xlocale.h` exist.
>>The script is sort of:
>>find_path(dir NAMES "locale.h")
>>message("locale dir: ${dir}")
>>find_path(xdir NAMES "xlocale.h")
>>message("xlocale dir: ${xdir}")
>> 
>>and the output:
>>locale dir: 
>>/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include
>>xlocale dir: 
>>/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include
>> 
>>Though I have three SDK’s and all of them have `locale.h` and `xlocale.h`.
>>I hope somebody knows what is the problem and how to solve it
>> 
>>Regards,
>>Kerim _______________________________________________
>>gdal-dev mailing list
>>[email protected]
>>https://lists.osgeo.org/mailman/listinfo/gdal-dev 
 
 
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to