[GRASS-dev] compiling 7.0 on MacOS 10.9

epi massimodisasha at gmail.com
Wed Apr 2 01:37:28 PDT 2014


Micha,

i use homebrew to satisfy the dependencies for grass7 

./configure  \
--with-opengl-includes=/opt/X11/include/ \
--with-opengl-libs=/opt/X11/lib/ \
--with-cairo-includes=/usr/local/Cellar/cairo/1.12.16/include/cairo/ \
--with-cairo-libs=/usr/local/Cellar/cairo/1.12.16/lib/ \
--with-freetype-includes=/usr/local/include/freetype2 \
--with-blas \
--with-geos \
--with-lapack \
--with-netcdf \
--with-odbc \
--with-pthread \
--with-postgres \
--with-sqlite \
--with-wxwidgets=/usr/local/Cellar/wxmac/3.0.0.0/bin/wx-config 

the build ends with Errors in:
/Users/epi/dev/grass7_trunk/lib/nviz
/Users/epi/dev/grass7_trunk/misc/m.nviz.image
/Users/epi/dev/grass7_trunk/visualization/wximgview

The modules are all fully functionals but because i use python from home-brew as well (not the system one)
it is 64 bit and is not compatible with wx-2.8 … i have wx3.0 installed (that’s 64bit) but the main gui doesn’t start. 
This the log from :

 g.gui gui=wxpython

Launching <wxpython> GUI in the background, please wait...
GRASS 7.0.svn (nc_spm_08_grass7):~ > Traceback (most recent call last):
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/wxgui.py", line 143, in <module>
    sys.exit(main())
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/wxgui.py", line 136, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/wxgui.py", line 50, in __init__
    wx.App.__init__(self, False)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8631, in __init__
    self._BootstrapApp()
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/wxgui.py", line 84, in OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/lmgr/frame.py", line 109, in __init__
    self._menuTreeBuilder = LayerManagerMenuData()
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/lmgr/menudata.py", line 40, in __init__
    MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/menutree.py", line 69, in __init__
    xmlTree = etree.parse(filename)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0


the wx dialog for (most but not all **) the grass modules, works fine.
** command like g.region, r.mask and others do not lunch a gui dialog when type their name in the grass shell.

Massimo.

On Apr 2, 2014, at 9:48 AM, Micha Silver <micha at arava.co.il> wrote:

> Has anyone compiled GRASS 7.0 on MacOS Mavricks? Any tips?
> Thanks,
> 
> -- 
> Micha Silver
> GIS Consulting
> 052-3665918
> http://www.surfaces.co.il
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140402/65e3e12a/attachment.html>


More information about the grass-dev mailing list