Compilation error in doubango source code

294 views
Skip to first unread message

Gadi Srebnik

unread,
Oct 3, 2012, 3:18:10 AM10/3/12
to doub...@googlegroups.com
Hi,
Im trying to compile doubango latest source from svn on linux with NEON=yes using the following parameters:

export ANDROID_NDK_ROOT=/root/android-ndk-r7c
export ANDROID_PLATFORM=android-8
export ANDROID_HOST=linux-x86
ifeq ($(NEON), yes)
    export MARCH=armv7-a
    export ANDROID_EABI=armeabi-v7a
else
    export MARCH=armv5te
    export ANDROID_EABI=armeabi
endif

export ANDROID_GCC_VERSIONS=4.4.3 # 4.6 4.4.0 4.2.1 # list of preferred GCC versions seperated by SPACE (most preferred first)
export ANDROID_GCC_PREFIXES=arm-eabi arm-linux-androideabi # list of preferred GCC prefixes seperated by SPACE (most preferred first)

I get the following error:

arm-linux-androideabi-gcc  -Wl,--gc-sections,-rpath=/system/lib,-rpath-link=/root/android-ndk-r7c/platforms/android-8/arch-arm/usr/lib,-rpath-link=/root/juno-workspace/doubango/android-projects/output,-dynamic-linker=/system/bin/linker,-T,/root/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/lib/ldscripts/armelf_linux_eabi.xsc -L/root/android-ndk-r7c/platforms/android-8/arch-arm/usr/lib -L/root/android-ndk-r7c/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a -nostdlib -lc -L/root/juno-workspace/doubango/android-projects/output -Wl,--no-undefined -Wl,--no-whole-archive -Wl,-soname,libtinyWRAP.so,-Bsymbolic,-shared,--whole-archive -L../../../thirdparties/android/lib -L../../../thirdparties/android/lib/armv7-a -lavutil-gpl -lswscale-gpl -lavcore-gpl -lavcodec-gpl -lx264 -ltheora -logg      -lopencore-amrnb   -lgsm  -lsrtp -lssl_armv7-a -lcrypto_armv7-a -Wl,-Bdynamic -lm -lstdc++ -lgnustl_static -lgcc -llog -ldl -Wl,-Bstatic -ltinySAK_armv7-a -ltinyHTTP_armv7-a -ltinyXCAP_armv7-a -ltinyIPSec_armv7-a -ltinySIGCOMP_armv7-a -ltinySMS_armv7-a -ltinyNET_armv7-a -ltinySDP_armv7-a -ltinyRTP_armv7-a -ltinyMEDIA_armv7-a -ltinyMSRP_armv7-a -ltinyDAV_armv7-a -ltinySIP_armv7-a -o libtinyWRAP_armv7-a.so tinyWRAP_wrap.o ../../_common/ActionConfig.o ../../_common/AudioResampler.o ../../_common/DDebug.o ../../_common/MediaContent.o ../../_common/MediaSessionMgr.o ../../_common/Msrp.o ../../_common/ProxyConsumer.o ../../_common/ProxyPluginMgr.o ../../_common/ProxyProducer.o ../../_common/SafeObject.o ../../_common/SipCallback.o ../../_common/SipEvent.o ../../_common/SipMessage.o ../../_common/SipSession.o ../../_common/SipStack.o ../../_common/SipUri.o ../../_common/SMSEncoder.o ../../_common/Xcap.o
/root/juno-workspace/doubango/android-projects/output/libtinyDAV_armv7-a.a(tdav_converter_video.o): In function `tdav_converter_video_libyuv_process(tmedia_converter_video_s*, void const*, void**, unsigned int*)':
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0x304): undefined reference to `ConvertToI420'
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0x5c0): undefined reference to `I420Rotate'
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0x884): undefined reference to `I420Scale'
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0xabc): undefined reference to `I420Scale'
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0xcfc): undefined reference to `I420Scale'
tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24tmedia_converter_video_sPKvPPvPj+0xeac): undefined reference to `ConvertFromI420'
collect2: ld returned 1 exit status

Am I missing a library? Any thoughts?

Thanks,
Gadi

Mamadou

unread,
Oct 3, 2012, 5:28:37 AM10/3/12
to discuss-doubango
Fixed by Doubango r748.
For information, the best way to build Doubango on Android is to use
the pre-configured scripts (gpl.sh, lgpl.sh, minimal.sh,
commercial.sh, ...)
> tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24 tmedia_converter_video_sPKvPPvPj+0xcfc):
> undefined reference to `I420Scale'
> tdav_converter_video.cxx:(.text._ZL35tdav_converter_video_libyuv_processP24 tmedia_converter_video_sPKvPPvPj+0xeac):

Gadi Srebnik

unread,
Oct 3, 2012, 5:34:24 AM10/3/12
to doub...@googlegroups.com
Thanks, worked great.

--





--
Best Regards,

Gadi Srebnik, 

Reply all
Reply to author
Forward
0 new messages