Error Alsa/asoundlib.h No Such File Or Directory Ubuntu
Contents |
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct undefined reference to `snd_pcm_close' Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu undefined reference to `snd_pcm_open' Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8:
Undefined Reference To `snd_pcm_stream_name'
Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk
Alsa/asoundlib.h Not Found
Missing
reached that point where you copy code from a tutorial but it doesn't compile because your system is missing an include file. And you don't have a clue of where to look for it, or maybe you
Alsa-lib Ubuntu
have a clue but the package maintainers thought of a different naming for the snd_pcm_hw_params_any package and it's very different from what you suspect it is. But lament no more, for I just found a nifty cannot find utility for Debian based systems such as Ubuntu that is proving already very useful: apt-file. And I wonder how could I survive without it before. It's very simple to use: enter apt-file search the_missing_include.h in your https://ubuntuforums.org/showthread.php?t=1603228 favourite terminal session, and it will let you know which package(s) contain that cheeky .h. For example, I was trying to compile a basic sample snippet for testing ALSA, and it has an #include
libasound2-dev: /usr/include/alsa/asoundlib.h So that's it, asoundlib.h is in the package libasound2-dev. Of course, you can install apt-file with apt-get or with synaptic package manager, as you wish. This is apt-cool! 😀 If you're messing playing around with some code, you probably have reached that point where you copy code from a tutorial but it doesn't compile because your system is missing... Post navigation ← The irony of spam How to recruit curious people, the automattic way → 5 thoughts on “What package does this file belong to?” D3f0 says: 20090108 at 11:13 am apt-file does not only search in your installed packages, but in you whole package cache, thus it may take a long time specially if you've enabled extra sources and/or added some crowded ppas (Personal Package Archives). In some occasions you've alreay have the missing file, but, as you said, don't know where it's laying. dpkg can help in those situations, s
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://raspberrypi.stackexchange.com/questions/15018/sound-recording-program-using-nano and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Raspberry Pi Questions Tags Users Badges Unanswered Ask Question _ Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it undefined reference only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Sound recording program using Nano up vote 2 down vote favorite I want to make a sound recording program such as this on my RPI machine with several modifications. The problem undefined reference to is that I get the fatal error message "alsa/asoundlib.h : No such file or directory". I have Debian on my RPI /* This example reads from the default PCM device and writes to standard output for 5 seconds of data. */ /* Use the newer ALSA API */ #define ALSA_PCM_NEW_HW_PARAMS_API #include