amjadalion / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

NDK COMPILATION FAILURE #791

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Before you begin please read the FAQ!

Attention!

Don't post doubles!

Why is it important to find doubles?

Sipdroid is a community project. This is no dropbox for your personal
issue. You need to find others having the same problem to get it fixed. If
the problem has already been reported you add more details and ideas to the
existing discussion. If it has not been reported yet you include as many
background info as possible to give the community a chance to follow up on
it. No one will just sit there and try to replicate your setup. The root
cause of the problem will need to be identified to get it fixed.

How can I find doubles?

When clicking on issues tab there is a search box. Enter keywords for your
issue to find previous reports matching yours. Choose find all to match
closed tickets as well.

How can I investigate an incompatiblity?

Just mentioning a SIP server or device that does not interoperate with
Sipdroid won't help much because the developers might not have that
particular setup on hands. So you will try to add a SIP or logcat trace
from your network/phone to make a fix at all possible.

Did you carefully read above?

If yes, please fill out the following form and provide all necessary
details.
If not, you may continue in the Forum where you can discuss your problem to
clear things up before filing an issue report.

What steps will reproduce the problem?
1. Open the cygwin
2. go to your sipdroid project directory
3. Execute $NDK_PATH/ndk-build

What is the expected output? What do you see instead?
Android NDK: 
/cygdrive/e/Android/Projects/sipdroidWS/jni/../jni/Android.mk:silkcommon: 
LOCAL_MODULE_FILENAME must not contain a file extension 

Attached the make debug file 

What version of the product are you using? On what device/operating system?
cygwin 1.7
Eclipse 3.6 Helios 
Android 2.3

Which SIP server are you using? What happens with PBXes?
NA

Which type of network are you using?
NA

Please provide any additional information below.
When I build the sipdroid the size of apk file is 1.67 bytes however the one 
supplied here is of size 1.81. Something is missing and nowhere its stated.

Original issue reported on code.google.com by sandeepg...@hotmail.com on 20 Dec 2010 at 2:15

Attachments:

GoogleCodeExporter commented 9 years ago
I'm facing the same error. I'm using NDK r5 on Linux.

Original comment by schoetty...@googlemail.com on 20 Dec 2010 at 4:11

Attachments:

GoogleCodeExporter commented 9 years ago
The problem is that the LOCAL_MODULE* variables are not being cleared before 
building silkcommon. The issue can be fixed by adding `include $(CLEAR_VARS) 
before the silkcommon definitions. The diff of the changed version is the 
following:

--- jni/Application.mk  (Revision 601)
+++ jni/Application.mk  (Arbeitskopie)
@@ -1,4 +1,4 @@
-APP_PROJECT_PATH := $(call my-dir)
+APP_PROJECT_PATH := $(call my-dir)/..
 APP_MODULES  := OSNetworkSystem
 APP_MODULES     += speex_jni
 APP_MODULES     += bv16_jni

Original comment by thomas.m...@gmail.com on 14 Jan 2011 at 1:32

GoogleCodeExporter commented 9 years ago
or just set LOCAL_MODULE_FILENAME, ie:

LOCAL_MODULE    := silkcommon
LOCAL_MODULE_FILENAME:= silkcommon  

Original comment by jeaco...@gmail.com on 6 Mar 2012 at 5:47

GoogleCodeExporter commented 9 years ago
These fixes don't work for me. Please update the source code with a fix and 
update the build instructions to use ndk-build also. F-droid.org distributes 
this as a developer build but we are trying to move everything to source-built.

Original comment by david8bl...@gmail.com on 6 Feb 2013 at 12:04

GoogleCodeExporter commented 9 years ago

When compiling sipdroid native code using the ndk, you will come across the 
following error

error 1

Android NDK: There is no Android.mk under / home / helei / workspace / raydroid 
/ jni / jni      
Android NDK: If this is intentional please define APP_BUILD_SCRIPT to point     
Android NDK: to a valid NDK build script.      
/ Home/helei/android_toolchain/android-ndk-r7b/build/core/add-application.mk: 
143 : *** Android NDK: Aborting .... Stop.  

Modify jni directory Application.mk file: 
APP_PROJECT_PATH: = $ (Call my- dir )

This line, change it to: 
APP_PROJECT_PATH: = $ (Call my- dir ) / ..

Error 2 
Android NDK: / Home / HeLei / Workspace / raydroid / JNI /.. / JNI / 
Android.mk: silkcommon: LOCAL_MODULE_FILENAME must Not Contain a file Extension 

/ 
Home/helei/android_toolchain/android-ndk-r7b/build/core/build-static-library.mk:
 29 : *** Android NDK: Aborting. Stop.  

Solution: Open jni directory Android.mk file location in the following code: 

SILK: = silk  
LOCAL_MODULE: = silkcommon  
LOCAL_SRC_FILES: = $ (SILK) / src/SKP_Silk_A2NLSF.c \  
    $ (SILK) / src / SKP_Silk_CNG.c \  
    $ (SILK) / src / SKP_Silk_HP_variable_cutoff_FIX.c \  

After revision as follows: 

include $ (CLEAR_VARS)  
SILK: = silk  
LOCAL_MODULE: = silkcommon  
LOCAL_SRC_FILES: = $ (SILK) / src/SKP_Silk_A2NLSF.c \  
    $ (SILK) / src / SKP_Silk_CNG.c \  
    $ (SILK) / src / SKP_Silk_HP_variable_cutoff_FIX.c \  

Error 3 

Compile + + thumb: speex_jni <= speex_jni. cpp 
H :/ Workspace / SIPUA / JNI /.. / JNI / speex_jni. cpp : 26 : 25 : Fatal 
Error: Speex / speex.h: No such file or Directory
compilation terminated.
/ Cygdrive/h/android/android-ndk-r8/build/core/build-binary.mk: 255 : Recipe 
for target `/ cygdrive / h / Workspace / SIPUA / obj / local / armeabi / objs / 
speex_jni / speex_jni. O ' failed 
make : *** [/ cygdrive / h / Workspace / SIPUA / obj / local / armeabi / objs / 
speex_jni / speex_jni.o] Error 1

The solution: put jni folder speex-1.2rc1/include/speex folder to jni directory 
ndk-build compiles successfully ~ ~ ~ ~

all the best

translated from a chinese 
site..http://www.sjsjw.com/kf_mobile/article/4_16167_5246.asp

Original comment by muriminy...@gmail.com on 4 Oct 2013 at 1:42

GoogleCodeExporter commented 9 years ago
For the problem above start fixing error 1, then build and fix the errors as 
they occur..

Kind Regards.
John Murimi N
Software Developer .
Arion Microsystems Limited
Cell:  +254 (0)726225993
Email: info@arionmicrosystems.com
Website: www.arionmicrosystems.com

Original comment by muriminy...@gmail.com on 4 Oct 2013 at 1:47