[GRASS-dev] [GRASS GIS] #3610: Python ctypes MacOS: add more “-D” options to CTYPESFLAGS to make it work (almost)

GRASS GIS trac at osgeo.org
Sun Jul 29 10:01:10 PDT 2018


#3610: Python ctypes MacOS: add more “-D” options to CTYPESFLAGS to make it work
(almost)
-------------------------+-------------------------
 Reporter:  vince        |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  Default      |    Version:  unspecified
 Keywords:               |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 **ctypesgen** miserably fails on MacOS.
 I found the situation could be much improved if you add this defines:
 ''\"-Drestrict=\" \"-D_ _attribute_
 _(x)=\" \"-D_Nullable=\" \"-D_Nonnull=\"'' to CTYPESFLAGS

 The situation is not ideal, however. ''cpl_port.h'' as installed by GDAL
 needs a small patch too, because <x86intrin.h> won’t parse. I’m planning
 to ask the GDAL developers if this line is mandatory with CLANG. In the
 meanwhile the Makefile should make a private copy of this file, modify it
 and use it.

 Also, a system file needs a patch, though that might not be necessary
 (#warning condition treated as an error).

 Finally, NVIZ is beyond hope. The AGL framework is deprecated, uses Carbon
 as a framework, which is still more deprecated, and that makes the parsing
 almost impossible to set straight. Does grass rely on NVIZ, or it is
 possible to add an option to disable 3D viz? That'd be nice.

 Thanks.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3610>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list