[Opalvoip-devel] Android - OpenSLES - Undefined symbol
Brought to you by:
csoutheren,
rjongbloed
|
From: Raymond D. <RD...@mi...> - 2020-02-27 00:48:49
|
Hello,
I'm attempting to use Opal / PTLib on Android. I'm able to cross-compile PTLib for Android on MacOS, however when linking to our application, the following error occurs:
undefined reference to `PFactoryLoader::PPlugin_PSoundChannel_OpenSL_ES_link(int const*)’
Upon examining the symbols in the libpt.so file, we can see the that the symbol PFactoryLoader::PPlugin_PSoundChannel_OpenSL_ES_link is undefined as shown below.
00000000001cfecc T PFactoryLoader::PHTTPClientDigestAuthentication_link(int const*)
000000000018e8c4 T PFactoryLoader::PPlugin_PSoundChannel_NullAudio_link(int const*)
U PFactoryLoader::PPlugin_PSoundChannel_OpenSL_ES_link(int const*)
0000000001fcbd10 B PFactoryLoader::PPlugin_PSoundChannel_Tones_instance
0000000001fcbc88 B PFactoryLoader::PPlugin_PSoundChannel_WAVFile_instance
After examining the file make/toplevel.mak, it is observed that the file src/ptlib/unix/opensl_es.cxx isn’t included. Our guess is that this file is required for OpenSLES.
Any guidance is greatly appreciated.
Thanks,
Ray
|