Unable to compile Audacity 1.3.7 source code within Ubuntu

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
eha1990
Posts: 1
Joined: Tue Apr 21, 2009 1:45 pm
Operating System: Please select

Unable to compile Audacity 1.3.7 source code within Ubuntu

Post by eha1990 » Tue Apr 21, 2009 2:02 pm

Running Ubuntu 8.10 32-bit

Attempting to compile Audacity 1.3.7 source code. I keep getting the following error message:

Warning: No config found to match: /usr/local/bin/wx-config --unicode=yes --version
in /usr/local/lib/wx/config

Below is the output from ./configure

Code: Select all

~/Desktop/audacity-src-1.3.7$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... yes
checking for an ANSI C-conforming const... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking CFLAGS for strict prototypes... -Wstrict-prototypes
checking wall_flags for maximum warnings... -Wall
checking for a sed that does not truncate output... /bin/sed
checking whether the C++ compiler accepts the  -Wall flag... yes
checking whether the C++ preprocessor accepts the  -Wall flag... yes
checking for simple visibility declarations... yes
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.
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.

I have never been able to get Audacity to work correctly in Ubuntu. I'm beginning to believe that I will have to try and use Wine with the Windows version just to use the app. I've tested out Audacity within Windows XP without any problems. I have compiled and installed wxWidgets v2.8.x several times already and I still have this problem.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Unable to compile Audacity 1.3.7 source code within Ubun

Post by steve » Tue Apr 21, 2009 11:47 pm

You need to have
libwxbase2.8-0
libwxgtk2.8-0
wx2.8-headers
libwxbase2.8-dev

The easiest way I found to install them was to add the wxWidgets repository to the sources list, then use synaptic (or apt)
See here for details: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian

Sorting out the dependencies is by far the hardest part in building Audacity from source. Once you got all of that sorted out, the actual build is extremely straightforward.

I'm using Audacity 1.3.8 alpha on Ubuntu 8.10 and it works very nicely. To obtain the source code for this version you need to install "cvs" (available from the main Ubuntu repository, then follow the instructions here: http://audacityteam.org/community/developers

Note, there is a slight risk involved with using the cvs version - since this is the latest development version and is constantly being updated, every now and then it gets broken. It does not usually remain broken for more than a day or two.

If you are not yet feeling confident enough about Audacity to go for the cvs version, the 1.3.7 version also works well on Ubuntu.

FFMpeg support is a bit tricky as the Ubuntu version of ffmpeg is not compatible with Audacity, but Audacity only need ffmpeg for importing / exporting file types that are not natively supported, so for WAV, MP3, OGG, Flac files, ffmpeg is not required.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dgersic
Posts: 18
Joined: Thu Sep 06, 2007 1:46 am
Operating System: Please select

Re: Unable to compile Audacity 1.3.7 source code within Ubun

Post by dgersic » Sat Jun 06, 2009 1:25 pm

eha1990 wrote: Attempting to compile Audacity 1.3.7 source code. I keep getting the following error message:
I had something similar trying to build 1.3.7 from source on OpenSuSE 11.1. I gave up on trying to resolve the dependencies in the minisource distribution, downloaded the fullsource version, and had no problems building it from there. You might try that if you're still struggling with this.

khratos
Posts: 1
Joined: Sun Mar 21, 2010 9:16 pm
Operating System: Please select

Re: Unable to compile Audacity 1.3.7 source code within Ubun

Post by khratos » Sun Mar 21, 2010 9:32 pm

Just for the records, I had this problem too, and checking out a little bit I noticed that wxWidgets by default have 'unicode' disabled. Audacity expects it to be enabled (by default).

So you might:

a) Add the --enable-unicode when you are about to run the 'configure' script of wxWidgets (before trying to run the 'configure' script of Audacity)
... or
b) Add the --disable-unicode when you are about to run the 'configure' script of Audacity (After having running the 'configure' script of wxWidgets the way it is by default)

I would suggest you the first option.

After doing this, the 'configuration' will throw another error if you lack another dependency, or, finish as expected and you will be able to run 'make' and 'make install'.


note for slackware users:
You might use this slackbuild http://packages.eslackware.com/slackbui ... ild.tar.gz
(Uncompress, put your wxWidgets source inside it, and adjust the wxWidgets.SlackBuild to fit the downloaded version), it will generate a Slackware package into /tmp/SBo

Locked