[GRASS-dev] Re: [GRASS GIS] #598: MacOS X / OpenGL and Wxpython incompatible

GRASS GIS trac at osgeo.org
Wed May 13 10:17:37 EDT 2009


#598: MacOS X / OpenGL and Wxpython incompatible
---------------------+------------------------------------------------------
  Reporter:  vince   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  new                      
  Priority:  normal  |   Milestone:  6.4.0                    
 Component:  NVIZ    |     Version:  svn-trunk                
Resolution:          |    Keywords:                           
  Platform:  MacOSX  |         Cpu:  OSX/Intel                
---------------------+------------------------------------------------------
Comment (by vince):

 This is what I use to strip 64-bit flags off. It is a shell script
 executed in tclsh by macports.

 {{{
 for mfile in `find ${worksrcpath} -name Makefile -exec grep -l TCLINCDIR
 {} \;` ; do
   awk '/EXTRA_CFLAGS[ ]*=/ {print "# Strips 64-bit flags" ; print "CFLAGS1
 := $(patsubst -arch x86_64,,$(CFLAGS))" ; print "CFLAGS := $(patsubst
 -arch ppc64,,$(CFLAGS1))" ; print "LDFLAGS1 := $(patsubst -arch
 x86_64,,$(LDFLAGS))" ; print "LDFLAGS := $(patsubst -arch
 ppc64,,$(LDFLAGS1))"} ; {print $0}' ${mfile} > ${mfile}.out ;
   rm ${mfile} ;
   mv \${mfile}.out \${mfile} ;
 done
 }}}

 Same thing is to do with the xganim Makefile which installs wxpython
 dependencies.

 Also, nviz will not compile anyway. The file togl.c references unknown
 Tcl-aqua headers, I can't find a 'TkWindow' declaration in any of mine tk
 headers, neither 'XVisualInfo'.

 Also, find attached patch file I use on configure. The first patch is
 needed by internal Macports mechanism, it is unrelevant to our discussion.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/598#comment:9>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list