已构建Eclipse CDT项目,但启动失败。找不到二进制文件” [英] Eclipse CDT project built but "Launch Failed. Binary Not Found"

查看:127
本文介绍了已构建Eclipse CDT项目,但启动失败。找不到二进制文件”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7,Eclipse CDT,Juno Service Release 2,交叉编译器。

Windows 7, Eclipse CDT, Juno Service Release 2, Cross compiler.

项目确实可以编译生成的可执行文件,但是Eclipse无法看到它们。因此,运行失败。可执行文件位于Debug目录中。双击或命令提示符调用已编译的可执行文件都可以正常工作。

Projects do compile executables generated, but Eclipse can't see them; therefore 'Run' fails. Executables are placed in Debug directory. Double click or command prompt call on compiled executable works without problem.

我该如何解决?

推荐答案

我想我找到了解决方案-必须选择适当的二进制解析器,以便Eclipse可以识别可执行文件:

I think I found solution - proper binary parser must be selected so Eclipse can recognize the executable:

选择项目,然后单击鼠标右键。 Project-> Properties-> C / C ++ Build-> Settings-> Binary Parsers,PE Windows Parser。

即如果使用Cygwin编译器,则应使用Cygwin解析器。

I.e. if Cygwin compiler is used then Cygwin parser should be used.

这至少对交叉编译器(在Windows 7和Ubuntu 12.04上)有用。在Linux上,我使用 Elf 解析器。

That worked for me at least for Cross-compiler (both on Windows 7 and Ubuntu 12.04). On Linux, I use Elf parser.

如果有人有更好的解决方案,请告知。

If anyone has the better solution, please advise.

这篇关于已构建Eclipse CDT项目,但启动失败。找不到二进制文件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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