We are trying to cross-compile alsa arecord program, when we are compiling it normally it is compiled for laptop by this command "gcc -o program program.c -lasound"
and executed but when we are cross-compiling by this command
"arm-linux-gnuabihf-gcc program.c -o program.out -lasound"
for iMX6 embedded linux platform it is showing error.
/usr/lib/gcc-cross/arm-linux-gnuabihf/4.8/../../../../arm-linux-gnuabihf/bin/ld: cannot find -lasound
collect2: error: ld returned 1 exit status
alsa-utils imx linux cross compile; imx6
Thanks and Regards,