undefined reference to `snd_pcm_open'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
 I'm trying to cross compile pcm_min.c in test directory of alsa lib, but I'm getting lot of linking errors.
 
 
/tmp/cciOZb0m.o: In function `main':
pcm_min.c:(.text+0x6c): undefined reference to `snd_pcm_open'
pcm_min.c:(.text+0x88): undefined reference to `snd_strerror'
pcm_min.c:(.text+0xd4): undefined reference to `snd_pcm_set_params'
pcm_min.c:(.text+0xf0): undefined reference to `snd_strerror'
pcm_min.c:(.text+0x128): undefined reference to `snd_pcm_writei'
pcm_min.c:(.text+0x14c): undefined reference to `snd_pcm_recover'
pcm_min.c:(.text+0x168): undefined reference to `snd_strerror'
pcm_min.c:(.text+0x1d0): undefined reference to `snd_pcm_close'
 
Steps I did
--------------
 
Configured alsa lib to generate libasound
./configure --host=arm CC=armv7r-uclinux-uclibc-gcc
make
 
This generated
libasound.a and libpcm.a
in folders src/.lib and src/pcm/.lib
 
 
Now I tried to compile pcm_min.c in test folder
I tried following but all failed
armv7r-uclinux-uclibc-gcc -static -I ../include -L ../src/.libs -lasound  pcm_min.c
armv7r-uclinux-uclibc-gcc -static -I ../include -L ../src/pcm/.libs -lpcm  pcm_min.c
armv7r-uclinux-uclibc-gcc -static -I ../include -L ../src/.libs -lasound -L ../src/pcm/.libs -lpcm pcm_min.c
 
Please help.
 
Best Regards,
Ajay
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux