<div dir="ltr">this patch solved gui compilation problem for me in Ubuntu12.04. There maybe a better way to do the trick. But this works<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 31, 2012 at 12:49 AM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I doubt that it is the animation modules itself. But at about the time this was added, there was some change in related code (could be a class in one of the g.gui.* modules, or maybe something else). This it is changes that started around this time and affecting previously working modules for mapswipe and modeler--and now other modules. Something was switched so that these now call something that they did not call before that time and that is breaking GRASS compilation on the Mac.<br>
<div class="im"><br>
Michael<br>
____________________<br>
C. Michael Barton<br>
Director, Center for Social Dynamics & Complexity<br>
Professor of Anthropology, School of Human Evolution & Social Change<br>
Arizona State University<br>
<br>
voice: 480-965-6262 (SHESC), <a href="tel:480-727-9746" value="+914807279746">480-727-9746</a> (CSDC)<br>
fax: 480-965-7671 (SHESC), <a href="tel:480-727-0709" value="+914807270709">480-727-0709</a> (CSDC)<br>
www: <a href="http://www.public.asu.edu/~cmbarton" target="_blank">http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" target="_blank">http://csdc.asu.edu</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>On Dec 29, 2012, at 10:30 PM, Helena Mitasova <<a href="mailto:hmitaso@ncsu.edu">hmitaso@ncsu.edu</a>><br>
<div class="HOEnZb"><div class="h5"> wrote:<br>
<br>
> I can confirm that - I don't think it was the animation, I think it was the g.gui.* that started to break down modules for me.<br>
> I am still on 10.6.8 but I am trying to set up a machine with 10.8 for testing.<br>
><br>
> Currently, the compilation ends with error for the following modules:<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/animation<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/mapswipe<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/gmodeler<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/rlisetup<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/psmap<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/dbmgr<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/vdigit<br>
> /Users/helena/grassdev7/grass_trunk/gui/wxpython/iclass<br>
><br>
> but it affects more than the modules above - for example switching to 3d view is broken - it has erratic behavior (I can provide<br>
> more details - there are too many to list here but the following error shows up<br>
> pythonw2.6[69774] <Error>: CGContextRestoreGState: invalid context 0x0<br>
> (this is just with a single DEM, no volumes)<br>
><br>
> v.digit runs but hangs on rendering<br>
><br>
> mapswipe works fine except for the manual page which gives<br>
> CGContextRestoreGState: invalid context 0x0<br>
><br>
> animation tool does not start at all giving the following error<br>
> CGBitmapContextCreate: invalid data bytes/row: should be at least 4 for 8 integer bits/component, 3 componen<br>
> ts, kCGImageAlphaNoneSkipFirst.<br>
> pythonw2.6[69774] <Error>: CGContextTranslateCTM: invalid context 0x0<br>
> pythonw2.6[69774] <Error>: CGContextScaleCTM: invalid context 0x0<br>
><br>
> Note that this issue is different from GRASS6.4.3<br>
> crashing gui on OS X 10.7 and 10.8 when drawing isosurfaces - that works OK on 10.6 but the issues above<br>
> are in GRASS7 only and on Mac OSX 10.6 - 10.8<br>
><br>
> Helena<br>
><br>
> On Dec 29, 2012, at 3:57 PM, Michael Barton wrote:<br>
><br>
>> This has been broken since the introduction of the animation module and apparently now is affecting other modules that used to compile fine. So GRASS 7 is increasingly broken for the Mac. Volume displays have been broken for many months now. If someone could tell me what has changed with the introduction of these new modules and related changes to the other ones, I might be able to find out what is breaking on the Mac. I'm guessing that it is a new class that calls some wxPython windowing routine that has a problem, but I don't know what it is.<br>
>><br>
>> Michael<br>
>> ____________________<br>
>> C. Michael Barton<br>
>> Director, Center for Social Dynamics & Complexity<br>
>> Professor of Anthropology, School of Human Evolution & Social Change<br>
>> Arizona State University<br>
>><br>
>> voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)<br>
>> fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)<br>
>> www: <a href="http://www.public.asu.edu/~cmbarton" target="_blank">http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" target="_blank">http://csdc.asu.edu</a><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Dec 29, 2012, at 1:00 PM, <<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>><br>
>> wrote:<br>
>><br>
>>> From: Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>><br>
>>> Subject: Re: [GRASS-dev] Grass7 GUI compilation failed<br>
>>> Date: December 29, 2012 11:25:17 AM MST<br>
>>> To: <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>><br>
>>><br>
>>><br>
>>> here is output from v.digit<br>
>>> make<br>
>>> ml<br>
>>> make[6]: Entering directory `/code/grass/grass70/gui/wxpython/vdigit'<br>
>>> GISRC=/code/grass/grass70/dist.x86_64-unknown-linux-gnu/demolocation/.grassrc70 GISBASE=/code/grass/grass70/dist.x86_64-unknown-linux-gnu PATH="/code/grass/grass70/dist.x86_64-unknown-linux-gnu/bin:/code/grass/grass70/dist.x86_64-unknown-linux-gnu/bin:$PATH" PYTHONPATH="/code/grass/grass70/dist.x86_64-unknown-linux-gnu/etc/python:/code/grass/grass70/dist.x86_64-unknown-linux-gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/code/grass/grass70/dist.x86_64-unknown-linux-gnu/bin:/code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib:/code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib:" LC_ALL=C /code/grass/grass70/dist.x86_64-unknown-linux-gnu/scripts/g.gui.vdigit --html-description < /dev/null | grep -v '</body>\|</html>' > g.gui.vdigit.tmp.html<br>
>>> Traceback (most recent call last):<br>
>>> File "/code/grass/grass70/dist.x86_64-unknown-linux-gnu/scripts/g.gui.vdigit", line 39, in <module><br>
>>> import wx<br>
>>> ImportError: No module named wx<br>
>>> make[6]: *** [g.gui.vdigit.tmp.html] Error 1<br>
>>> rm g.gui.vdigit.tmp.html<br>
>>> make[6]: Leaving directory `/code/grass/grass70/gui/wxpython/vdigit'<br>
>>> make[5]: *** [guiscript] Error 2<br>
>>><br>
>>><br>
>>> On Sat, Dec 29, 2012 at 9:57 PM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>> wrote:<br>
>>> grass7.0 fails compilation at first and continues only after setting PYTHONPATH.<br>
>>><br>
>>> This becomes a routine for recompilation. Is there any work around to automatically pickup wxPython?<br>
>>><br>
>>> Here is my error log:<br>
>>><br>
>>> Started compilation: Sat Dec 29 21:46:17 IST 2012<br>
>>> --<br>
>>> Errors in:<br>
>>> /code/grass/grass70/gui/wxpython/animation<br>
>>> /code/grass/grass70/gui/wxpython/mapswipe<br>
>>> /code/grass/grass70/gui/wxpython/gmodeler<br>
>>> /code/grass/grass70/gui/wxpython/rlisetup<br>
>>> /code/grass/grass70/gui/wxpython/psmap<br>
>>> /code/grass/grass70/gui/wxpython/dbmgr<br>
>>> /code/grass/grass70/gui/wxpython/vdigit<br>
>>> --<br>
>>> In case of errors please change into the directory with error and run 'make'.<br>
>>> If you get multiple errors, you need to deal with them in the order they<br>
>>> appear in the error log. If you get an error building a library, you will<br>
>>> also get errors from anything which uses the library.<br>
>>> --<br>
>>> Finished compilation: Sat Dec 29 21:53:10 IST 2012<br>
>>><br>
>>><br>
>>> wxpython is installed from ubuntu repos. so its in the default path<br>
>>><br>
>>><br>
>>> --<br>
>>> Regards,<br>
>>> Rashad<br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Regards,<br>
>>> Rashad<br>
>><br>
>> _______________________________________________<br>
>> grass-dev mailing list<br>
>> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
><br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br> Rashad</font></div>
</div>