ninja Compiling the C compiler identification source file CMakeCCompilerId.c failed
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed
同时,控制台也报错:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
原因是没有找到编译器,
1.没有安装
2.可能路径写错了,或者版本不对。
ubuntu子系统访问windows系统是,盘符必须小写
没有找到ndk,ndk路径写错了
再Ubuntu子系统里面,区分大小写,Windows盘符必须小写,
比如D盘,子系统中是:
/mnt/d/
修改./bashrc文件,
export ANDROID_NDK=/mnt/d/soft/android-ndk-r23-linux/android-ndk-r23
windows解决方法:
1.
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
2.
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags: -c
The output was:
系统找不到指定的文件。
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
系统找不到指定的文件。
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
系统找不到指定的文件。
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: --c++
The output was:
系统找不到指定的文件。
ninja Compiling the C compiler identification source file CMakeCCompilerId.c failed相关推荐
- fatal error C1083: Cannot open source file
在VS2008 VC++项目中,新建了一个cpp文件,然后在物理硬盘上手动删除了,就出现如下错误. 1>------ Build started: Project: test, Configu ...
- 在aarch64-himix100-linux-gcc下cmake报错(The C compiler identification is unknown)
项目场景: 华为好望角AI摄像头C系列的算法移植过程中,遇到cmake报错 问题描述: gcc: aarch64-himix100-linux-gcc CMakeLists.txt文档: cmake_ ...
- error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
vc里面遇到这个问题的解决方案 error C4335: Mac file format detected: please convert the source file to either DOS ...
- checking for C++ compiler default output file name
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create e ...
- Eclipse - CDT使用GDB调试C++的问题-无源文件命名(No source file named)
CDT使用GDB调试C++的问题(No source file named) 本文地址: http://blog.csdn.net/caroline_wendy/article/details/170 ...
- Fatal Error[Pe1696]:cannot open source file “sys.h”
STM32的IAR工程报错: Fatal Error[Pe1696]: cannot open source file "sys.h" 解决方法: 将#include " ...
- 报错 The CUDA compiler identification is unknown;No CMAKE_CUDA_COMPILER could be found.
在cmake的编译过程中,可能会报找不到cuda编译器的错误,如下 -- The CUDA compiler identification is unknown CMake Error at CMak ...
- hive报错Could not get block locations. Source file “/user/hive/warehouse/xxx
hive报错 Could not get block locations. Source file "/user/hive/warehouse/xxx... 以及 Caused by: or ...
- 文件路径名太长导致IAR编译报错:Fatal Error[Pe1696]: cannot open source file
在用IAR编译CC2640R2F工程的时候,报错: gattservapp_util.c Fatal Error[Pe1696]: cannot open source file "xd ...
最新文章
- java 流程控制_《Java基础知识》Java流程控制
- 向PHP使用Post方式上传文件
- java 混合排序_字母、数字混合方式,按照自然语言排序,java版
- 1、计算机系统硬件(面试小知识)
- 充分利用移动支付系统的10种方法
- 接口本地正常服务器报500_运维该如何解决服务器底层维护难题?
- 使用共享网口方式访问BMC管理控制器
- Salt Master外部Job Cache配置
- 本周Java技巧#7 – Maven慢吗?
- 【KMP模板】简单写个KMP~
- mysql5.7.18压缩包下载_Windows安装MySQL5.7教程
- 来看看程序员们是怎么自黑的
- 初识shardingsphere
- vscode 文件夹中查找_真香!使用 VSCode 进行远程开发调试
- DirectX11 With Windows SDK--03 索引缓冲区、常量缓冲区
- CentOS/Ubuntu 14.10 安装 phpstorm
- 学习笔记1/5,操作系统之操作系统概念
- sklearn决策树特征权重计算方法
- 乱了夏末蓝了海,伤了初冬白了城。
- 360极速浏览器如何设置ie8兼容模式
热门文章
- 安装 Windows8 后值得做的十多项简单优化,让Win8速度快上加快!
- C++ string类型占几个字节
- 引用Drawable颜色常数及背景色
- Java学习之if-else简单方法小程序
- 计算机专业申请计算生物学,卡内基梅隆大学计算生物学硕士专业
- C语言函数strstr 分析及实现
- NeHe教程Qt实现——lesson08
- curl 视频vip接口 php,php中CURL的使用方法及详解教程
- 普通话书籍计算机辅助,计算机辅助普通话水平测试指南
- mysql超详细教程_MySQL8.0.23安装超详细教程