Error compiling Audacity 1.3.9 on Ubuntu 8.04

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
Scary Hallo
Posts: 5
Joined: Mon Nov 02, 2009 2:39 pm
Operating System: Please select

Error compiling Audacity 1.3.9 on Ubuntu 8.04

Post by Scary Hallo » Thu Nov 05, 2009 12:18 pm

Hello,
I have tried to compile Audacity 1.3.9. And I got the following error:

Code: Select all

src/hostapi/alsa/pa_linux_alsa.c:1372: error: ‘SND_PCM_TSTAMP_ENABLE’ undeclared (first use in this function)
Then I googled for a solution and found:
...
Change line 1372 in lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c from
SND_PCM_TSTAMP_ENABLE
to
SND_PCM_TSTAMP_MMAP
...
Is this the correct way? Do I have to change the source :?:

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

Re: Error compiling Audacity 1.3.9 on Ubuntu 8.04

Post by steve » Thu Nov 05, 2009 6:29 pm

Always helps if you post a link to where you found the information, but I found it http://n2.nabble.com/Compliling-1-3-8-o ... 99809.html
As it says in the thread:
Someone on -devel list had the same apparent problem, and Leland suggested changing from SND_OCM_TSTAMP_ENABLE to SND_PCM_TSTAMP_MMAP. He points out that ALSA docs say that SND_PCM_TSTAMP_MMAP is:
"Equivalent with SND_PCM_TSTAMP_ENABLE, just for compatibility with older versions"
Audacity 1.3.9 compiles fine on Ubuntu 9.04, so it's possible this may help (also, Leland is one of the top developers and legendary bug fixer for Audacity - he knows what he's talking about). If you're not ready to update Ubuntu yet, it may be worth giving it a go. However, if you're going to all the trouble of building from source, it's worth going one small step further and building the 1.3.10 version from cvs (it has several new bug fixes that are missing from 1.3.9).

Getting the latest source code from cvs is easy - you need to install the cvs package with apt or Synaptic, then type this at the command line

Code: Select all

cvs -d:pserver:[email protected]:/cvsroot/audacity checkout audacity
This will create a folder called "audacity" in your current directory and download the latest source code into it.

(I'd suggest that you see if you still get the problem with the cvs version before you start hacking the code)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Scary Hallo
Posts: 5
Joined: Mon Nov 02, 2009 2:39 pm
Operating System: Please select

Re: Error compiling Audacity 1.3.9 on Ubuntu 8.04

Post by Scary Hallo » Thu Nov 05, 2009 8:03 pm

Thank you for the quick reply.
But I already 'hacked' the code. :lol: And it seems to work. So far all is running stable. But if you say, there are a lot of bugfixes, I'll try 1.3.10.

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

Re: Error compiling Audacity 1.3.9 on Ubuntu 8.04

Post by steve » Thu Nov 05, 2009 8:38 pm

In the run up to Audacity 2.0, bug fixing is the only thing they are doing.
I tend to keep a well test version "installed" (sudo make install), and regularly rebuild from cvs without installing.

If you want to install more than one version on your computer, just add a suffix to the name when you compile (for example, ./configure --program-suffix=-cvs)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Scary Hallo
Posts: 5
Joined: Mon Nov 02, 2009 2:39 pm
Operating System: Please select

Re: Error compiling Audacity 1.3.9 on Ubuntu 8.04

Post by Scary Hallo » Sat Nov 07, 2009 2:27 pm

Thanks.
This is a good idea.

Locked