Eclipse的交叉编译......我该怎么办呢? [英] Eclipse cross-compile... how can I do that?

查看:321
本文介绍了Eclipse的交叉编译......我该怎么办呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的C code。使用Eclipse的Windows机器上。
所有文件的物理位置在Linux服务器上。
我使用Eclipse只为编辑和code浏览。
当我想编译,我打开一个终端和telnet到Linux服务器从中我打电话,设置了几个变量的文件,最终调用make命令。

I am developing on a Windows machine using Eclipse in C code. All the files are physically located on a Linux server. I am using Eclipse only for editing and code browsing. When I want to compile, I open a terminal and telnet to the Linux server from which I call a file that sets up few variables and eventually invoke a "make" command.

该服务器是pretty忙..然后我希望能够在本地[编译,然后局限于FTP这些可执行文件返回到Linux机器,这样我可以执行它们。除非Eclipse可以做到这一点的自己的:)] ....任何想法怎么可能做到?我没有得到很好的Eclipse或OS使用熟悉....所以,如果你能回答,并解释我应该做的..我真的AP preciate ...

The server is pretty busy.. I would then like to be able to compile locally [and then just ftp these executable files back to the Linux machine so that I can execute them.. unless Eclipse can do that on its own :) ].... any idea how can that be done? I am not well versed in Eclipse or OS usage.... so if you could answer and explain what I should do.. I would really appreciate...

我刚好打电话我通常调用编译......看起来相当简单的服务器上的脚本文件改变了Build命令下项目属性菜单..嗯...这是好得是真实的...和当然..它没有工作!如果我使用默认的制造(不能运行程序作:启动失败)我得到这个错误....同时获得(不能运行程序T:\\纂要:启动失败),如果我尝试调用我的我用它来编译脚本文件...

I changed the Build Command under Project Properties menu by just calling the script file on the server I usually invoke to compile... That looked fairly simple.. well... that was too good to be true... and of course.. it didn't work! I am getting this error if I use the default "make" (Cannot run program "make": Launching failed).... while getting (Cannot run program "T:\compile": Launching failed) if I try to invoke my script file that I use to compile...

感谢,

推荐答案

您应该看一看运行的的crosstool-ng的您的Windows盒子里面设置 cygwin的。然后让Eclipse使用该编译器。这将允许你开发你的目标Linux平台很容易。

You should take a look at running a crosstool-ng setup on your windows box inside cygwin. And then have eclipse use that compiler. This will allow you to develop for your target Linux platform easily.

下面是一些幻灯片

这听起来像你的桌面/服务器平台开发,所以你必须确保您设置的crosstool-ng了同一版本的标准库,因为你的服务器有(libc的,的libstdc ++等) 。你也想​​确保你的crosstool-NG具有GCC的版本相同的目标也是如此。

It sounds like you're developing for a desktop/server platform, so you'll have to make sure you set up your crosstool-ng with the same versions of standard libs as your server has (libc, libstdc++, etc). You also want to make sure your crosstool-ng has the same version of gcc as the target as well.

如果你不想与得到所有的设置混乱,你总是可以安装Linux作为你的窗户框虚拟机和工作在里面。

If you don't want to mess with getting all that setup, you could always install Linux as a virtual machine on your windows box and work inside there.

这篇关于Eclipse的交叉编译......我该怎么办呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