Hello,
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,
Purvi
Hello Purvi,
You have to install a package, maybe sudo apt-get install libglib2.0-0 on the i.mx6.
Regards