eddyleo / doubango

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

Unable to build Doubango version > = 745 version : with Android ndk_r7c #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following are the steps :

1. Set the Cygwin.bat file following with scripts before "chdir": 

 set JAVA_HOME=C:/Progra~1/Java/jdk1.6.0_23
 set DOUBANGO_HOME=/VCS/Doubango/Doubango_latest_code/doubango_748

 set ANDROID_NDK_ROOT=F:/VCS/android-ndk-r7c
 set ANDROID_SDK_ROOT=C:/Progra~1/Android/android-sdk
 set ANDROID_SDK_TOOLS=%ANDROID_SDK_ROOT%/platform-tools

 set PATH=%PATH%;%ANDROID_SDK_TOOLS%;%ANDROID_NDK_ROOT%
 set PATH=%PATH%;%ANDROID_NDK_ROOT%\toolchains\arm-linux-androideabi-  4.4.3\prebuilt\windows\bin
 set DOUBANGO_HOME=F:/VCS/Doubango/Doubango_latest_code/doubango_748
 set ANDROID_GCC_VERSIONS=4.5.3 4.4.3

2. Open Cygwin, and go to $DOUBANGO_HOME
3. run ==> ../bindings/java/android/buildAll.sh command or 
   run ==> tried with other script files gpl.sh or commercial.sh etc.

Versions/Platforms : 
- Building in Cygwin, Windows XP.
- Doubango Version tried - 745, 748,752 etc.
- Android NDK version - 7c

All giving the same following error:

src/trtp_manager.c: In function '_trtp_manager_ice_init':
src/trtp_manager.c:257: warning: passing argument 2 of 'tnet_ice_ctx_rtp_callbac
k' from incompatible pointer type
../tinyNET/src/ice/tnet_ice_ctx.h:54: note: expected 'tnet_ice_rtp_callback_f' b
ut argument is of type 'int (*)(const struct trtp_manager_t *, const uint8_t *,
tsk_size_t,  tnet_fd_t,  const struct __kernel_sockaddr_storage *)'
src/video/tdav_converter_video.cxx: In function 'tsk_object_t* tdav_converter_vi
deo_libyuv_ctor(tsk_object_t*, va_list*)':
src/video/tdav_converter_video.cxx:415: note: the mangling of 'va_list' has chan
ged in GCC 4.4
../../_common/DDebug.cxx:96: note: the mangling of 'va_list' has changed in GCC
4.4
../../_common/ProxyConsumer.cxx:210: warning: 'twrap_consumer_proxy_audio_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyConsumer.cxx:569: warning: 'twrap_consumer_proxy_video_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyConsumer.cxx: In function 'tsk_object_t* twrap_consumer_proxy
_video_ctor(tsk_object_t*, va_list*)':
../../_common/ProxyConsumer.cxx:519: note: the mangling of 'va_list' has changed
 in GCC 4.4
../../_common/ProxyPluginMgr.h:116: warning: inline function 'virtual bool Proxy
Plugin::isWrapping(tsk_object_t*)' used but never defined
../../_common/ProxyPluginMgr.cxx: In function 'tsk_object_t* twrap_proxy_plugin_
ctor(tsk_object_t*, va_list*)':
../../_common/ProxyPluginMgr.cxx:245: note: the mangling of 'va_list' has change
d in GCC 4.4
../../_common/ProxyProducer.cxx:191: warning: 'twrap_producer_proxy_audio_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyProducer.cxx:498: warning: 'twrap_producer_proxy_video_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyProducer.cxx: In function 'tsk_object_t* twrap_producer_proxy
_video_ctor(tsk_object_t*, va_list*)':
../../_common/ProxyProducer.cxx:448: note: the mangling of 'va_list' has changed
 in GCC 4.4
