Hi
I am trying to integrate FastCV with an existing application that already makes use of cpufeatures in native code.
I have placed fastcv.h, fastcv.inl and libfastcv.a in the appropriate include and lib folders of my NDK.
In my application's Android.mk I have
LOCAL_LDLIBS := -llog -ljnigraphics -lfastcv LOCAL_MODULE := Foo LOCAL_STATIC_LIBRARIES := cpufeatures libfastcv include $(BUILD_SHARED_LIBRARY) $(call import-module,android/cpufeatures)
Compilation fails with "multiple definition of `android_getCpuFeatures'".
libfastcv.a contains cpu-features.o which contains the cpu features functions.
My application code won't compile without cpufeatures, and libfastcv.a can't be linked if cpu-features.o is removed from it.
I can't see how to resolve the conflict. Has anyone else encountered this?
Thanks
Steve
Try removing cpufeatures from your LOCAL_STATIC_LIBRARIES line.