Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on ndk-build clean

Tags:

I am getting the following error on ndk-build clean

mo@mo-Toshiba ~/Workspace/AndroidApp/jni/android_programming_driver $ ndk-build clean Clean: driveradapter [armeabi] /bin/sh: 1: Syntax error: "(" unexpected make: *** [clean-driveradapter-armeabi] Error 2 

Where is the NDK seeing this syntax erro?

like image 788
moesef Avatar asked Apr 12 '13 23:04

moesef


1 Answers

This is a bug in ndk r8e.

How to fix it:

Edit the file $(ndk_dir)build/core/build-binary.mk. Change the line

$(cleantarget): PRIVATE_CLEAN_FILES := ($(my)OBJS) 

to

$(cleantarget): PRIVATE_CLEAN_FILES := $($(my)OBJS) 

For me, that was on line #49.

like image 104
startoftext Avatar answered Oct 20 '22 17:10

startoftext