mercredi 29 juin 2016

PJSIP linking error on Ubuntu 12.04 [on hold]


$ make
...
/Develop/3rdParty/pjproject-2.5.1/pjmedia/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(alsa_dev.o): In function `alsa_factory_refresh':'
alsa_dev.c:(.text+0x28e): undefined reference to `snd_device_name_hint'
alsa_dev.c:(.text+0x2b0): undefined reference to `snd_lib_enter code hereerror_set_handler'
alsa_dev.c:(.text+0x2de): undefined reference to `snd_device_name_get_hint'
alsa_dev.c:(.text+0x322): undefined reference to `snd_lib_error_set_handler'
alsa_dev.c:(.text+0x32e): undefined reference to `snd_device_name_free_hint'
alsa_dev.c:(.text+0x384): undefined reference to `snd_pcm_open'
alsa_dev.c:(.text+0x396): undefined reference to `snd_pcm_close'
alsa_dev.c:(.text+0x3b6): undefined reference to `snd_pcm_open'
alsa_dev.c:(.text+0x3d0): undefined reference to `snd_pcm_close'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/pjmedia-test-i686-pc-linux-gnu] Error 1
make[2]: Leaving directory `/Develop/3rdParty/pjproject-2.5.1/pjmedia/build'
make[1]: *** [pjmedia-test-i686-pc-linux-gnu] Error 2
make[1]: Leaving directory `/Develop/3rdParty/pjproject-2.5.1/pjmedia/build'
make: *** [all] Error 1
$

First it was complaining about missing header asoundlib.h, but the error disappeared after installing the libasound2-dev package. Now I see a linking error caused by alsa_dev.c.

Can you please help?

Thank you.

Regards, Serge


Aucun commentaire:

Enregistrer un commentaire