Open GoogleCodeExporter opened 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:
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
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
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
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
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
Original issue reported on code.google.com by
sandeepg...@hotmail.com
on 20 Dec 2010 at 2:15Attachments: