[GRASS-user] GRASS-7svn: Specify wxPython Version

Rich Shepard rshepard at appl-ecosys.com
Mon Jul 27 09:00:26 PDT 2015


On Mon, 27 Jul 2015, Carlos Grohmann wrote:

> maybe something like
> --with-wxwidgets=/usr/local/lib/wxPython-3.0.2.0/bin/wx-config \
> during configure?

Carlos,

   The configuration file contains the line
--with-wxwidgets=/usr/bin/wx-config
and wx-config has a way of specifying a version using a mask:

# get_mask [ _hash ]
# Construct a config filename mask from a pseudo-hash of component variable
s.
# The optional argument is the prefix of the hash to use.  If not specified
# this will return a mask derived from the command line options that were u
sed.
get_mask()
{
     [ $# -gt 0 ] || set m

     case "$m_ourversion" in
         2.9)
             is29orlater=1
             ;;
         2.*)
             # there is no 2.10 so currently everything else is <= 2.8
             is29orlater=0
             ;;
         *)
             # 3.x and later "is29orlater" too
             is29orlater=1
             ;;
     esac

     # use 2.8 or 2.9 version of the mask: the difference is the presence of
     # debug type in pre-2.9
     if [ $is29orlater = 0 ]; then
         eval echo
"\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}-\${$1_debugtype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}"
     else
         eval echo
"\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}"
     fi
}

   So there ought to be a way to pass 'is29orlater=1' on the configuration
line, but I've no idea how to do this.

Thanks,

Rich


More information about the grass-user mailing list