[alsa-devel] build alsa-tools using static alsa lib? linux2.6.28+marvell littleton
alsa-develHello everybody: i couldnot build alsa-tools, see as follows, could anybody help me, thanks!
question : a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools$ make arm-linux-gcc -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//src/preview-kit/linux/include -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/lib -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/target/rootfs/lib -g -Waggregate-return -Wmissing-noreturn -W -Wall -mcpu=iwmmxt -mtune=iwmmxt -mabi=aapcs-linux -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -static -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -lasound control.c -o control control.c: In function 'main': control.c:72: warning: function call has aggregate value /tmp/ccIFwS0o.o: In function `main': /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:15: undefined reference to `snd_ctl_card_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:15: undefined reference to `snd_ctl_card_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:16: undefined reference to `snd_pcm_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:16: undefined reference to `snd_pcm_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:17: undefined reference to `snd_rawmidi_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:17: undefined reference to `snd_rawmidi_info_sizeof' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:21: undefined reference to `snd_card_next' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:22: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:28: undefined reference to `snd_ctl_open' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:29: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:32: undefined reference to `snd_ctl_card_info' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:33: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:37: undefined reference to `snd_ctl_card_info_get_card' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:38: undefined reference to `snd_ctl_card_info_get_id' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:39: undefined reference to `snd_ctl_card_info_get_driver' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:40: undefined reference to `snd_ctl_card_info_get_name' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:41: undefined reference to `snd_ctl_card_info_get_longname' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:42: undefined reference to `snd_ctl_card_info_get_mixername' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:43: undefined reference to `snd_ctl_card_info_get_components' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:47: undefined reference to `snd_ctl_pcm_next_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:48: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:53: undefined reference to `snd_pcm_info_set_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:54: undefined reference to `snd_pcm_info_set_subdevice' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:55: undefined reference to `snd_pcm_info_set_stream' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:56: undefined reference to `snd_ctl_pcm_info' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:57: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:61: undefined reference to `snd_pcm_info_get_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:62: undefined reference to `snd_pcm_info_get_subdevice' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:63: undefined reference to `snd_pcm_info_get_stream' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:64: undefined reference to `snd_pcm_info_get_card' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:65: undefined reference to `snd_pcm_info_get_id' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:66: undefined reference to `snd_pcm_info_get_name' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:67: undefined reference to `snd_pcm_info_get_subdevice_name' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:68: undefined reference to `snd_pcm_info_get_class' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:69: undefined reference to `snd_pcm_info_get_subclass' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:70: undefined reference to `snd_pcm_info_get_subdevices_count' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:71: undefined reference to `snd_pcm_info_get_subdevices_avail' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:72: undefined reference to `snd_pcm_info_get_sync' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:77: undefined reference to `snd_ctl_rawmidi_next_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:78: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:83: undefined reference to `snd_rawmidi_info_set_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:84: undefined reference to `snd_rawmidi_info_set_subdevice' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:85: undefined reference to `snd_rawmidi_info_set_stream' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:86: undefined reference to `snd_ctl_rawmidi_info' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:87: undefined reference to `snd_strerror' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:91: undefined reference to `snd_rawmidi_info_get_device' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:92: undefined reference to `snd_rawmidi_info_get_subdevice' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:93: undefined reference to `snd_rawmidi_info_get_stream' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:94: undefined reference to `snd_rawmidi_info_get_card' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:95: undefined reference to `snd_rawmidi_info_get_flags' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:96: undefined reference to `snd_rawmidi_info_get_id' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:97: undefined reference to `snd_rawmidi_info_get_name' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:98: undefined reference to `snd_rawmidi_info_get_subdevice_name' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:99: undefined reference to `snd_rawmidi_info_get_subdevices_count' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:100: undefined reference to `snd_rawmidi_info_get_subdevices_avail' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:102: undefined reference to `snd_ctl_close' /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:105: undefined reference to `snd_config_update_free_global' collect2: ld returned 1 exit status make: *** [control] 错误 1 a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools$ conditions: 1.Had added one line in Makefile of alsa-tools directory: a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools$ vim Makefile LDFLAGS=-static 2.Had modified Makefile of directory: a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-lib$ vim Makefile ./configure --prefix=$(PXA_HOST_DIR) --enable-static=yes 3.after make alsa-lib, generated libasound.a a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-lib$ make a@a-desktop:~/NMS/kernel/2009WW21_build/rel/host/lib$ ls libasound.a and so on. Best regards! Wangjian
--------------------------------------------------------------------------------------------------- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. ---------------------------------------------------------------------------------------------------
On Thu, Dec 17, 2009 at 10:55:14AM +0800, 王剑 wrote:
alsa-develHello everybody:
i couldnot build alsa-tools, see as follows, could anybody help me, thanks!
question :
a@a-desktop:~/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools$ make arm-linux-gcc -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//src/preview-kit/linux/include -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/lib -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/target/rootfs/lib -g -Waggregate-return -Wmissing-noreturn -W -Wall -mcpu=iwmmxt -mtune=iwmmxt -mabi=aapcs-linux -I/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -static -L/home/a/NMS/kernel/2009WW21/pxalinux/../../2009WW21_build//rel/host/include -lasound control.c -o control control.c: In function 'main': control.c:72: warning: function call has aggregate value /tmp/ccIFwS0o.o: In function `main': /home/a/NMS/kernel/2009WW21_build/src/preview-kit/alsa-tools/control.c:15: undefined reference to `snd_ctl_card_info_sizeof'
Which version is that? I suggest using Buildroot or OE to cross-compile things unless you know what you're doing and have a good reason not to do so :)
See
http://buildroot.uclibc.org/ http://wiki.openembedded.net/index.php/Main_Page
Daniel
participants (2)
-
Daniel Mack
-
王剑