简体   繁体   English

如何在 Windows 上使用 Eclipse 交叉编译树莓派

[英]How to Cross-Compile Raspberry Pi using Eclipse on Windows

Recently, I got a new raspberry pi, and I want to use Eclipse on Windows with MinGW compiler to build c++ codes and run them on the raspberry pi.最近拿到了一个新的树莓派,想在Windows上用Eclipse和MinGW编译器来构建c++代码并在树莓派上运行。 Is there any way to do that?有没有办法做到这一点?

You need Cross-Compilation.你需要交叉编译。 When you create a project you need to Select the Cross GCC Toolchain and you need to set the Cross compile prefix to: "arm-linux-gnueabihf-"创建项目时需要选择Cross GCC Toolchain,并且需要将Cross compile前缀设置为:“arm-linux-gnueabihf-”

Tutorial 教程

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

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