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

Carlos Grohmann carlos.grohmann at gmail.com
Mon Jul 27 09:11:33 PDT 2015


If I just run wx-config, I get this:

wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release]
           [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
           [--universal[=yes|no]] [--unicode[=yes|no]] [--static[=yes|no]]
           [--debug[=yes|no]] [--version[=VERSION]] [--basename] [--cc]
           [--cppflags [base]] [--cxxflags [base]] [--cflags]
           [--rescomp] [--linkdeps] [--ld] [--utility=UTIL]
           [--libs [LIBS...]] [--optional-libs [LIBS...]]

    wx-config returns information about the wxWidgets libraries available on
  your system.  It may be used to retrieve the information required to build
  applications using these libraries using --cppflags, --cxxflags, --cflags,
  and --libs options. And you may query the properties of this configuration
  using --query-{host,toolkit,widgetset,chartype,debugtype,version,linkage}.

    NOTE:    Usage of --debug and --query-debugtype are only relevant if you
  have any  versions prior to 2.9 installed  and use the --version option to
  select an earlier version.

    If multiple builds of wxWidgets  are available,  you can use the options
  --prefix, --host, --toolkit, --unicode, --static, --universal or --version
  to select from them.  The  --selected-config  option shows the name of the
  current configuration and --list  shows available alternatives which match
  specified criteria.  The  --utility  option returns the correct version of
  UTIL to use with the selected build.  The  --linkdeps  option returns only
  static libraries for your makefile link rule dependencies.

    The LIBS arguments (comma or space separated) may be used to specify the
  wxWidgets libraries that  you wish to use. The "std" label may be used  to
  import all libraries that would be used by default if none were  specified
  explicitly, e.g. wx-config --libs core,base. The "all" label may  be  used
  to  import  all libraries that have been compiled which are shown  in  the
  list  below.  The  --optional-libs parameter should be followed by  a list
  of  libs that should be linked to, but only if they are available.

  Available libraries in this build are:
  xrc webview stc richtext ribbon propgrid aui gl media html adv core xml
net base

Trying the option listed in the third paragraph:

>wx-config --selected-config

>wx-config --list
>  Default config is osx_cocoa-unicode-3.0
> Default config will be used for output

>wx-config --version

So maybe one of those could be used at configure?



On Mon, Jul 27, 2015 at 1:00 PM, Rich Shepard <rshepard at appl-ecosys.com>

> On Mon, 27 Jul 2015, Carlos Grohmann wrote:
>  maybe something like
>> --with-wxwidgets=/usr/local/lib/wxPython- \
>> 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
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

Can’t stop the signal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150727/0066ce7c/attachment-0001.html>

More information about the grass-user mailing list