../../_common/Xcap.cxx: In function 'tsk_object_t* twrap_xcap_step_ctor(tsk_obje
ct_t*, va_list*)':
../../_common/Xcap.cxx:64: note: the mangling of 'va_list' has changed in GCC 4.
4
F:/VCS/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/b
in/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld.exe: cannot find -ltinySAK_armv5te
collect2: ld returned 1 exit status
make[1]: *** [libtinyWRAP_armv5te.so] Error 1
F:\VCS\android-ndk-r7c\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\b
in\arm-linux-androideabi-strip.exe: './libtinyWRAP_armv5te.so': No such file
cp: cannot stat `./libtinyWRAP_armv5te.so': No such file or directory
make: *** [all] Error 1

Original issue reported on code.google.com by lgsi...@gmail.com on 7 Nov 2012 at 10:01

GoogleCodeExporter commented 9 years ago
Please follow the instructions on the wiki page at 
http://code.google.com/p/imsdroid/wiki/Building_IMSDroid_v2_x or use the 
provided binaries if you're newbie

Original comment by boss...@yahoo.fr on 7 Nov 2012 at 7:38

GoogleCodeExporter commented 9 years ago
Hi, Thanks for the reply, but the issue is not invalid, as I followed the same 
procedure as mentioned in the provided link, instead of changing the 
cygwin.bat(a generic solution), i made changes in root.mk file. Even at that 
time also same issue we found in windows:

src/trtp_manager.c: In function '_trtp_manager_ice_init':
src/trtp_manager.c:257: warning: passing argument 2 of 'tnet_ice_ctx_rtp_callbac
k' from incompatible pointer type
../tinyNET/src/ice/tnet_ice_ctx.h:54: note: expected 'tnet_ice_rtp_callback_f' b
ut argument is of type 'int (*)(const struct trtp_manager_t *, const uint8_t *,
tsk_size_t,  tnet_fd_t,  const struct __kernel_sockaddr_storage *)'
src/video/tdav_converter_video.cxx: In function 'tsk_object_t* tdav_converter_vi
deo_libyuv_ctor(tsk_object_t*, va_list*)':
src/video/tdav_converter_video.cxx:415: note: the mangling of 'va_list' has chan
ged in GCC 4.4
../../_common/DDebug.cxx:96: note: the mangling of 'va_list' has changed in GCC
4.4
../../_common/ProxyConsumer.cxx:210: warning: 'twrap_consumer_proxy_audio_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyConsumer.cxx:569: warning: 'twrap_consumer_proxy_video_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyConsumer.cxx: In function 'tsk_object_t* twrap_consumer_proxy
_video_ctor(tsk_object_t*, va_list*)':
../../_common/ProxyConsumer.cxx:519: note: the mangling of 'va_list' has changed
 in GCC 4.4
../../_common/ProxyPluginMgr.h:116: warning: inline function 'virtual bool Proxy
Plugin::isWrapping(tsk_object_t*)' used but never defined
../../_common/ProxyPluginMgr.cxx: In function 'tsk_object_t* twrap_proxy_plugin_
ctor(tsk_object_t*, va_list*)':
../../_common/ProxyPluginMgr.cxx:245: note: the mangling of 'va_list' has change
d in GCC 4.4
../../_common/ProxyProducer.cxx:191: warning: 'twrap_producer_proxy_audio_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyProducer.cxx:498: warning: 'twrap_producer_proxy_video_plugin
_def_t' initialized and declared 'extern'
../../_common/ProxyProducer.cxx: In function 'tsk_object_t* twrap_producer_proxy
_video_ctor(tsk_object_t*, va_list*)':
../../_common/ProxyProducer.cxx:448: note: the mangling of 'va_list' has changed
 in GCC 4.4
../../_common/Xcap.cxx: In function 'tsk_object_t* twrap_xcap_step_ctor(tsk_obje
ct_t*, va_list*)':
../../_common/Xcap.cxx:64: note: the mangling of 'va_list' has changed in GCC 4.
4
F:/VCS/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/b
in/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld.exe: cannot find -ltinySAK_armv5te
collect2: ld returned 1 exit status
make[1]: *** [libtinyWRAP_armv5te.so] Error 1
F:\VCS\android-ndk-r7c\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\b
in\arm-linux-androideabi-strip.exe: './libtinyWRAP_armv5te.so': No such file
cp: cannot stat `./libtinyWRAP_armv5te.so': No such file or directory
make: *** [all] Error 1

Original comment by lgsi...@gmail.com on 8 Nov 2012 at 4:33