[Asterisk-video] app_transcoder.so: undefined symbol: avcodec_init

Klaus Darilion klaus.mailinglists at pernau.at
Thu Sep 6 11:59:02 CDT 2007


this is what I get:

ldd /usr/lib/asterisk/modules/app_transcoder.so
         libavcodec.so.51 => /usr/local/lib/libavcodec.so.51 (0xb7a68000)
         libc.so.6 => /lib/tls/libc.so.6 (0xb7932000)
         libavutil.so.49 => /usr/local/lib/libavutil.so.49 (0xb7928000)
         libm.so.6 => /lib/tls/libm.so.6 (0xb7906000)
         libz.so.1 => /usr/lib/libz.so.1 (0xb78f4000)
         libamrnb.so.2 => /usr/local/lib/libamrnb.so.2 (0xb78a8000)
         libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7881000)
         libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb7782000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
         libogg.so.0 => /usr/lib/libogg.so.0 (0xb777d000)


maybe you do not link correctly?

I have this entry in my apps/Makefile:

app_transcoder.so : app_transcoder.o
         $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lavcodec


^^^^
note: this must be a [TAB], no spaces

klaus

Rene van Weert schrieb:
> Dear Klaus,
>  
> ldd gives me:
> asterisk-dev:~# ldd /usr/lib/asterisk/modules/app_transcoder.so
>         linux-gate.so.1 =>  (0xffffe000)
>         libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7f3c000)
>         libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7df4000)
>         /lib/ld-linux.so.2 (0x80000000)
>  
> However, when starting asterisk I get:
> asterisk: symbol lookup error: 
> /usr/lib/asterisk/modules/app_transcoder.so: undefined symbol: avcodec_init
>  
> Cheers,
> René
> 
>  
> On 9/6/07, *Klaus Darilion* <klaus.mailinglists at pernau.at 
> <mailto:klaus.mailinglists at pernau.at>> wrote:
> 
>     make sure app_transcoder can find the library:
> 
>     check with:
>     ldd /usr/lib/asterisk/modules/app_transcoder.so
> 
>     usually you will avcodec in /usr/local/lib
> 
>     thus make sure to add /usr/local/lib to your library path in
>     /etc/ld.so.conf
> 
>     after that, execute "ldconfig"
> 
>     klaus
> 
>     Rene van Weert schrieb:
>      > Hi Laurent,
>      >
>      > I have the same problem now, what was your solution?
>      >
>      > Kind regards,
>      >
>      > René
>      >
>      >
>      > On 7/9/07, *laurent schweizer* < laurent.schweizer at gmail.com
>     <mailto:laurent.schweizer at gmail.com>
>      > <mailto:laurent.schweizer at gmail.com
>     <mailto:laurent.schweizer at gmail.com>>> wrote:
>      >
>      >     I have found the solutions,
>      >
>      >     Thanks
>      >
>      >
>      >     2007/7/9, dwita loveme <dwitaloveme at yahoo.com
>     <mailto:dwitaloveme at yahoo.com>
>      >     <mailto:dwitaloveme at yahoo.com <mailto:dwitaloveme at yahoo.com>>>:
>      >
>      >         hi,
>      >         is ffmpeg installed correctly ?
>      >         i got the same problem in the past.
>      >
>      >         :)
>      >         dwi
>      >
>      >
>      >         */laurent schweizer < laurent.schweizer at gmail.com
>     <mailto:laurent.schweizer at gmail.com>
>      >         <mailto:laurent.schweizer at gmail.com
>     <mailto:laurent.schweizer at gmail.com>>>/* wrote:
>      >
>      >             Hello,
>      >
>      >             I try to start asterisk 1.4.6 with the app_transcoder
>     module
>      >             but I have this error.
>      >
>      >             Thanks
>      >
>      >             codec_alaw.so => (A-law Coder/Decoder)
>      >               == Registered custom function MATH
>      >             func_math.so => (Mathematical dialplan function)
>      >               == Registered application 'PrivacyManager'
>      >             app_privacy.so => (Require phone number to be
>     entered, if no
>      >             CallerID sent)
>      >               == Registered application 'DumpChan'
>      >             app_dumpchan.so => (Dump Info About The Calling Channel)
>      >               == Registered application 'rtsp'
>      >             app_rtsp.so => (RTSP applications)
>      >               == Registered application 'Milliwatt'
>      >             app_milliwatt.so => (Digital Milliwatt (mu-law) Test
>      >             Application)
>      >             asterisk: symbol lookup error:
>      >             /usr/lib/asterisk/modules/app_transcoder.so: undefined
>      >             symbol: avcodec_init
>      >
>      >             _______________________________________________
>      >             --Bandwidth and Colocation Provided by
>      >             http://www.api-digital.com--
>     <http://www.api-digital.com--/ <http://www.api-digital.com--/>>
>      >
>      >             asterisk-video mailing list
>      >             To UNSUBSCRIBE or update options visit:
>      >            
>     http://lists.digium.com/mailman/listinfo/asterisk-video
>     <http://lists.digium.com/mailman/listinfo/asterisk-video>
>      >             <http://lists.digium.com/mailman/listinfo/asterisk-video>
>      >
>      >
>      >        
>     ------------------------------------------------------------------------
> 
>      >         Yahoo! oneSearch: Finally, mobile search that gives answers
>      >        
>     <http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>     <http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC>>,
>      >         not web links.
>      >
>      >
>      >         _______________________________________________
>      >         --Bandwidth and Colocation Provided by
>      >         http://www.api-digital.com-- <http://www.api-digital.com--/>
>      >
>      >         asterisk-video mailing list
>      >         To UNSUBSCRIBE or update options visit:
>      >           http://lists.digium.com/mailman/listinfo/asterisk-video
>      >
>      >
>      >
>      >     _______________________________________________
>      >     --Bandwidth and Colocation Provided by
>     http://www.api-digital.com--
>      >     <http://www.api-digital.com--/>
>      >
>      >     asterisk-video mailing list
>      >     To UNSUBSCRIBE or update options visit:
>      >       http://lists.digium.com/mailman/listinfo/asterisk-video
>     <http://lists.digium.com/mailman/listinfo/asterisk-video>
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > --Bandwidth and Colocation Provided by http://www.api-digital.com--
>      >
>      > asterisk-video mailing list
>      > To UNSUBSCRIBE or update options visit:
>      >     http://lists.digium.com/mailman/listinfo/asterisk-video
> 
>     _______________________________________________
>     --Bandwidth and Colocation Provided by http://www.api-digital.com--
>     <http://www.api-digital.com-->
> 
>     asterisk-video mailing list
>     To UNSUBSCRIBE or update options visit:
>       http://lists.digium.com/mailman/listinfo/asterisk-video
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-video mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-video



More information about the asterisk-video mailing list