Forums - cpufeatures conflict

2 posts / 0 new
Last post
cpufeatures conflict
SteveJ
Join Date: 30 Nov 11
Posts: 3
Posted: Tue, 2011-12-13 10:34

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

 

  • Up0
  • Down0
Gary_McGrath
Join Date: 23 Oct 11
Posts: 13
Posted: Tue, 2011-12-13 15:27

Try removing cpufeatures from your LOCAL_STATIC_LIBRARIES line.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.