Hi Ben,

On Tue, Jul 19, 2016 at 10:01 AM, Benjamin Roberts <b...@roberts.geek.nz> wrote:
> Hi list,
>
> 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.

Yes fine. BTW: are you aware of this page:

https://grasswiki.osgeo.org/wiki/Compile_and_Install

The closest might be
https://grasswiki.osgeo.org/wiki/Compile_and_Install#Scientific_Linux

which I have used for many years.

> 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'
>
> 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.

Is there a chance to install the RPM which contains GL/gl.h?
On my Fedora box that is the mesa-libGL-devel RPM.

> 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.

ok, for fun I have removed the OpenGL headers on my Fedora box (along
with some dependent packages) and tried to reproduce your problem. So
I ended up with

  Cairo support:              no
...
  OpenGL support:             no
...
  wxWidgets support:          no

Means, I used for configure:

...
  --with-cairo=no \
  --with-wxwidgets=no \
  --with-opengl=no \
...

Compiling it as that gave me no errors at all.


> It seems that GLdouble and so forth are OpenGL data types, and presumably 
> therefore I can’t use them without supplying the OpenGL headers.

Yes. Again, it should only be an RPM.

> I’ve tried to find a way to disable OGSF and even NVIZ, thinking that maybe 
> these are dependent on OpenGL in some way, but to no avail.
>
> Is there something I’ve overlooked that will allow me to work around this 
> problem and get on with a GRASS build without OpenGL?

Please check which configure switches you used.

Maybe send the full configure command to me off-list, in order to take
a look. And also config.log.

Best,
Markus

-- 
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to