[GRASS-user] Grass 6.4.2 on mac with lion

Salvatore Mellino salvatore.mellino at gmail.com
Sat Jan 14 17:24:58 EST 2012


Thanks for replay, I arrived at the end of "configure", I received this message:

Errors in:
/Users/salvatore/GIS/grass-6.4.2RC2/raster/r.out.png
/Users/salvatore/GIS/grass-6.4.2RC2/visualization/nviz
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Sab 14 Gen 2012 23:08:49 CET
make: *** [default] Error 1

I try to run "make" and "sudo make install", but I received the following error:

GRASS 6.4.2RC2 (Campania_wgs_33N):~ > 3D view mode: dlopen(/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_datetime.6.4.2RC2.dylib, 10): no suitable image found.  Did find:
	/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_datetime.6.4.2RC2.dylib: mach-o, but wrong architecture
	/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_datetime.6.4.2RC2.dylib: mach-o, but wrong architecture
Traceback (most recent call last):
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py", line 65, in <module>
    from gui_modules import layertree
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/layertree.py", line 44, in <module>
    import toolbars
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/toolbars.py", line 47, in <module>
    from nviz import haveNviz
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/nviz.py", line 29, in <module>
    import nviz_mapdisp
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/nviz_mapdisp.py", line 39, in <module>
    from workspace      import Nviz as NvizDefault
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/workspace.py", line 40, in <module>
    import wxnviz
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/wxnviz.py", line 58, in <module>
    errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined

Any suggestion?


 





Il giorno 14/gen/2012, alle ore 16:23, William Kyngesburye ha scritto:

> Hmm, I'm guessing you have my GRASS 6.4.1, and since I've been too busy to package the 6.4.2 RCs you're trying it yourself.  Michael Barton has been doing a better job of keeping up with OS X packages and I'd recommend getting his, though he's also been quiet lately, maybe busy or on vacation.
> 
> Anyways, there are different graphic interfaces that can be used for different parts of GRASS.  X11 for a Linux-type interface and Aqua for OS X.
> 
> On OS X, X11 is only needed for display monitors - this is the --with-x option that is failing, which is why I assumed X11 was missing.  Try adding these flags:
> 
> --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib
> 
> OpenGL is used by NVIZ.  NVIZ uses the TclTk, which works best in the Aqua framework form (and the default in the system).  So configure:
> 
> --with-opengl=aqua
> 
> One more thing - GRASS configure needs a lot of help to get the rest of my frameworks and system stuff.  It doesn't know to use UnixImageIO for PNG or TIFF, or how to find the GDAL, PROJ, GEOS, cairo or freetype frameworks or some other things in system frameworks, you need to spell it all out.  And you probably want to make an OS X application.  See the Mac readme in the source/macosx folder for more info.
> 
> On Jan 14, 2012, at 6:03 AM, Salvatore Mellino wrote:
> 
>> Dear William,
>> 
>> x11 seems to work with Lion, I used Grass 6.4.1. What does it means "use aqua"? This is my first time compiling something...
>> 
>> Regards,
>> 
>> Salvatore
>> 
>> Il giorno 13/gen/2012, alle ore 16:03, William Kyngesburye ha scritto:
>> 
>>> Use "aqua" OpenGL.  Or make sure you have installed the x11 package - I'm not sure how this works in Lion, I upgraded and it kept/updated my old X11, but I'm not sure if it is included in Lion on a clean install.
>>> 
>>> On Jan 11, 2012, at 11:30 AM, Salvatore Mellino wrote:
>>> 
>>>> I'm trying to compile GRASS 6.4.2 on my macbook with Lion OSX. I stopped at one point. How can I solve my problem?
>>>> 
>>>> Thanks.
>>>> 
>>>> Salvatore
>>>> 
>>>> 
>>>> MacBook-Pro-di-Salvatore-Mellino:grass-6.4.2RC2 salvatore$ ./configure --enable-sysv --with-x --with-opengl=x11 --without-odbc --with-cxx --with-sqlite --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include --with-fftw --with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include --with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-postgres-includes=/usr/local/pgsql/include --with-postgres-libs=/usr/local/pgsql/lib
>>> 
>>>> checking for X... no
>>> 
>>>> checking whether to use OpenGL... x11
>>>> checking for location of OpenGL includes... 
>>>> checking for GL/gl.h... no
>>>> configure: error: *** Unable to locate OpenGL includes._______________________________________________
>>>> grass-user mailing list
>>>> grass-user a lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/grass-user
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
> Second Pogril: I don't know.  Why IS life like sticking your head in a bucket filled with hyena offal?
> First Pogril: I don't know either.  Wretched, isn't it?
> 
> -HitchHiker's Guide to the Galaxy
> 
> 



More information about the grass-user mailing list