This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

arm-linux-gnueabihf/bin/ld: cannot find -lasound

Hi , We are using mpg123 cross compilation --toolchain : arm-linux-gnueabihf --  for AM335x  

command : configure:

./configure CC=arm-linux-gnueabihf-gcc --host=x86_64 --target=arm-linux-gnueabihf- --prefix=/home/vk29835/Audio/mpg123/ --with-default-audio=alsa --with-cpu=neon

then make. -- while doing make : saying -lasound not found -----

/bin/bash ../libtool --tag=CC --mode=link arm-linux-gnueabihf-gcc -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -g -O2 -o mpg123 audio.o buffer.o common.o compat.o control_generic.o equalizer.o getlopt.o httpget.o resolver.o genre.o mpg123.o metaprint.o local.o playlist.o streamdump.o term.o wav.o xfermem.o libmpg123/libmpg123.la legacy_module.o output/alsa.o -lasound -lm
libtool: link: arm-linux-gnueabihf-gcc -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -g -O2 -o mpg123 audio.o buffer.o common.o compat.o control_generic.o equalizer.o getlopt.o httpget.o resolver.o genre.o mpg123.o metaprint.o local.o playlist.o streamdump.o term.o wav.o xfermem.o legacy_module.o output/alsa.o libmpg123/.libs/libmpg123.a -lasound -lm
/home/vk29835/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lasound
collect2: error: ld returned 1 exit status
make[3]: *** [mpg123] Error 1
make[3]: Leaving directory `/home/vk29835/mpg123-1.22.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vk29835/mpg123-1.22.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/vk29835/mpg123-1.22.2/src'
make: *** [all-recursive] Error 1
vk29835@vk29835-HP-Compaq-6000-Pro-MT-PC:~/mpg123-1.22.2$

here we can giv CFLAGS or LDFLAGS -- but not able to give  which path --libasound --  it is saying "/arm-linux-gnueabihf/bin/ld  "  ld in the toolchain ---lasound unable to found -- 

NOT ONLY THIS -- same error came for the user-space audio application -- in the cross compilation with like:

example : arm-linux-gnueabihf-gcc  audio-app.c -o test-audio     : for this also we got "-lasound not found"

I think toolchain is not having -- libasound -- 

Please any one help us in this issue.

regards,

Viswanath K