jakesays-old / webrtc2sip

Automatically exported from code.google.com/p/webrtc2sip
0 stars 0 forks source link

webrtc2sip fails to build: undefined references #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build Doubango with libyuv
2. Build webrtc2sip
3.

What is the expected output? What do you see instead?
Expected output: webrtc2sip builds cleanly
What do you see instead:

g++  -g -O2   -o webrtc2sip webrtc2sip-mp_engine.o webrtc2sip-mp_mediaproxy.o 
webrtc2sip-mp_mutex.o webrtc2sip-mp_object.o webrtc2sip-mp_peer.o 
webrtc2sip-mp_proxyplugin.o webrtc2sip-mp_proxyplugin_consumer_audio.o 
webrtc2sip-mp_proxyplugin_consumer_video.o webrtc2sip-mp_proxyplugin_mgr.o 
webrtc2sip-mp_proxyplugin_producer_audio.o 
webrtc2sip-mp_proxyplugin_producer_video.o webrtc2sip-mp_session.o 
webrtc2sip-mp_session_av.o webrtc2sip-mp_wrap.o webrtc2sip-ActionConfig.o 
webrtc2sip-AudioResampler.o webrtc2sip-DDebug.o webrtc2sip-MediaContent.o 
webrtc2sip-MediaSessionMgr.o webrtc2sip-Msrp.o webrtc2sip-ProxyConsumer.o 
webrtc2sip-ProxyPluginMgr.o webrtc2sip-ProxyProducer.o webrtc2sip-SafeObject.o 
webrtc2sip-SipCallback.o webrtc2sip-SipEvent.o webrtc2sip-SipMessage.o 
webrtc2sip-SipSession.o webrtc2sip-SipStack.o webrtc2sip-SipUri.o 
webrtc2sip-SMSEncoder.o webrtc2sip-Xcap.o -L/usr/local/lib -L/usr/lib 
-L/usr/include -ltinySAK -ltinySIP -ltinyNET -ltinyDAV -ltinyMEDIA -ltinyHTTP 
-ltinyXCAP -ltinySMS -ltinyMSRP -ltinySDP -ltinyRTP -lxml2 -lpthread 
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_CreateDecompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_destroy_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_read_raw_data'
/usr/local/lib/libtinyDAV.so: undefined reference to `chromium_jpeg_read_header'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_start_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_abort_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_resync_to_restart'
/usr/local/lib/libtinyDAV.so: undefined reference to `chromium_jpeg_std_error'
collect2: ld returned 1 exit status
make[1]: *** [webrtc2sip] Error 1
make[1]: Leaving directory `/usr/local/src/webrtc2sip'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Doubango and webrtc2sip from svn on Ubuntu 12.04 x86_64.

Please provide any additional information below.
These references seem to be part of a patched libjpeg-turbo source. So I 
downloaded libjpeg-turbo rev 856 from svn (the same one Google uses for its 
WebRTC project), patched it with google.patch that you can find in the webrtc 
source (trunk/third_party/libjpeg_turbo/google.patch) and build libjpeg-turbo. 
Then I build Doubango and webrtc2sip again to no avail. I'm no coder so I could 
be looking in the complete wrong direction.

Original issue reported on code.google.com by autosta...@gmail.com on 6 Dec 2012 at 12:51

GoogleCodeExporter commented 9 years ago
we're working on this issue but please note that libyuv is not used in 
webrtc2sip. For now please remove "--with-yuv" when configuring for build.

Original comment by boss...@yahoo.fr on 6 Dec 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Thanks for the info. And I'll be waiting impatiently until libyuv can be used 
because at the moment I'm getting video scaling errors when trying to call with 
a SIP client to sipml5:

MSG: Failed to create video converter
***ERROR: function: "_tdav_session_video_decode()" 
file: "src/video/tdav_session_video.c" 
line: "656"

# vim /usr/local/src/doubango/tinyDAV/src/video/tdav_session_video.c +656

if((CONSUMER_CHROMA_MISMATCH || CONSUMER_DISPLAY_N_CODEC_MISMATCH || 
CONSUMER_IN_N_DISPLAY_MISMATCH || CONSUMER_DISPLAY_N_CONVERTER_MISMATCH || 
DECODED_NEED_FLIP)){

                        // Create video converter if not already done
                        if(!self->conv.fromYUV420 || CONSUMER_DISPLAY_N_CONVERTER_MISMATCH){
                                TSK_OBJECT_SAFE_FREE(self->conv.fromYUV420);

                                // create converter
                                if(!(self->conv.fromYUV420 = tmedia_converter_video_create(TMEDIA_CODEC_VIDEO(self->decoder.codec)->in.width, TMEDIA_CODEC_VIDEO(self->decoder.codec)->in.height, TMEDIA_CODEC_VIDEO(self->decoder.codec)->in.chroma, base->consumer->video.display.width, base->consumer->video.display.height,
                                        base->consumer->video.display.chroma))){
                                        TSK_DEBUG_ERROR("Failed to create video converter");
                                        ret = -3;
                                        goto bail;
                                }
                        }
                }

So because of some mismatch between my SIP client (Linphone on Android) and 
sipml5 something related to libyuv gets called to do conversion. This is why I 
wanted to compile Doubango with libyuv in the first place, so I can test 
videocalls between sipml5 and any other SIP client that supports video.

Regards,

Jeremy

Original comment by autosta...@gmail.com on 7 Dec 2012 at 12:13

GoogleCodeExporter commented 9 years ago
This issue can be closed. The scaling errors seem to be harmless. Everything 
seems to work fine without libyuv.

Original comment by autosta...@gmail.com on 17 Dec 2012 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 5 Jan 2013 at 3:21

GoogleCodeExporter commented 9 years ago
I happen to be getting the exact same error when i have the Media-coder turned 
on. But when it is off, im getting two way audio and video but the video on one 
end (chrome 24.0.1312.57 m) is frozen immediately after the call is initialized 
and the video on the other end (IMSDroid) appears to be flawless but soon 
distorts. Any possible solutions for this? 

Additional info:
-> I am using asterisk. 
-> The codecs used are alaw and vp8.
-> RTCWeb Breaker is enabled.

Please do let me know if i could provide any other kind of information.
Thanks.

Original comment by anudroid...@gmail.com on 19 Feb 2013 at 12:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 I am also getting below error, not getting away when I remove remove "--with-yuv" as well. Please help me....
g++  -g -O2  -lm -ldl -ldl -o webrtc2sip webrtc2sip-mp_c2c.o 
webrtc2sip-mp_engine.o webrtc2sip-mp_mail.o webrtc2sip-mp_mediaproxy.o 
webrtc2sip-mp_mutex.o webrtc2sip-mp_net_transport.o webrtc2sip-mp_object.o 
webrtc2sip-mp_peer.o webrtc2sip-mp_proxyplugin.o 
webrtc2sip-mp_proxyplugin_consumer_audio.o 
webrtc2sip-mp_proxyplugin_consumer_video.o webrtc2sip-mp_proxyplugin_mgr.o 
webrtc2sip-mp_proxyplugin_producer_audio.o 
webrtc2sip-mp_proxyplugin_producer_video.o webrtc2sip-mp_session.o 
webrtc2sip-mp_session_av.o webrtc2sip-mp_wrap.o webrtc2sip-mp_db_sqlite.o 
webrtc2sip-sqlite3.o webrtc2sip-mp_db.o webrtc2sip-mp_db_model.o 
webrtc2sip-jsoncpp.o webrtc2sip-ActionConfig.o webrtc2sip-AudioResampler.o 
webrtc2sip-DDebug.o webrtc2sip-MediaContent.o webrtc2sip-MediaSessionMgr.o 
webrtc2sip-Msrp.o webrtc2sip-ProxyConsumer.o webrtc2sip-ProxyPluginMgr.o 
webrtc2sip-ProxyProducer.o webrtc2sip-SafeObject.o webrtc2sip-SipCallback.o 
webrtc2sip-SipEvent.o webrtc2sip-SipMessage.o webrtc2sip-SipSession.o 
webrtc2sip-SipStack.o webrtc2sip-SipUri.o webrtc2sip-SMSEncoder.o 
webrtc2sip-Xcap.o -L/usr/lib -L/usr/lib  -L/usr/local/lib -ltinySAK   
-L/usr/local/lib -ltinyNET   -L/usr/local/lib -ltinyHTTP   -L/usr/local/lib 
-ltinySIP   -L/usr/local/lib -ltinyDAV   -L/usr/local/lib -ltinySDP   
-L/usr/local/lib -ltinyBFCP   -L/usr/local/lib -ltinySIGCOMP   -L/usr/local/lib 
-ltinyMEDIA   -L/usr/local/lib -ltinyXCAP   -L/usr/local/lib -ltinySMS   
-L/usr/local/lib -ltinyMSRP   -L/usr/local/lib -ltinyRTP   -L/usr/local/lib 
-ltinyIPSec   -lxml2 -lpthread -ldl
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_CreateDecompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_destroy_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_read_raw_data'
/usr/local/lib/libtinyDAV.so: undefined reference to `chromium_jpeg_read_header'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_start_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_abort_decompress'
/usr/local/lib/libtinyDAV.so: undefined reference to 
`chromium_jpeg_resync_to_restart'
/usr/local/lib/libtinyDAV.so: undefined reference to `chromium_jpeg_std_error'

Original comment by vipul.ra...@temasys.com.sg on 22 Dec 2014 at 8:38