[GRASS-dev] compiling on OSX 10.11 (El Capitan Beta)

Carlos Grohmann carlos.grohmann at gmail.com
Fri Jul 24 07:04:15 PDT 2015


Just to update my last message, although wxgui won't start, GRASS will
start in text mode.
In python I tried the import statment:

>>> from grass.pygrass import messages
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/pygrass/messages/__init__.py",
line 19, in <module>
    import grass.lib.gis as libgis
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/gis.py",
line 23, in <module>
    _libs["grass_gis.7.0.1RC2"] = load_library("grass_gis.7.0.1RC2")
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/ctypes_loader.py",
line 57, in load_library
    raise ImportError,"%s not found." % libname
ImportError: grass_gis.7.0.1RC2 not found.

 I can't find any file with that name in the package


Carlos



On Fri, Jul 24, 2015 at 10:52 AM, Carlos Grohmann <carlos.grohmann at gmail.com
> wrote:

> Well, if the errors are only about documentation, I can live with them.
>
> So I went on to create the installation package. I had to manually
> download PackageMaker from Apple (Late 2012 version).
>
> After creating and installing the package, when I run it, I get the
> startup dialog (choose location etc), but wxgui fails:
>
> Launching <wxpython> GUI in the background, please wait...
> GRASS 7.0.1RC2
> (araca_utm):~/Documents/installs/release_20150720_grass_7_0_1RC2 > Unable
> to import pyGRASS: grass_gis.7.0.1RC2 not found.
> Some functionality will be not accessible
> Traceback (most recent call last):
>   File "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/wxgui.py",
> line 37, in <module>
>     from lmgr.frame import GMFrame
>   File
> "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/frame.py",
> line 50, in <module>
>     from lmgr.layertree        import LayerTree, LMIcons
>   File
> "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py",
> line 37, in <module>
>     from mapdisp.frame        import MapFrame
>   File
> "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/mapdisp/frame.py",
> line 34, in <module>
>     from vdigit.toolbars    import VDigitToolbar
>   File
> "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/vdigit/toolbars.py",
> line 30, in <module>
>     from iclass.digit       import IClassVDigit
>   File
> "/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/iclass/digit.py",
> line 23, in <module>
>     from vdigit.wxdisplay import DisplayDriver, TYPE_AREA
> ImportError: cannot import name TYPE_AREA
>
>
>
> Carlos
>
>
>
>
>
> On Thu, Jul 23, 2015 at 10:35 PM, William Kyngesburye <
> woklist at kyngchaos.com> wrote:
>
>> I believe what happens is it compiles with links to where it will be
>> installed, but during documentation creation it uses DYLD_LIBRARY_PATH to
>> make it look in the build dir.  This is what is not working.
>>
>> On Jul 23, 2015, at 7:40 PM, Carlos Grohmann <carlos.grohmann at gmail.com>
>> wrote:
>>
>> > On thing that I found weird id this:
>> >
>> >
>> > dyld: Library not loaded:
>> /Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.1RC2.dylib
>> >   Referenced from:
>> /Users/guano/Documents/installs/release_20150720_grass_7_0_1RC2/dist.x86_64-apple-darwin15.0.0/bin/g.parser
>> >   Reason: image not found
>> >
>> >
>> >
>> > Why load the library from /Applications/GRASS-7.0.app/ at compiling
>> time? The package hasn't even been created yet...
>> >
>> > Shouldn't this be loaded from the source dir?
>> >
>> > Carlos
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Thu, Jul 23, 2015 at 12:09 AM, William Kyngesburye <
>> woklist at kyngchaos.com> wrote:
>> > I don't see any GDAL problem there.  It looks like DYLD_LIBRARY_PATH is
>> not working when running the modules to create documentation.
>> >
>> > I don't know where to go from there.
>> >
>> > On Jul 22, 2015, at 8:18 PM, Carlos Grohmann <carlos.grohmann at gmail.com>
>> wrote:
>> >
>> > > Thanks, William.
>> > >
>> > > That worked, at least for the configure part. Now the problem is at
>> compiling. At the end of make, I get a ton of errors in modules:
>>
>> > > the first script, d.correlate, gives me this eror:
>> > >
>> > > cd scripts/d.correlate/
>> > > GuanoAFBIOTA:d.correlate guano$ make
>> > > if [
>> "/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts/d.correlate"
>> != "" ] ; then
>> GISRC=/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/demolocation/.grassrc70
>> GISBASE=/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0
>> PATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts:$PATH"
>> PYTHONPATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/etc/python:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/gui/wxpython:$PYTHONPATH"
>> DYLD_LIBRARY_PATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/lib:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/lib:"
>> LC_ALL=C
>> /Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts/d.correlate
>> --html-description < /dev/null | grep -v '</body>\|</html>' >
>> d.correlate.tmp.html ; fi
>> > > dyld: Library not loaded:
>> /Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.1svn.dylib
>> > >   Referenced from:
>> /Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin/g.parser
>> > >   Reason: image not found
>> > > make: *** [d.correlate.tmp.html] Error 1
>> > > rm d.correlate.tmp.html
>> > >
>>
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/
>>
>> "We are at war with them. Neither in hatred nor revenge and with no
>> particular pleasure I shall kill every ___ I can until the war is over.
>> That is my duty."
>>
>> "Don't you even hate 'em?"
>>
>> "What good would it do if I did? If all the many millions of people of
>> the allied nations devoted an entire year exclusively to hating the ____ it
>> wouldn't kill one ___ nor shorten the war one day."
>>
>> <Ha, ha> "And it might give 'em all stomach ulcers."
>>
>> - Tarzan, on war
>>
>>
>
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Energy and Environment - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> http://orcid.org/0000-0001-5073-5572
> ________________
> Can’t stop the signal.
>



-- 
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
________________
Can’t stop the signal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150724/4228178a/attachment.html>


More information about the grass-dev mailing list