no devices with 2.x build

I compiled Audacity ® 2.0.0 (Unicode) from source, the executable runs successfully from the build directory, but there is no sound output.

In the “help->audio device info” there are no devices listed,

Default capture device number: -1
Default playback device number: -1
No devices found

In “preferences/devices” there is no content in the dropdowns (i.e. no host, playbackdevice)

“transport->scan audio devices” does nothing apparent

The 1.3.13-beta version installed from Ubuntu repository does produce sound and does have many devices listed.

LinuxMint, Release 11 (katya)
Kernel Linux 2.6.38-13-generic

from audacity build info Core Libraries:

libresample (Sample rate conversion) Enabled
PortAudio (Audio playback and recording) v19
wxWidgets 2.8.12 (Unicode)

log output

17:28:42: Audacity 2.0.0
17:28:43: Trying to load FFmpeg libraries...
17:28:43: Trying to load FFmpeg libraries from system paths. File name is 'libavformat.so.52'.
17:28:43: Checking for monolithic avformat from 'libavformat.so.52'.
17:28:43: avformat not monolithic
17:28:43: Loading avutil from 'libavutil.so.50'.
17:28:43: Loading avcodec from 'libavcodec.so.52'.
17:28:43: Loading avformat from 'libavformat.so.52'.
17:28:43: Actual avutil path /usr/lib/i686/cmov/libavutil.so.50.15.1
17:28:43: Actual avcodec path /usr/lib/i686/cmov/libavcodec.so.52.72.2
17:28:43: Actual avformat path /usr/lib/i686/cmov/libavformat.so.52.64.2
17:28:43: Importing symbols...
17:28:43: All symbols loaded successfully. Initializing the library.
17:28:43: Retrieving FFmpeg library version numbers:
17:28:43:    AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
17:28:43:    AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
17:28:43:    AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
17:28:43: FFmpeg libraries loaded successfully.

You probably have missing dependencies.
Try running:

sudo apt-get build-dep audacity

then to make a new clean build, go to the Audacity source directory and run:

sudo make uninstall
make distclean
./configure

Scroll up the terminal output and look for something like:

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

If you don’t have support for ALSA then you’ll have no audio.
Assuming that you have support for ALSA:

make
./audacity

If Audacity runs correctly then install with:

sudo make install

Thank you, Steve, for your prompt respsonse.

Failed at step one. This is my first attempt at building a project from source, so there’s every reason to believe I’m missing the blinding obvious.

sudo apt-get build-dep audacity


E: You must put some 'source' URIs in your sources.list

I enabled source code using synaptic, refreshed, giving on next attempt:

E: Unable to find a source package for audacity

which sort of makes sense as I’ved downloaded the source audacity-minsrc-2.0.0.tar and am running the configure from that tree.

for the exercise I proceeded with

sudo make uninstall
make distclean
./configure

getting the result:

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



Configuration summary:

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

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

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

You’re probably missing (at least) libasound2-dev

So we can get this right, could you open /etc/apt/sources.list in Gedit (or whatever your favourite text editor) and post the contents.

deb http://packages.linuxmint.com/ katya main upstream import romeo
deb-src http://packages.linuxmint.com/ katya main upstream import romeo #Added by software-properties
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free

# deb http://archive.getdeb.net/ubuntu natty-getdeb apps
# deb http://archive.getdeb.net/ubuntu natty-getdeb games

# wxWidgets/wxPython repository at apt.wxwidgets.org
# deb http://apt.wxwidgets.org/ natty-wx main
# deb-src http://apt.wxwidgets.org/ natty-wx main

steve, you nailed it:

You’re probably missing (at least) libasound2-dev

I installed the package with synaptic, and now ALSA is included in the configure,
and
devices are listed, and there is audio output. :slight_smile:

Thank you.

I presume that I am missing other dependencies as well, on my first attempt I only installed those dependencies required to get configure to complete, however I should be able to sort through that now you have provided the clue.

I’m not sure why “sudo apt-get build-dep audacity” didn’t work. You should not need to enable “Source Code” in your software sources.
Perhaps there was an Internet connection problem when you tried it.

This is the full list of packages that are installed by build-dep audacity in Ubuntu:

