简体   繁体   English

在Linux上与Eclipse交叉编译,在Windows上与Eclipse交叉编译?

[英]cross compiling with Eclipse on linux and eclipse on windows?

I am pretty much new to embedded device programming world so pardon my ignorance if any. 我对嵌入式设备编程世界非常陌生,请原谅我的无知。

I am cross compiling a C++ program on arm architecture with eclipse on ubuntu. 我正在用ubuntu上的eclipse交叉编译ARM体系结构上的C ++程序。 Then i have to burn the code and see the output with the device that has a linux kernel in it. 然后,我必须刻录代码并查看具有Linux内核的设备的输出。

Then i came across a tutorial about cross compiling C++ program on arm architecture with eclipse on Windows. 然后我遇到了一个关于在Windows上用Eclipse交叉编译ARM体系结构上的C ++程序的教程。 So my question is, Can i run this program (from windows) on my embedded device which has a linux kernel in it???? 所以我的问题是,我可以在装有Linux内核的嵌入式设备上运行该程序(从Windows)吗?

Thanks A 谢谢

If you are using a cross compiler, then the answer is yes. 如果您使用的是交叉编译器,那么答案是肯定的。 It should produce a linux libraries and executive file. 它应该产生一个linux库和执行文件。 You might need to adjust the files parameters (like set permissions and execute flag). 您可能需要调整文件参数(例如设置权限和执行标志)。

Yes. 是。

eclipse is a great tool, especially when coupled with gcc. eclipse是一个很棒的工具,尤其是与gcc结合使用时。 You can definitely use a ready-built compiler to extend eclipse as long as that compiler is available for Windows. 只要该编译器可用于Windows,您肯定可以使用现成的编译器来扩展Eclipse。

Here is a link to some documentation on how to change the toolchain in an eclipse project - http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.user/reference/cdt_u_prop_build_toolchain.htm 这是有关如何在eclipse项目中更改工具链的一些文档的链接-http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.user/reference/ cdt_u_prop_build_toolchain .htm

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

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