Building on Ubuntu 18.04 for Android failed with linker command failed with exit code 1
Hi all, I 'm trying to build linphone sdk for android on a Ubuntu VM 18.04.3 LTS amd64. I have also installed Android NDK R19c version and all the needed dependencies.
- cmake
- python 2.7
- pip
- yasm
- nasm
- doxygen
- pystache
- six
- openjdk-11
So far I have give the following commands :
$ git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git -- recursive
$ mkdir build
$ cd build
$ export ANDROID_HOME=$HOME/Android/Sdk && export PATH=$PATH:$ANDROID_HOME/tools && export PATH=$PATH:/home/user/android-ndk-r19c
$ cmake .. -DENABLE_GPL_THIRD_PARTIES=OFF -DENABLE_BV16=OFF -DENABLE_CXX_WRAPPER=OFF -DENABLE_GSM=OFF -DENABLE_JPEG=OFF -DENABLE_LIME_X3DH=OFF -DENABLE_MKV=OFF -DENABLE_OPUS=OFF -DENABLE_SPEEX=ON -DENABLE_SRTP=OFF -DENABLE_UNIT_TESTS=OFF -DENABLE_VCARD=OFF -DENABLE_VIDEO=OFF -DENABLE_VPX=OFF -DENABLE_WEBRTC_AECM=OFF -DENABLE_WEBRTC_AEC=OFF -DENABLE_ZRTP=OFF -DENABLE_TOOLS=OFF -DENABLE_MBEDTLS=ON -DENABLE_ILBC=NO -DENABLE_ISAC=NO -DENABLE_JAVA_WRAPPER=ON -DLINPHONESDK_PLATFORM:STRING=Android -DLINPHONESDK_ANDROID_ARCHS:STRING=armv7
* cmake --build .
And it always fails at 100% at linking shared library liblinphone.so with the following errors :
/home/user/linphone/recursive/external/soci/src/backends/sqlite3/vector-into-type.cpp:229: error: undefined reference to 'soci::details::parse_std_tm(char const, tm&)'
/home/user/linphone/recursive/external/soci/src/backends/sqlite3/standard-into-type.cpp:139: error: undefined reference to 'soci::details::parse_std_tm(char const, tm&)'**
I assume that a c++ definition (header file) is missing or is incorrect.
I installed additionally libsqlite3-dev but the error remained the same.
Do you have any idea what is wrong with my building? Is there another dependency missing ?
I have attached two files, the one is the initial cmake output and the other is the build output. cmake_output.txtbuild_output.txt