[GRASS-dev] Fwd: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

Huidae Cho grass4u at gmail.com
Sat Jul 21 22:43:08 PDT 2018


For anyone who wants to try this patch on macOS.

---------- Forwarded message ----------
From: Huidae Cho <grass4u at gmail.com>
Date: Sun, Jul 22, 2018 at 1:41 AM
Subject: Re: [GRASS-dev] [GRASS GIS] #3600: m.nviz.image doesn't produce
any output
To: Michael Barton <Michael.Barton at asu.edu>


Michael,

Please try this patch.

cd grass_trunk
for i in ~/*.diff; do
  patch -p0 < $i
done
cp include/nviz.h dist.x86_64-apple-darwin17.0.0/include/grass/nviz.h
echo "#define OPENGL_FBO 1" >
dist.x86_64-apple-darwin17.0.0/include/grass/config.h
# case 4 below
(cd lib/nviz; make)
(cd lib/ogsf; make)

I tried AGL and CGL with/without framebuffer objects (FBO). AGL works with
and without FBO, but CGL only works with FBO, again, on my VM. We know AGL
without FBO doesn't work on your mac.

1. AGL, no FBO: OPENGL_AGL, no OPENGL_FBO in config.h works for me, but not
for you.
2. AGL, FBO: OPENGL_AGL, OPENGL_FBO in config.h works for me.
3. CGL, no FBO: no OPENGL_AGL, no OPENGL_FBO in config.h doesn't work for
me.
4. CGL, FBO: OPENGL_FBO, no OPENGL_AGL in config.h works for me.

If you don't mind, please try cases 2-4.

Best,
Huidae
-- 
Huidae Cho, Ph.D., PE, M.ASCE, CFM, GISP
Senior Geospatial Engineer, MapAnything
Open Source GIS Developer, GRASS GIS Development Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180722/13283c79/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: include-nviz.h.diff
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180722/13283c79/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-nviz-render.c.diff
Type: text/x-patch
Size: 5241 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180722/13283c79/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-ogsf-gsd_prim.c.diff
Type: text/x-patch
Size: 1842 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180722/13283c79/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-ogsf-gsd_view.c.diff
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180722/13283c79/attachment-0007.bin>


More information about the grass-dev mailing list