I am building an API for Android that uses FFTw. After cross compiling FFTw for android
( http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html )
I was able to get it to work eventually by modifying the Android.mk file to include the prebuilt static library (my changes in bold):
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := fftw3f LOCAL_SRC_FILES := fftw/libfftw3f.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := juce_jni ... other stuff added automatically ... ... LOCAL_STATIC_LIBRARIES := fftw3f $(BUILD_SHARED_LIBRARY)
I tried using a local Android.mk file around the static library and C-style includes ( -lfftw3f ) in the introjucer project, but the compiler yelled at me and hurt my feelings. So, now I have a modified Android.mk file that I have to manage with version control so that I can start working on the iOS build and save my introjucer project.
Is there some way to setup my introjucer project so I can include this library and still save my project without it being automatically overwritten?