linux – mplayer make error with ” fatal error: alsa/asoundlib.h: No such file or directory”

When I try to make the mplayer on the ubuntu, the following error is occurred.

 libao2/ao_alsa.c:38:10: fatal error: alsa/asoundlib.h: No such file or directory
 #include 

I have configured the mplayer source like the below configuration options.

./configure  --enable-cross-compile --cc=arm-linux-gnueabihf-gcc --host-cc=gcc --target=arm-linux-gnueabihf --prefix=/usr/local --enable-alsa

And the is in the /usr/include/alsa/asoundlib.h on my linux system.
(by apt-get install libasound2-dev)

What should I check to build normally?

Read more here: Source link