Find the answer to your Linux question:
Results 1 to 4 of 4
Hi. I am running Mandrake 10.1 kernel 2.6.9 and I have a problem with alsa: When I compile MPlayer it tells me that asoundlib.h is missing and therefore Mplayer wouldn't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    2

    Missing asoundlib.h


    Hi.

    I am running Mandrake 10.1 kernel 2.6.9 and I have a problem with alsa:
    When I compile MPlayer it tells me that asoundlib.h is missing and therefore Mplayer wouldn't include alsa-support.

    Alsa is installed and is "working" - this works: aplay -Dplug:spdif test.wav

    I must be missing something.

    Thanks.

    /peter

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Mplayer is looking for a 'header' file, which is just part of a C programme.

    I really hate Mplayer sometimes, but I won't bog you down with that Try opening a console - These are gonna be fairly generic instructions:

    su
    yourpassword
    find / -name asoundlib.h -print

    That'll tell you if this file *is* on your system. As I said on another thread, in my experience pre-compiled binaries often look for files in fixed locations. So Mplayer might expect that file to be somewhere different.

    If you do have the header file, it'll belong in a directory called /includes somewhere on your system. To jump ahead (a lot) compiling mplayer from source can be painful, but you shouldn't need to do that. You might need to move your header file with the mv command. Try man mv in a console.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    2
    Thanks for your reply.

    I figured it out:
    urpmi alsa-lib-devel

    Then mplayer compiles with alsa-support.

    /Peter

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Well done - red hot!
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •