简体   繁体   English

sdk可以构建我的cmake项目,但是bitbake中的配方不能

[英]sdk can build my cmake project but recipe in bitbake can't

I can build my project with the toolchain which yocto generates for me. 我可以使用yocto为我生成的工具链来构建项目。 but when I wrote a recipe for building and adding it in an image I get this error in do_compile: 但是,当我写了一个用于构建并将其添加到映像中的食谱时,在do_compile中出现此错误:

fatal error: stdio.h: NO such file or directory

why this happened and how to fix it? 为什么会发生这种情况以及如何解决?

I found the problem. 我发现了问题。 I was setting compiler Flags in my CMakeList.txt. 我在CMakeList.txt中设置了编译器标志。 After deleting all of them, the problem was fixed. 删除所有这些文件后,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM