root@am3517-evm:/home/mc_here/bin# uname -a
Linux am3517-evm 2.6.37 #1 Sun Aug 28 08:36:02 IDT 2011 armv7l unknown
Скомпилировал и установил туда Linphone с опцией "--enable-alsa". При его запуске получаю:
text
root@am3517-evm:/usr/share/alsa# /home/linphone/install/usr/local/bin/linphonec
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard !
Ready
Warning: video is disabled in linphonec, use -V or -C or -D to enable.
linphonec>
Команда
text
soundcard list
в Linphone выводит пустой список. Не видит звуковой карты.
Но aplay и arecord работают нормально.
text
root@am3517-evm:/usr/share/alsa# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: am3517evm [am3517evm], device 0: AIC23 tlv320aic23-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@am3517-evm:/usr/share/alsa# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
MPlayer проигрывает mp3 файлы.
Alsamixer также удачно работает и позволяет регулировать настройки.
Каталог /dev/dsp отсутствует. В наличии имеется /dev/snd
strace я скомпилил и запустил на ките. При запуске "/home/strace/install/usr/local/bin/strace /home/linphone/install/usr/local/bin/linphonec" получаю бесконечный поток сообщений
какие-то ошмётки... настораживает, что udevd нет...
но проще посмотреть, запущен ли он... ps aux | grep udev
godor2008 написал:
strace я скомпилил и запустил на ките. При запуске "/home/strace/install/usr/local/bin/strace /home/linphone/install/usr/local/bin/linphonec" получаю бесконечный поток сообщений
нас не всё интересует: strace -e open /home/linphone/install/usr/local/bin/linphonec
root@am3517-evm:~# /home/strace/install/usr/local/bin/strace -e open /home/linphone/install/usr/local/bin/linphonec
open("/home/linphone/install/usr/local/lib/tls/v7l/fast-mult/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/v7l/fast-mult/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/v7l/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/v7l/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/fast-mult/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/fast-mult/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/tls/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/v7l/fast-mult/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/v7l/fast-mult/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/v7l/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/v7l/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/fast-mult/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/fast-mult/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/half/liblinphone.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/linphone/install/usr/local/lib/liblinphone.so.4", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libreadline.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libncurses.so.5", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libmediastreamer.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libortp.so.8", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libspeex.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/run/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/fast-mult/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/fast-mult/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/v7l/fast-mult/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/v7l/fast-mult/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/v7l/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/v7l/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libeXosip2.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libosip2.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libSDL-1.2.so.0", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libspeexdsp.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libogg.so.0", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libosipparser2.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/fast-mult/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/fast-mult/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/fast-mult/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/fast-mult/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/fast-mult/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/fast-mult/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/fast-mult/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/fast-mult/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/half/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/librt.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY) = 3
open("/home/linphone/install/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", O_RDONLY) = 3
open("/usr/local/lib/mediastreamer/plugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/root/.linphonerc", O_RDONLY) = 3
[b]open("/usr/local/lib/liblinphone/plugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard ![/b]
Ready
Warning: video is disabled in linphonec, use -V or -C or -D to enable.
open("/home/root/.linphonec_history", O_RDONLY|O_LARGEFILE) = 9
open("/etc/inputrc", O_RDONLY|O_LARGEFILE) = 9
linphonec> open("/dev/urandom", O_RDONLY) = 9
open("/home/root/.linphonerc", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 9
Я тут не вижу попыток обращения к звуковой карте open("/usr/local/lib/liblinphone/plugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard !
ortp-error-Could not find a suitable soundcard !
я тоже...
странно, что он фейлится при открытии библиотек... а, не... он просто их ищет...
а ещё, что он не тыкается в поисках asound...
он вообще с ним слинкован? ldd /home/linphone/install/usr/local/bin/linphonec
Очень странно, ибо опцию "--enable-alsa" я включил на хостовой машине, где компилил. Там же стоит пакет libasound-dev и есть папка с header файлами alsa
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
Да, но по адресу /usr/include/alsa есть исходники. У меня в системе установлен пакет liasound-dev
Но в файлах конфигурации я не нашел возможности указания где искать исходники.
В linphone/mediastreamer2/configure.sh есть такой текст:
text
if test "$alsa" = "true"; then
for ac_header in alsa/asoundlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
cat >>confdefs.h <<_ACEOF
Пробывал менять адрес - не помогает
Также в linphone/mediastreamer2/alsa.c есть строка
godor2008, надо собрать alsa-lib аналогично другим зависимостям и добавить соответствующие параметры в строку конфигурации...
ещё лучше, если вы отыщете, какие исходники использовались в вашем арме, возьмёте оттуда хедеры, а саму библиотеку с вашей коробочки...
ЗЫ: по-хорошему весь тулчейн для сборки должен быть в отдельном chroot'е и он не должен использовать ни какие хедеры или библиотеки из основной системы.
Все равно не находит звуковые исходники. А опции все убирать нельзя, он тогда не видит кучи скомпиленных библиотек
да... сглупил... префикс только при install'е значение имеет...
ещё как вариант тотальной замены:
export LDFLAGS="-L$INSTALLDIR/usr/local/lib"
export CFLAGS="-I$INSTALLDIR/usr/local/include"