Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Error with ndk jni for curl

I am stuck at compilation of curl with the error:

$ndk-build
Android NDK: Building for application 'curl' 
Android NDK: Trying to define local module 'curl' in sources/curl//jni/Android.mk. 
Android NDK: But this module was already defined by sources/curl//jni/Android.mk. 
build/core/build-module.mk:34: *** Android NDK: Aborting. . Stop.

Can anyone provide the procedure you used to compile the dependencies?

like image 853
Harshawardhan Avatar asked Apr 04 '12 12:04

Harshawardhan


1 Answers

I had a similar error when trying to include a precompiled static library into a NDK project. I fixed it by editing my project's Android.mk file to move the line $(call import-module,<MY_MODULE_NAME>) to the very end of the file (after include $(BUILD_SHARED_LIBRARY)).

like image 86
Pooks Avatar answered Nov 12 '22 14:11

Pooks