[GRASS-dev] does GRASS 7 for Mac compile yet?

epi massimodisasha at gmail.com
Mon Feb 4 14:57:06 PST 2013


i'm trying to debug the build of GRASS 7 on mac OSX 10.8.x in 64 bit with WX 2.9.x

After commenting the check for wx version i got the GUI start, some worning :

###
GRASS 7.0.svn (spearfish60):~ > /usr/local/grass-7.0.svn/etc/gui/wxpython/wxgui.py:54: wxPyDeprecationWarning: Call to deprecated item 'InitAllImageHandlers'. 
  wx.InitAllImageHandlers()
/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_core/goutput.py:230: wxPyDeprecationWarning: Call to deprecated item 'SetVirtualSizeHints'. 
  outputSizer.SetVirtualSizeHints(self.panelOutput)
###


the Window Manager seems to work properly (i cal load a layer Rast/Vect in the lkayer tree, the shell also pront out the log of commands nicely)
but i can't display layers (both Vector and Raster are not displayed).
Commenting  this 2 line in madisp.py :

359        		#self.PrepareDC(dc)
519		        #self.PrepareDC(dc)

i got the Raster map displaying properly

but no vector, the error is in a missed Cairo Driver :


/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_core/ghelp.py:
608: wxPyDeprecationWarning: Call to deprecated item
'InitAllImageHandlers'.
  wx.InitAllImageHandlers()
Command 'd.vect map=archsites at PERMANENT
type=point,line,area,face' failed
Details: Unknown display driver <cairo>
Command 'd.vect map=archsites at PERMANENT
type=point,line,area,face' failed
Details: Unknown display driver <cairo>


I wasn't able to get the cairo driver working during the Make step, it shows the error at the end of the log [1]
about a missed arch ... but i guess ... I have everything built as --universal

In doubt I rebuilt fontconfig and cairo and checked the relative architecture :

lipo -info /usr/local/Cellar/cairo/1.12.12/lib/cairo/libcairo-trace.0.dylib /usr/local/Cellar/cairo/1.12.12/lib/libcairo-gobject.2.dylib /usr/local/Cellar/cairo/1.12.12/lib/libcairo-script-interpreter.2.dylib /usr/local/Cellar/cairo/1.12.12/lib/libcairo.2.dylib 
Architectures in the fat file: /usr/local/Cellar/cairo/1.12.12/lib/cairo/libcairo-trace.0.dylib are: i386 x86_64 
Architectures in the fat file: /usr/local/Cellar/cairo/1.12.12/lib/libcairo-gobject.2.dylib are: i386 x86_64 
Architectures in the fat file: /usr/local/Cellar/cairo/1.12.12/lib/libcairo-script-interpreter.2.dylib are: i386 x86_64 
Architectures in the fat file: /usr/local/Cellar/cairo/1.12.12/lib/libcairo.2.dylib are: i386 x86_64 
epi:~ epi$ 


/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cache:    Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cache (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cache (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cat:      Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cat (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-cat (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-list:     Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-list (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-list (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-match:    Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-match (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-match (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-pattern:  Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-pattern (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-pattern (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-query:    Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-query (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-query (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-scan:     Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-scan (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-scan (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-validate: Mach-O universal binary with 2 architectures
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-validate (for architecture i386):	Mach-O executable i386
/usr/local/Cellar/fontconfig/2.10.91/bin/fc-validate (for architecture x86_64):Mach-O 64-bit executable x86_64



They are multi-arch, but unlucky i still have the same error in cairodriver, 



[1] http://epi.whoi.edu/esr/grass7_cairodriver_log.txt   <-- full build log

William K. helped me to debug the error, 
and seems that the GRASS Configure is not storing the fontconfig linking in platform.make so it doesn't get into the cairo driver compilation. 

thanks for helping me,

Massimo.



Il giorno 31/gen/2013, alle ore 13:04, Michael Barton <michael.barton at asu.edu> ha scritto:

> It may work with wxPython 2.9 but nobody has been able to test yet.
> 
> Michael
> ______________________________
> C. Michael Barton 
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
> Tempe, AZ  85287-2402
> USA
> 
> voice: 
> 480-965-6262 (SHESC), 480-727-9746 (CSDC)
> fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
> www: 
> http://csdc.asu.edu, http://shesc.asu.edu
> http://www.public.asu.edu/~cmbarton
> 
> On Jan 31, 2013, at 3:47 AM, epi <massimodisasha at gmail.com>
>  wrote:
> 
>> I'm a mac user as well and i will be happy to help,
>> 
>> … i built grass weekly (if not daily) in the past, 
>> but unfortunately now i'm on mac 10.8.x using 64bit python, all my python packages numpy scipy etc etc etc .. are 64 bit and ...
>> 
>> WX gui 
>> 
>> <start-joke>
>>     great choice
>> </end-joke> 
>> 
>> unfortunately doesn't works on mac in 64 bit mode … i'm waiting the 2.9.x to be stable that is 2 years now ...
>> 
>> This IMO can be one of the major reason of  "lack of mac-man-dev-power" 
>> 
>> i can provide log on the build of grass7 (without gui modules) … but this doesn't help
>> 
>> i don't know if grass-gui-dev want try to test grass with wx-2.9 .. it is unstable but works, if yes .. i'll be happy to be a guinea pig 
>> 
>> --Massimo
>> 
>> Il giorno 31/gen/2013, alle ore 05:32, Thomas Adams - NOAA Federal <thomas.adams at noaa.gov> ha scritto:
>> 
>>> All,
>>> 
>>> I'm a Mac user in addition to Linux. I'm going to have more free time starting in a few weeks. I'd be happy to step-up my use of GRASS 7 for testing. Just let me know what I can do. I'm moving from the U.S. to Melbourne, Australia in a couple of weeks!
>>> 
>>> Cheers,
>>> Tom
>>> 
>>> 
>>> On Thu, Jan 31, 2013 at 5:27 AM, Luca Delucchi <lucadeluge at gmail.com> wrote:
>>> 2013/1/31 Margherita Di Leo <dileomargherita at gmail.com>:
>>> > I think we should consider to promote a fund rising for buying a (used,
>>> > discounted, whatever) mac computer for the use of developers who are
>>> > developing or are willing to test on it. What do you think?
>>> >
>>> 
>>> I don't like this idea.
>>> I think should be really better to have some more Mac power user
>>> instead, and use the money for community sprint
>>> 
>>> > my 2 c
>>> > madi
>>> >
>>> 
>>> --
>>> ciao
>>> Luca
>>> 
>>> http://gis.cri.fmach.it/delucchi/
>>> www.lucadelu.org
>>> _______________________________________________
>>> grass-dev mailing list
>>> grass-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>>> 
>>> 
>>> 
>>> -- 
>>> Thomas E Adams
>>> Development & Operations Hydrologist
>>> National Weather Service
>>> Ohio River Forecast Center
>>> 1901 South State Route 134
>>> Wilmington, OH 45177
>>> http://www.erh.noaa.gov/er/ohrfc/
>>> EMAIL:	thomas.adams at noaa.gov
>>>  
>>> VOICE:	937-383-0528
>>> FAX:	937-383-0033
>>> 
>>> _______________________________________________
>>> 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/20130204/18fe15c9/attachment-0001.html>


More information about the grass-dev mailing list