Cross-compilation of alsa-library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cross-compilation of alsa-library

1,416 Views
purvi_billore1
Contributor III

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

Labels (4)
1 Reply

1,186 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Purvi,

You have to install a package, maybe sudo apt-get install libglib2.0-0 on the i.mx6.

Regards