Benjamin Roberts wrote:
> I’m trying to compile GRASS 7.0.4 on an HPC cluster running Red Hat
> Enterprise Linux 6.5. We use EasyBuild to manage our toolchain, and I’m
> compiling GRASS against numerous packages that I’ve previously built, such as
> PROJ4, GDAL, etc.
>
> Unfortunately, during the compilation process, I get errors of this sort:
>
> Error:
> /home/brob695/.local/easybuild/build/GRASS/7.0.4/foss-2015a/grass-7.0.4/dist.x86_64-pc-linux-gnu/include/grass/ogsf.h:475:
> Syntax error at 'GLdouble'
> Error:
> /home/brob695/.local/easybuild/build/GRASS/7.0.4/foss-2015a/grass-7.0.4/dist.x86_64-pc-linux-gnu/include/grass/ogsf.h:475:
> Syntax error at ';'
> Error:
> /home/brob695/.local/easybuild/build/GRASS/7.0.4/foss-2015a/grass-7.0.4/dist.x86_64-pc-linux-gnu/include/grass/defs/ogsf.h:178:
> Syntax error at 'GLuint'
> Error:
> /home/brob695/.local/easybuild/build/GRASS/7.0.4/foss-2015a/grass-7.0.4/dist.x86_64-pc-linux-gnu/include/grass/defs/ogsf.h:445:
> Syntax error at 'gsd_set_font'
Could you provide some more context? Ideally everything after the
prior "Entering directory ..." line, to indicate which component is
being built and the command which is generate the errors.
> Because the objective is to convert data into graphical formats
> rather than displaying it, we don’t have OpenGL rendering; even the
> OpenGL libraries and headers are not available. However, I have
> attempted to disable OpenGL dependency using the --without-opengl
> configuration option; moreover, I see “checking whether to use
> OpenGL... no” in my configuration log.
In which case, GRASS ought to skip any component which requires
OpenGL.
I suspect that this arises from building the Python ctypes wrappers
for the OGSF and NVIZ libraries.
In which case, we should probably change the definition of MODULES in
lib/python/ctypes/Makefile to e.g.:
MODULES = date gis raster gmath proj imagery vector rtree display stats
\
dbmi raster3d arraystats cluster vedit segment rowio temporal
ifneq ($(USE_OPENGL),)
MODULES += ogsf nviz
endif
--
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user