build linphone-android error

Hello all,

I have downloaded linephone-android in the early November 2018  using “git clone git://git.linphone.org/linphone-android.git --recursive”

and my environment setting:

on Ubuntu 18.04.1 LTS, x86_64,  ndk r18, all the dependencies installed.

but compile error:

********

fengqz@gemvary-T130:~/linphone-android$ make
./gradlew clean

> Configure project :
[Push Notification] Firebase disabled

> Configure project :liblinphone-sdk
native sdk not ready yet

BUILD SUCCESSFUL in 0s
2 actionable tasks: 2 up-to-date
make -C WORK/android-arm64/cmake

– Found XercesC: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/lib/libxerces-c.a (found version “3.1.4”)
– Found LibXsd: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include;/home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include
– Found Sqlite3: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include
– Found XML2: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include/libxml2
– Soci found: Looking for plugins
– * Plugin mysql not found.
– * Plugin sqlite3 found /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/lib/libsoci_sqlite3.a.
– Found Soci: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include
– Found ZLIB: /opt/android-ndk-r18b/platforms/android-21/arch-arm64/usr/lib/libz.so (found version “1.2.7”)
– Found PythonInterp: /usr/bin/python (found version “2.7.15”)
CMake Error at cmake/Tools.cmake:31 (message):
‘pystache’ python module not found
Call Stack (most recent call first):
CMakeLists.txt:176 (check_python_module)

– Configuring incomplete, errors occurred!
See also “/home/fengqz/linphone-android/WORK/android-arm64/Build/linphone/CMakeFiles/CMakeOutput.log”.
CMakeFiles/EP_linphone.dir/build.make:117: recipe for target ‘/home/fengqz/linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure’ failed
make[3]: *** [/home/fengqz/linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure] Error 1
make[3]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
CMakeFiles/Makefile2:82: recipe for target ‘CMakeFiles/EP_linphone.dir/all’ failed
make[2]: *** [CMakeFiles/EP_linphone.dir/all] Error 2
make[2]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
Makefile:83: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
Makefile:215: recipe for target ‘arm64-build’ failed
make: *** [arm64-build] Error 2

the newest status, this problem is :

– Found XML2: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include/libxml2
– Soci found: Looking for plugins
– * Plugin mysql not found.
– * Plugin sqlite3 found /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/lib/libsoci_sqlite3.a.
– Found Soci: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/include
– Found ZLIB: /opt/android-ndk-r18b/platforms/android-21/arch-arm64/usr/lib/libz.so (found version “1.2.7”)
– Found PythonInterp: /usr/bin/python (found version “2.7.15”)
– ‘pystache’ python module found
– ‘six’ python module found
– Looking for include file libudev.h
– Looking for include file libudev.h - not found
– Found CpuFeatures: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/lib/libcpufeatures.a
– Found Support: /home/fengqz/linphone-android/liblinphone-sdk/android-arm64/lib/libsupport.a
– Performing Test SUGGEST_OVERRIDE
– Performing Test SUGGEST_OVERRIDE - Failed
CMake Error at /opt/cmake-3.12.2-Linux-x86_64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Java (missing: Java_JAVAC_EXECUTABLE Java_JAR_EXECUTABLE
Java_JAVADOC_EXECUTABLE Development) (found version “10.0.2”)
Call Stack (most recent call first):
/opt/cmake-3.12.2-Linux-x86_64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/opt/cmake-3.12.2-Linux-x86_64/share/cmake-3.12/Modules/FindJava.cmake:314 (find_package_handle_standard_args)
java/CMakeLists.txt:24 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/fengqz/linphone-android/WORK/android-arm64/Build/linphone/CMakeFiles/CMakeOutput.log”.
See also “/home/fengqz/linphone-android/WORK/android-arm64/Build/linphone/CMakeFiles/CMakeError.log”.
CMakeFiles/EP_linphone.dir/build.make:117: recipe for target ‘/home/fengqz/linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure’ failed
make[3]: *** [/home/fengqz/linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure] Error 1
make[3]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
CMakeFiles/Makefile2:82: recipe for target ‘CMakeFiles/EP_linphone.dir/all’ failed
make[2]: *** [CMakeFiles/EP_linphone.dir/all] Error 2
make[2]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
Makefile:83: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/fengqz/linphone-android/WORK/android-arm64/cmake’
Makefile:215: recipe for target ‘arm64-build’ failed
make: *** [arm64-build] Error 2

Hi ,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.

As you’ll notice, your topic is now here in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Cheers!

Andrea