tahirjilani / imsdroid

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

Unable Build the Native Library on WIndows. #423

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (wireshark) or Android log (DDMS output)
if you want quick response

What steps will reproduce the problem?
1. Install Cygwin
2. Install Android-ndk-r4b
3. Install Android-sdk
4. Try to build with the advices of 
http://code.google.com/p/imsdroid/wiki/Building_IMSDroid_v2_x

What is the expected output? What do you see instead?
I excepted to have the tinyWrap.so librairy but I have a lot of errors

What version of the product are you using? On what operating system?
PC-Operation System : Windows Vista SP2

Android devices : Android 2.2 and Android 2.3

IMSDroid : imsdroid_v2 revision 607
URL : http://doubango.googlecode.com/svn/branches/2.0/doubango

Cygwin : 

$ cygcheck --version
cygcheck version 1.126

Android NDK :

Version : android-ndk-r8b

Please provide any additional information below.

I adjust the root.mk like that :

export ANDROID_NDK_ROOT=/cygdrive/c/android-ndk-r8b
export ANDROID_SDK_ROOT=/cygdrive/f/android-sdk-windows
export ANDROID_PLATFORM=android-8
export ANDROID_HOST=windows
export ANDROID_GCC_VER=4.4.3

then I add to my windows Vista path :

F:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\arm-l
inux-androideabi\bin

and then i use compilation flags with cygwin like this :

export CFLAGS="–Os –DDEBUG_LEVEL=DEBUG_LEVEL_ERROR"

And open the Console and 

cd $(DOUBANGO_HOME)/android-projects

then 

../bindings/java/android/buildAll.sh

and this is what I got :

The first few lines :

building tinySAK with parameters=

(cd ../tinySAK; make -f droid-makefile clean)
make[1]: Entering directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinySAK'
make[1]: Leaving directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinySAK'
(cd ../tinySAK; make -f droid-makefile all; cp -f libtinySAK_armv5te.a 
/cygdrive/c/Users/Developer/Desktop/doubango/android-projects/output)
make[1]: Entering directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinySAK'
gcc -c  -Os -DDEBUG_LEVEL=DEBUG_LEVEL_ERROR  
-I/cygdrive/d/AndroidDevMahesh/android-ndk-r8b/platforms/android-8/arch-arm/usr/
include 
-L/cygdrive/d/AndroidDevMahesh/android-ndk-r8b/sources/cxx-stl/gnu-libstdc++/4.4
.3/include  -msoft-float  -fpic  -fno-exceptions  -mthumb-interwork  
-funwind-tables  -fstack-protector  -D__arm__ -D__ARM_ARCH__  -D__ARM_ARCH_5__  
-D__ARM_ARCH_5T__  -D__ARM_ARCH_5E__  -D__ARM_ARCH_5TE__  -MMD  -MP  
-fno-short-enums  -DWEBRTC_ANDROID  -DWEBRTC_ARCH_ARM  -D__ANDROID__  
-DANDROID=1   -ffunction-sections -fdata-sections -march=armv5te -mtune=xscale  
-fomit-frame-pointer  -fno-strict-aliasing  -finline-limit=64 -Os -s -static 
src/tsk.c -o src/tsk.o
cc1: error: unrecognized command line option '-mbionic'
cc1: error: unrecognized command line option '-mthumb-interwork'
cc1: error: unrecognized command line option '-mfpu=vfp'
src/tsk.c:1:0: warning: -fpic ignored for target (all code is position 
independent) [enabled by default]
src/tsk.c:1:0: error: bad value (armv5te) for -march= switch
src/tsk.c:1:0: error: bad value (xscale) for -mtune= switch
make[1]: *** [src/tsk.o] Error 1
droid-makefile:47: recipe for target `src/tsk.o' failed
make[1]: Leaving directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinySAK'

building tinyNET with parameters=

(cd ../tinyNET; make -f droid-makefile clean)
make[1]: Entering directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinyNET'
make[1]: Leaving directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinyNET'
(cd ../tinyNET; make -f droid-makefile all; cp -f libtinyNET_armv5te.a 
/cygdrive/c/Users/Developer/Desktop/doubango/android-projects/output)
make[1]: Entering directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinyNET'
gcc -c  -Os -DDEBUG_LEVEL=DEBUG_LEVEL_ERROR  
-I/cygdrive/d/AndroidDevMahesh/android-ndk-r8b/platforms/android-8/arch-arm/usr/
include 
-L/cygdrive/d/AndroidDevMahesh/android-ndk-r8b/sources/cxx-stl/gnu-libstdc++/4.4
.3/include  -msoft-float  -fpic  -fno-exceptions  -mthumb-interwork  
-funwind-tables  -fstack-protector  -D__arm__ -D__ARM_ARCH__  -D__ARM_ARCH_5__  
-D__ARM_ARCH_5T__  -D__ARM_ARCH_5E__  -D__ARM_ARCH_5TE__  -MMD  -MP  
-fno-short-enums  -DWEBRTC_ANDROID  -DWEBRTC_ARCH_ARM  -D__ANDROID__  
-DANDROID=1   -ffunction-sections -fdata-sections -march=armv5te -mtune=xscale  
-fomit-frame-pointer  -fno-strict-aliasing  -finline-limit=64 -Os -s -static 
-DHAVE_OPENSSL=1 -I../thirdparties/android/include -I../tinySAK/src -I./src 
src/tnet.c -o src/tnet.o
cc1: error: unrecognized command line option '-mbionic'
cc1: error: unrecognized command line option '-mthumb-interwork'
cc1: error: unrecognized command line option '-mfpu=vfp'
src/tsk.c:1:0: warning: -fpic ignored for target (all code is position 
independent) [enabled by default]
src/tsk.c:1:0: error: bad value (armv5te) for -march= switch
src/tsk.c:1:0: error: bad value (xscale) for -mtune= switch
make[1]: *** [src/tsk.o] Error 1
droid-makefile:96: recipe for target `src/tnet.o' failed
make[1]: Leaving directory 
`/cygdrive/c/Users/Developer/Desktop/doubango/tinyNET'

PFA for total Output.

Original issue reported on code.google.com by mahesh.s...@gmail.com on 12 Dec 2012 at 10:22

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Any luck I am getting the same on my mac

Original comment by amitbagg...@gmail.com on 2 Feb 2013 at 5:49

GoogleCodeExporter commented 9 years ago
Same here. Anybody successfully overcame this issue?

Original comment by j.pa...@gmail.com on 26 Feb 2013 at 7:00

GoogleCodeExporter commented 9 years ago
I am facing the same problem. Anyone resolved this issue?

Original comment by swathyra...@gmail.com on 16 Apr 2013 at 8:20

GoogleCodeExporter commented 9 years ago
Same here.

Original comment by kjeremy@gmail.com on 25 Apr 2013 at 2:29