在 ubuntu 16.04 中编译 linphone android 项目时出现 CMake 错误

标签 cmake linphone

我是 linphone 的新手。我克隆了 linphone git repo here ,我在编译linphone项目时出错。

作为 linphone github 页面中提到的步骤 here , 按照所有的步骤。并在 ubuntu 16.04 中安装所需的软件。

当我要执行 ./prepare.py -ac./prepare.py -L 时遇到同样的错误。

问题是,

/linphone-android$ ./prepare.py ac
cmake /home/krunal/linphone-android/submodules/cmake-builder -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/home/krunal/linphone-android/liblinphone-sdk/android-arm -DCMAKE_INSTALL_PREFIX=/home/krunal/linphone-android/liblinphone-sdk/android-arm -DLINPHONE_BUILDER_WORK_DIR=/home/krunal/linphone-android/WORK/android-arm -DCMAKE_TOOLCHAIN_FILE=toolchains/toolchain-android-arm.cmake -DLINPHONE_BUILDER_CONFIG_FILE=configs/config-android.cmake -DCMAKE_INSTALL_MESSAGE=LAZY -DLINPHONE_BUILDER_EXTERNAL_SOURCE_PATH=/home/krunal/linphone-android/submodules -DENABLE_VIDEO=NO -G "Unix Makefiles" -DENABLE_GPL_THIRD_PARTIES=YES -DENABLE_NON_FREE_CODECS=YES -DENABLE_AMRNB=YES -DENABLE_AMRWB=YES -DENABLE_BV16=YES -DENABLE_CODEC2=YES -DENABLE_G729=YES -DENABLE_GSM=YES -DENABLE_ILBC=YES -DENABLE_ISAC=YES -DENABLE_OPUS=YES -DENABLE_SILK=YES -DENABLE_SPEEX=YES -DENABLE_FFMPEG=YES -DENABLE_H263=YES -DENABLE_H263P=YES -DENABLE_MPEG4=YES -DENABLE_OPENH264=YES -DENABLE_VPX=YES
CMake Error at toolchains/android/toolchain-android.cmake:53 (message):
Cannot find the compiler
Call Stack (most recent call first):
toolchains/toolchain-android-arm.cmake:27 (include)
/usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
- Configuring incomplete, errors occurred!

最佳答案

设置你的编译器,并让编译器带有-D选项:

-DCMAKE_C_COMPILER=/usr/bin/gcc

相关:cmake: problems specifying the compiler (2)

关于在 ubuntu 16.04 中编译 linphone android 项目时出现 CMake 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37044572/

相关文章:

c++ - Linphone编译-配置: error: cannot run C compiled programs

c++ - 在构建时从源代码编译 OpenCV 3

git - 在构建外部项目时,cmake不断忽略GIT_TAG

c - 模拟网格。对从 msg.h 导入的函数的 undefined reference

cmake - 如何将 ${CMAKE_CURRENT_SOURCE_DIR} 添加到变量中的所有文件之前?

java - Linphone android 崩溃 "Cannot start linphone"

android - 如何仅为音频通话构建linphone android sdk?

linux - 调试 make 和 cmake?

ios - 获取 curl : (22) The requested URL returned error: 403 Forbidden while installing linphone through cocoa pods?

linux - linphonec 在远程响铃时挂起/卡住