Fatal Error Alsa/asoundlib.h No Such File Or Directory
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of
Undefined Reference To `snd_pcm_close'
the site Help Center Detailed answers to any questions you alsa asoundlib.h not found ubuntu might have Meta Discuss the workings and policies of this site About Us Learn undefined reference to `snd_pcm_open' more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges
Install Libasound2-dev
Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it 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
Undefined Reference To `snd_pcm_stream_name'
to the top error while installling qt mobility tool kit up vote 1 down vote favorite 1 I am installing qt mobility tool kit but it shows an error message : 1.2.0/src/multimedia' make[2]: Warning: File Makefile' has modification time 1.1e+04 s in the future g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_SHARED -DQTM_PLUGIN_PATH=\"/home/aboobacker/Desktop/qt-mobility-opensource-src-1.2.0/install/plugins\" -DQT_MAKEDLL -DQT_BUILD_MULTIMEDIA_LIB -DHAS_ALSA -DQT_MULTIMEDIA_QMEDIAPLAYER -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../global -I. -Iaudio -Ivideo -Ieffects -I/usr/X11R6/include -I../../build/Debug/QtMultimediaKit/moc -o ../../build/Debug/QtMultimediaKit/qaudiodevicefactory.o audio/qaudiodevicefactory.cpp In file included from audio/qaudiodevicefactory.cpp:60:0: audio/qaudiodeviceinfo_alsa_p.h:57:28: fatal error: alsa/asoundlib.h: No such file or directory compilation terminated. make[2]: *** [../../build/Debug/QtMultimediaKit/qaudiodevicefactory.o] Error 1 make[2]: Leaving directory/home/aboobacker/Desktop/qt-mobility-opensource-src-1.2.0/src/multimedia' make[1]: * [sub-multimedia-make_default] Error 2 make[1]: Leaving directory `/home/aboobacker/Desktop/qt-mobility-opensource-src-1.2.0/src' make: * [sub-src-make_default-ordered] Error 2 aboobacker@aboobacker-desktop:~/Desktop/qt-mobility-opensource-src-1.2.0$ How to solve this? alsa qt share|improve this question edited Oct 7 '14 at 6:22 BЈовић 1
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 have a clue but the package maintainers thought of a different naming for the
Cannot Find
package and it's very different from what you suspect it is. But lament no more, for I just found a nifty 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 http://askubuntu.com/questions/93118/error-while-installling-qt-mobility-tool-kit your 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 tho
MCU Development Kits ARM Linux Development Boards Hackable Gadgets My Hardware How-Tos & Training http://www.cnx-software.com/2011/10/13/finding-the-package-that-contains-a-particular-file-in-ubuntu/ Materials Embedded Linux Development Technical Glossary AllWinner How-tos AMLogic How-tos Android How-tos Freescale i.MX How-tos Raspberry Pi How-tos Rockchip How-tos Contact Us Home > https://ubuntuforums.org/archive/index.php/t-1334089.html Linux, Programming > Finding the package that contains a particular file in Ubuntu Finding the package that contains a particular file in Ubuntu undefined reference October 13th, 2011 cnxsoft Leave a comment Go to comments Tweet It often happens that a file is missing during compilation and you get this kind of error: In file included from media/audio/linux/audio_manager_linux.cc:15:0: ./media/audio/linux/alsa_input.h:8:28: fatal error: alsa/asoundlib.h: No such file or directory compilation terminated. In file included undefined reference to from media/audio/linux/alsa_input.cc:5:0: ./media/audio/linux/alsa_input.h:8:28: fatal error: alsa/asoundlib.h: No such file or directory compilation terminated. That usually means a development package is missing. Sometime you can just guess the name of the package or you can use aptitude to find the file. There is also another (better) method in Ubuntu: apt-file utility allows you to find the package corresponding to a particular file. First install apt-file sudo apt-get install apt-file Them the first time, you need to download the files with the data for your system apt-file update Finally, you can use apt-file to find the package. For example with alsa/asoundlib.h apt-file search alsa/asoundlib.h libasound2-dev: /usr/include/alsa/asoundlib.h Tweet It often happens that a file is missing during compilation and you get this kind of error: In file included from media/audio/linux/audio_manager_linux.cc:15:0: ./media/audio/linux/alsa_input.h:8:28: fatal error: alsa/asoundlib.h: No such file... Related posts: Redirect all output
2009, 10:34 AMSo yeah, the title pretty much says it, I can't install wxcam on karmic. The package installer gives me the following error: Error: Dependency is not satisfiable: libmjpegtools0c2a (>= 1:1.8.0) Anyone have any ideas? RytronDecember 9th, 2009, 12:17 AMI too get this same message. Can anyone solve this? FerrettiJanuary 1st, 2010, 05:09 AMSorry for the late reply! I was stumbling upon these forums looking to find out what the problem was. I did, however, find a working version that will install on 9.10. Here is the direct link to the download: http://mirrors.dotsrc.org/getdeb/ubuntu/jaunty/wx/wxcam_1.0.4-1~getdeb1_i386.deb RytronJanuary 1st, 2010, 11:57 AMSorry for the late reply! I was stumbling upon these forums looking to find out what the problem was. I did, however, find a working version that will install on 9.10. Here is the direct link to the download: http://mirrors.dotsrc.org/getdeb/ubuntu/jaunty/wx/wxcam_1.0.4-1~getdeb1_i386.deb Thank you very much Ferretti. All sorted! :) FerrettiJanuary 1st, 2010, 04:06 PMNo problem! Glad I could help. Happy New Year! redDEADresolveJanuary 4th, 2010, 02:42 AMhttp://old.getdeb.net/release/4251 wxcam 64bit .deb from getdeb.net Doc_JudeJanuary 4th, 2010, 10:51 AMSorry for the late reply! I was stumbling upon these forums looking to find out what the problem was. I did, however, find a working version that will install on 9.10. Here is the direct link to the download: http://mirrors.dotsrc.org/getdeb/ubuntu/jaunty/wx/wxcam_1.0.4-1~getdeb1_i386.deb (http://mirrors.dotsrc.org/getdeb/ubuntu/jaunty/wx/wxcam_1.0.4-1%7Egetdeb1_i386.deb) the video is smooth and gorgeous compared to Cheese.... but no audio. at System>Sound>Input it's set to "0804 Analog Mono" which I believe is the webcam (Logitech Webcam C250, formerly worked in both Cheese and Skype just find) no2498January 20th, 2010, 04:04 AMits odd but look at the colors green on left red on the right 1.0.2 works right on 804 im on 910 on this computer and an going nuts trying to fix red green not green red if you turn the cam pic color comes up right but pic is wrong btw i can adjust the settings in cheese but not in wxcam best i can say is rgb is backwards in wxcam 104 and the fps is slow only 5 at best DaymondJune 16th, 2011, 07:57 PMI am having a problem with installation of wxcam, but in Natty Warhal. I receive the following error when running the make c