NDK noob problem: build_binary.mk: target pattern contains no '%'

479 views
Skip to first unread message

Robert Francis

unread,
Feb 3, 2011, 6:24:41 PM2/3/11
to android-ndk
Hey there,

I'm messing around with the Android NDK for the first time, and I'm
having problems getting a sample built.

I have Cygwin installed and set up, in addition to Eclipse and the
Android SDK. When I navigate to any sample's project folder inside
the NDK and run ndk-build, I get the error from make:

/cygdrive/d/androidNDK/build/core/build-binary.mk:38: *** target
pattern contains no `%'. Stop.

I've tried looking up this particular error message, and a different
forum suggested a remedy of changing:
$(LOCAL_MODULE): $(LOCAL_BUILT_MODULE)
to
$(LOCAL_MODULE): $(shell cygpath -u $(LOCAL_BUILT_MODULE))

This fixed the error on line 38, but now I'm getting the same one on
line 200 :
$(foreach src,$(filter %$(LOCAL_CPP_EXTENSION), $(LOCAL_SRC_FILES)),\
$(call compile-cpp-source, $(src)))

I've tried a bunch of combinations similar to the fix I applied on
line 38, but have had no success. Any help would be greatly
appreciated. Thanks!

Pi

unread,
Mar 27, 2014, 12:39:10 AM3/27/14
to andro...@googlegroups.com, francis....@gmail.com
Hi Robert,
Just wanted to know, since this post is quite old, did you ever find the solution, if yes, could you help me with it, because I'm facing the same problem.

Thanks!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages