undefined reference to gnuradio in C++ using Android NDK -


i trying access gnuradio functions in android, bandpass filter function. without calling functions, ndk-build compiles code. when call complex_band_pass(...) function, gives me error of undefined reference to:

error ndk-build:

error: undefined reference 'gr_firdes::complex_band_pass(double, double, double, double, double, gr_firdes::win_type, double)' collect2: ld returned 1 exit status

in android.mk file particular file:

include $(clear_vars) local_module    := rxfilter local_src_files := src/rx_filter.cpp local_c_includes += /usr/local/include/gnuradio \                 /usr/local/include \                 ${android_ndk_root}/sources/cxx-stl/stlport/stlport local_cflags := -dandroid -duse_liblog local_shared_libraries +=  rtlsdr local_static_libraries :=  /usr/local/lib/libgnuradio #doesn't seem local_ldlibs +=  -llog include $(build_shared_library) 

in rx_filter.cpp file:

#include <jni.h> #include <cmath> #include <math.h> #include <vector>  #include <gr_firdes.h>  using namespace std;  static void attempttoaccessgnuradio() {     // gr_firdes class     gr_firdes gg;     // compiles without line     gg.complex_band_pass(1.0, 24000.0, 100.0, 500.0, 1.0);  }  #ifdef __cplusplus extern "c" { #endif   jniexport jint jnicall java_rtlsdr_mainactivity_nativertlsdrfm(jnienv *envp, jobject objp) {         return 1; }  #ifdef __cplusplus } #endif 

note: gnuradio has been installed in default location

what can access gnuradio functions in android?

an alternative question how create bandpass filter in android ndk environment?

thanks in advance, in meantime troubleshooting myself have past few days. if find solution, post it.

there workings on porting gnu radio android done tom rondeau, 1 of chief maintainers. i'm afraid @ point, no 1 more competent porting gnu radio android, since porting gnu radio trivial.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -