android ndk - ndk: linking static library error -


i have compiled(hopefully success) fftw library. want link ndk projects. have 2 android.mk files: /analysis/fftw3/

local_path := $(call my-dir)  include $(clear_vars)  local_module := fftw3  local_src_files := lib/libfftw3f.a local_export_c_includes := $(local_path)/include  #local_ldflags := $(local_path)/lib/libfftw3f.a #local_ldlibs := $(local_path)/lib/libfftw3f.a   include $(prebuilt_static_library)  #$(call import-module, fftw3) 

the main android.mk file in /

local_path := $(call my-dir)  include $(clear_vars)  local_module    := jni file_list := $(wildcard $(local_path)/*.c) file_list += $(wildcard $(local_path)/**/*.c) file_list += $(wildcard $(local_path)/**/**/*.c) file_list += $(wildcard $(local_path)/**/**/**/*.c)  local_src_files := $(file_list:$(local_path)/%=%) #local_src_files := analysis/fftw3/lib/libfftw3f.a #local_export_c_includes := $(local_path)/analysis/fftw3/include  #local_ldflags := $(local_path)/analysis/fftw3/lib/libfftw3f.a #local_ldlibs := $(local_path)/analysis/fftw3/lib/libfftw3f.a local_static_libraries := analysis/fftw3/fftw3  include $(build_shared_library)  include $(local_path)/analysis/fftw3/android.mk 

i have tried many things (as can see comments..) i'm getting "undefined reference" when try call function libfftw3f library. seem ok. don't know i'm missing.

local_static_libraries := analysis/fftw3/fftw3

this line should rather

local_static_libraries := fftw3

indeed, must list local static libraries, same name specified on line

local_module := fftw3

it should link correctly, given path specified local_src_file lib correct.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -