Error during compilation of audacity 2.0.1 Linux

Hi everybody

I just tried to compile Audacity 2.0.1 for RHEL / Centos 6

All dependancies are found but at the end of the configure I get the following error message :

config.status: creating Makefile
config.status: creating config.h
=== configuring in lib-src/libogg (/download/audacity-src-2.0.1/lib-src/libogg)
configure: running /bin/sh ./configure '--prefix=/usr/local/'  '--with-wx-config=/usr/bin/wx-config' '--disable-programs' '--disable-programs' '--disable-programs' '--with-pa-include=../portaudio-v19/include' --cache-file=/dev/null --srcdir=.
configure: WARNING: unrecognized options: --with-wx-config, --disable-programs, --disable-programs, --disable-programs, --with-pa-include
./configure: line 2050: syntax error near unexpected token `libogg,1.1.3'
./configure: line 2050: `AM_INIT_AUTOMAKE(libogg,1.1.3)'
configure: error: ./configure failed for lib-src/libogg

and no make is possible.

How should I do ?

You have unrecognised configure options.

To point Audacity to Widgets at /usr/bin/wx-config (if you need to), prefix the Audacity ./configure command with a command to set the WX_CONFIG environment variable. For example:

WX_CONFIG=/usr/bin/wx-config  ./configure <options and arguments>

Did you type any of those --disable-programs options in your configure command? I see some of those --disable-programs entries in the output for a default configure, but not as many as you have. Can you post your complete configure command?


Gale

Hi and thanks for your reply.

No I didn’t change at all. I downloaded the sources, installed wxGTK-devel.

I have

$ locate wx-config
/usr/bin/wx-config

and I ran the configure and make out of the box without any change. And it seems that the ‘–with-wx-config=/usr/bin/wx-config’ is in the configure file at line 6046.

Try compiling HEAD instead of the 2.0.1 tarball ( http://audacityteam.org/community/developers#svn ) .

Use ./configure without any options or arguments.




Gale

Hi

Sorry I didn’t understand what HEAD is ? Could you explain pls ?

Thanks

From the SVN source code (see the link that Gale posted)

And there is no way to download all the svn together in only one file as zip or bz2 ?

svn is too complex.

Just connect to the internet, open a terminal and type the command shown in the link:

svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only

Hit ENTER. That creates and downloads the entire Audacity code to an “audacity-read-only” directory inside your current directory (no unzip needed). You can call the directory something other than “audacity-read-only” in that checkout command as long as the directory does not already exist.

Then run

cd <the directory you downloaded to>
./configure
sudo make install

Gale

Thanks

I had to install “subversion” before all and then I downloaded the sources as you said.

I had to install also libid3tag-devel then finally I was able to compile .

Now when I can open audacity but I can’t play any sound : in the Edit/Preferences/devices, all the choices are in blank and I can’t modify them

What can be the issue ?

What sound system does your computer use? ALSA, OSS, OSS4, Jack, PulseAudio, something else?

RHEL 6 /CentOs 6 use pulseaudio.

Do I have something more to install ?

I’d recommend that you install pavucontrol (PulseAudio Volume Control). This probably won’t fix the immediate problem, but you will find it useful later.

When you run ./configure if you scroll up a bit from the bottom of the output text you should see that it says:

configure: ---------------------------------------
configure: Including support for OSS
configure: Including support for ALSA
configure: ---------------------------------------

then a bit higher up, something like:

Configuration summary:

  Target ...................... i686-pc-linux-gnu
  C++ bindings ................ no
  Debug output ................ no

  ALSA ........................ yes
  ASIHPI ...................... no

  OSS ......................... yes
  JACK ........................ yes

It is essential that ALSA is enabled - do you get that?

Hi !

No here is the output of this section :

  Target ...................... i686-pc-linux-gnu
  C++ bindings ................ no
  Debug output ................ no

  ALSA ........................ no
  ASIHPI ...................... no

  OSS ......................... yes
  JACK ........................ no

How can I change that ?

And there is no package named pavucontrol in Centos, but it seems that it has been renamed as gnome-volume-control. For me, it is the same that I have under Fedora.
Thx

I don’t think it is.
I think that gnome-volume-control may be based on pavucontrol but I’m not sure that is has the full functionality of pavucontrol.

Do you have alsamixer? (try typing alsamixer in a terminal window.)

Yes I have alsamixer shown in its windows

its indicate : chip: pulseaudio, card: pulseaudio, and selected sound card = default

and I see also in the configure file :

$ grep -i alsa *
configure: LIBSNDFILE_LOCAL_CONFIGURE_ARGS="–disable-sqlite --disable-external-libs > –disable-alsa> "

Ensure that you have libsndfile installed (and the development headers if separate on your OS).

Yes I have it :

 # rpm -qa | grep  libsndfile
libsndfile-devel-1.0.20-5.el6.i686
libsndfile-1.0.20-5.el6.i686

What about libasound2 ?

I don’t find anything about libasound or libasound2.

which files are included in it, maybe I can search for them ?

That is probably the problem.
libasound2 is the shared library for ALSA applications and is required for ALSA support.

I think that you must have libasound2 installed if sound is working in other programs, but you need the development headers for building applications with ALSA support.

Google brings up: RPM OpenSuSE 11.X libasound2-32bit 1.0.23 x86_64 rpm
but I’d have thought that libasound2 would have to be in the standard repository.