-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hello,
I am trying to cross-compile WDSP for Android using CMake and the Android NDK, but I am encountering issues related to undeclared functions.
When I attempt to compile the org_openhpsdr_dsp_Wdsp.c file, I get errors saying that the following functions are not declared. This is just an excerpt:
GetWDSPVersion
WDSPwisdom
SetRXAAGCMaxInputLevel
SetRXAPreGenRun
. . .
Here is an example of the error messages I am receiving:
~/wdsp/org_openhpsdr_dsp_Wdsp.c:75:9: error: call to undeclared function 'GetWDSPVersion'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return GetWDSPVersion(); ^ ~/wdsp/org_openhpsdr_dsp_Wdsp.c:87:2: error: call to undeclared function 'WDSPwisdom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] WDSPwisdom(dir_ptr, env, obj); ^ ~/wdsp/org_openhpsdr_dsp_Wdsp.c:176:2: error: call to undeclared function 'SetRXAAGCMaxInputLevel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SetRXAAGCMaxInputLevel(channel, level); ^ ~/wdsp/org_openhpsdr_dsp_Wdsp.c:209:2: error: call to undeclared function 'SetRXAPreGenRun'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SetRXAPreGenRun(channel, run); ^
I have checked the header files and I cannot find the declarations for these functions. Could you please help me understand where these functions are declared and how I can resolve these errors?
For your information, the compilation works fine on my Linux system using the provided Makefile. The issue only arises when I attempt to cross-compile for Android.
Has anyone managed to compile wdsp for android?
Thank you for your assistance.