can't find wxwidgets

i’ve installed wxWidgets in the default location.
(i started w/ 3.0 but configure.ac makes it look like
it doesn’t actually work w/ 3.0, so i’m back to 2.8.)

centos 7

audacity’s ./configure spews thusly:

checking for wx-config... /usr/local/bin/wx-config

  Warning: No config found to match: /usr/local/bin/wx-config --unicode=yes --version
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: Checking that the chosen version of wxWidgets is 2.8.x
configure: error: Unable to locate a suitable configuration of wxWidgets v2.8.x or higher.

i tried adding this to no avail.

LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH

my wxWidgets is 2.8.12 .

so, now what?

Moved to “Compiling Audacity”.

As you can see on Developing On Linux - Audacity Wiki Audacity does not support wx 3.x yet.

Did you install your local build of wx2.8 then run sudo ldconfig? http://wiki.audacityteam.org/wiki/CompilingAudacityForBeginners#Step_4:_Install_wxGTK.


Gale

i ran ldconfig.
same results.

isn’t wxGTK part of wxWidgets? do i have to install that
separately? i’ve downloaded …gtk and, offhand, it looks like
the files in …gtk are also in …widgets.

thx.

The essence is to compile the wxGTK version of wxWidgets, install it then build Audacity.

This person compiled Audacity recently on CentOS 6.6 - you may find it useful for the later stages:
https://forum.audacityteam.org/t/failed-to-compile-2-0-6/37477/1

Perhaps the best thing to do would be to uninstall your local version(s) of wxwidgets completely then try again building the unicode version of wxWidgets 2.8.12.

make -n install

can be useful in showing the steps that installation takes, which you can then undo.


Gale

the right way to undo a GNU/autotools package installation is

make uninstall

(FWIW)

What Gale meant was to use the -n flag so as to perform a “dry run”

http://unixhelp.ed.ac.uk/CGI/man-cgi?make

-n, --just-print, --dry-run, --recon
Print the commands that would be executed, but do not execute them

yeah, i know what Gale meant.


./configure --disable-unicode

gets me around the original problem, but then i get

configure: error: Audacity requires libsndfile to be enabled

even after installing libsndfile, export LD_LIBRARY_PATH=/usr/local/lib,
and ldconfig, copying libsndfile.* into lib-src (somebody wrote that
somewhere)

./configure --disable-unicode --with-libsndfile=system

yields

configure: error: You requested using the system libraries for LIBSNDFILE but they are not available

using local for the arg does not help.

Audacity no longer supports building without unicode. You need to build a (probably non-default) unicode version of the wxGTK version of Widgets.

Audacity sources obtained from us already come with libsndfile so you’ve probably broken something by doing that.


Gale

okay. i’ve deleted all traces of the wxWidgets, libsndfile, such
that /usr/local is empty of regular files.

in wxWidgets-2.8.12 i ran

./configure

yielding this.

  Which GUI toolkit should wxWidgets use?                 GTK+ 2
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      no
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               builtin
                                       png                sys
                                       regex              sys
                                       tiff               builtin
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no

and then

make
make install
export LD_LIBRARY_PATH=/usr/local/lib
ldconfig
which wx-config
/usr/local/bin/wx-config

ls /usr/local/lib/wx/config
gtk2-ansi-release-2.8

once again, running audacity 2.0.6’s ./configure yields

checking for wx-config... /usr/local/bin/wx-config

  Warning: No config found to match: /usr/local/bin/wx-config --unicode=yes --ve
rsion
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: Checking that the chosen version of wxWidgets is 2.8.x
configure: error: Unable to locate a suitable configuration of wxWidgets v2.8.x 
or higher.
The currently available configurations are listed below.  If necessary, either
install the package for your distribution or download the latest version of
wxWidgets
from http://wxwidgets.org.

    Default config is gtk2-ansi-release-2.8

  Default config will be used for output

As previously suggested, you need to build a unicode version of widgets for Audacity to work with. Because 2.8.12 builds ANSI by default, you therefore have to specify unicode when configuring widgets. Try:

./configure --enable-unicode

Gale

whoops. somehow missed the --enable-unicode . my fault.

that did do it.

thx.