Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139529 - adding alsa support to audacity-1.2.4b
Summary: adding alsa support to audacity-1.2.4b
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 02:31 UTC by Laurento Frittella (mrfree)
Modified: 2006-10-31 08:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-sound/audacity-1.2.4b-r2.ebuild (audacity-1.2.4b-r2.ebuild,2.08 KB, text/plain)
2006-07-07 02:32 UTC, Laurento Frittella (mrfree)
Details
media-sound/audacity-1.2.4b-r2.ebuild (audacity-1.2.4b-r2.ebuild,2.25 KB, text/plain)
2006-07-07 04:17 UTC, Laurento Frittella (mrfree)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurento Frittella (mrfree) 2006-07-07 02:31:50 UTC
I wrote an ebuild to add alsa native support to audacity-1.2.4b (actually stable) and possibly to future 1.3.x ebuild.

Actually the ebuild DOESN'T work and I need some helt with it :)
The problem is in the portaudio library, audacity uses a "local" copy and I don't knows how I can compile it using a system wide one (>=media-libs/portaudio-19 actually it isn't in portage)

[...]
configure: configuring in lib-src/portaudio-v19
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-libmad=system' '--with-vorbis=system' '--with-id3tag=system' '--with-libsndfile=system' '--with-portaudio=v19' '--without-portmixer' '--build=i686-pc-linux-gnu' 'CFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe' 'CXXFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe -fvisibility-inlines-hidden' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
configure: warning: CFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe: invalid host type
configure: warning: CXXFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe -fvisibility-inlines-hidden: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19


On audacity wiki I found:
    * If configure fails, with errors like: 

    $ configure: warning: CC=gcc: invalid host type 
    $ configure: error: can only configure for one host and one target at a time 
    $ configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19 

    then put "env -i" in front of the command to supress the CC and CXX environment variables. 
    $ env -i ./configure --with-portaudio=v19 --without-portmixer 

So I tryed a manual configure in ebuild workdir without --build option and all seems to work well:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-libmad=system --with-vorbis=system --with-id3tag=system --with-libsndfile=system --with-portaudio=v19 --without-portmixer

Any suggestions?
Comment 1 Laurento Frittella (mrfree) 2006-07-07 02:32:27 UTC
Created attachment 91109 [details]
media-sound/audacity-1.2.4b-r2.ebuild
Comment 2 Laurento Frittella (mrfree) 2006-07-07 04:17:23 UTC
Created attachment 91117 [details]
media-sound/audacity-1.2.4b-r2.ebuild

Ok I've solved the problem with portaudio-v19 configuration using its last snapshot.

Now there is some "include" problems :)

[...]
In file included from AStatus.cpp:18:
AudioIO.h:16:23: portaudio.h: No such file or directory
In file included from AStatus.cpp:18:
AudioIO.h:171: error: ISO C++ forbids declaration of `PaStream' with no type
AudioIO.h:171: error: expected `;' before '*' token
AudioIO.h:190: error: `PaError' does not name a type
AudioIO.h:218: error: expected `,' or `...' before '*' token
AudioIO.h:219: error: ISO C++ forbids declaration of `PaStreamCallbackTimeInfo' with no type

But I think it's a step forward :)
Comment 3 Aaron Slunt 2006-08-27 17:54:48 UTC
I've actually struggled quite a bit myself trying to get 1.3.0b working with alsa. I gave up, and the reason for that is the audacity devs are talking about a 1.3.2 release possibly within the next two weeks, which should include native alsa support.

http://audacityteam.org/forum/thread/1301

IMO, you should just wait for 1.3.2 to come out and if there's issues with that, then try to get alsa to work in that. Although according to the dev there alsa should be fine in 1.3.2.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2006-10-31 08:12:51 UTC
1.3.2 in cvs now.