autoconf 
automake 
autotools-dev 
build-essential 
debhelper 
dpkg-dev 
g++
g++-4.6 
gettext 
html2text 
intltool-debian 
libasound2-dev 
libatk1.0-dev
libavcodec-dev 
libavcodec53 
libavformat-dev 
libavformat53 
libavutil-dev
libavutil51 
libcairo-script-interpreter2 
libcairo2-dev 
libdpkg-perl
libexpat1-dev 
libflac++-dev 
libflac++6 
libflac-dev 
libfontconfig1-dev
libfreetype6-dev 
libgdk-pixbuf2.0-dev 
libglib2.0-dev 
libgsm1 
libgtk2.0-dev
libice-dev 
libid3tag0 
libid3tag0-dev 
libjack-dev 
libjack0 
libmad0
libmad0-dev 
libmp3lame-dev 
libmp3lame0 
libogg-dev 
libpango1.0-dev
libpixman-1-dev 
libpng12-dev 
libportaudiocpp0 
libportsmf-dev 
libportsmf0
libpthread-stubs0 
libpthread-stubs0-dev 
libsamplerate0-dev
libschroedinger-1.0-0 
libsm-dev 
libsndfile1-dev 
libsoundtouch-dev
libsoundtouch0 
libstdc++6-4.6-dev 
libtimedate-perl 
libtwolame-dev
libtwolame0 
libunistring0 
libva1 
libvamp-hostsdk3 
libvamp-sdk2 
libvorbis-dev
libvpx0 
libwxbase2.8-0 
libwxbase2.8-dev 
libwxgtk2.8-0 
libwxgtk2.8-dev
libx11-dev 
libxau-dev 
libxcb-render0-dev 
libxcb-shm0-dev 
libxcb1-dev
libxcomposite-dev 
libxcursor-dev 
libxdamage-dev 
libxdmcp-dev 
libxext-dev
libxfixes-dev 
libxft-dev 
libxi-dev 
libxinerama-dev 
libxml2-utils
libxrandr-dev 
libxrender-dev 
m4 
po-debconf 
portaudio19-dev 
vamp-plugin-sdk
wx2.8-headers
x11proto-composite-dev
x11proto-core-dev
x11proto-damage-dev
x11proto-fixes-dev
x11proto-input-dev
x11proto-kb-dev
x11proto-randr-dev
x11proto-render-dev
x11proto-xext-dev
x11proto-xinerama-dev
xorg-sgml-doctools
xtrans-dev
zlib1g-dev

Thanks steve. I appreciate the time and effort you’ve put into solving my issue.
I consider the original reason for opening this thread as ‘solved’ (audacity 2.0.0 is now installed and working), and understand if you need to move on.

but… I’d like to understand why my set up isn’t working as it should. I’m sure it isn’t a network problem.

why “sudo apt-get build-dep audacity” didn’t work

out of interest, I went back into synaptic and in ‘settings ->repositories’ unchecked source code (and unstable packages)

jal@gnd:~/downloads/audacity/audacity-src-2.0.0$ wget http://archive.ubuntu.com/
--2012-04-23 20:53:34--  http://archive.ubuntu.com/
Resolving archive.ubuntu.com... 91.189.92.179, 91.189.92.180, 91.189.92.181, ...
Connecting to archive.ubuntu.com|91.189.92.179|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 671 [text/html]
Saving to: `index.html'

showed the network was in place, and

jal@gnd:~/downloads/audacity/audacity-src-2.0.0$ sudo apt-get build-dep audacity
[sudo] password for jal: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

revisit synaptic, setting ‘source code’ checkbox again and


jal@gnd:~/downloads/audacity/audacity-src-2.0.0$ wget http://archive.ubuntu.com/
--2012-04-23 21:09:23--  http://archive.ubuntu.com/
Resolving archive.ubuntu.com... 91.189.92.184, 91.189.92.169, 91.189.92.170, ...
Connecting to archive.ubuntu.com|91.189.92.184|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 671 [text/html]
Saving to: `index.html.1'

100%[======================================================================================>] 671         --.-K/s   in 0s      

2012-04-23 21:09:26 (30.3 MB/s) - `index.html.1' saved [671/671]

jal@gnd:~/downloads/audacity/audacity-src-2.0.0$ sudo apt-get build-dep audacity
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to find a source package for audacity

Question is, where is the source package for audacity (supposed to be)?

Recall that this is my first attempt at building from source. After googling a bit I thought to try

sudo apt-get install build-essential

result:

build-essential is already the newest version.

In Ubuntu I think Audacity is in what they refer to a “Universe”.
The Mint repositories are a little strange as they “borrow” so much from Ubuntu but replace other parts with their own patched and customised versions.
I know that “build-dep” does not work on all distros but I thought that it did work on Mint (I tried Mint for a while before switching to Debian Squeeze, but that was a while ago now.)
It’s not really critical anyway - You obviously have all of the necessary build tools installed (otherwise Audacity would not build at all). If yo do find that you’re missing any features, you’re welcome to give a shout and we can re-look at this. Enjoy Audacity :stuck_out_tongue:

In my Linux Mint 12 setup the build-dep command didn’t work until I added a deb-src line for every Linux Mint and Ubuntu repository to /etc/apt/sources.list. With Synaptic be sure to check not only the source code repository on the first tab but also the various source code repositories on the second tab (third party) where the Ubuntu repositories are listed. Check your settings with cat /etc/apt/sources.list