使用 Autotools 插件从 Eclipse 调用 autoreconf 时出错

发布于 2024-11-18 16:21:57 字数 820 浏览 4 评论 0原文

我从以下位置安装了 Eclipse 的 Autotools 插件: http://www.eclipse.org/linuxtools/projectPages /自动工具/

然后,我首先在 Eclipse CDT 中创建一个新的 C++ 项目,然后导入源文件,然后将该项目转换为 Autotools 项目,从而导入现有的 C++ 项目。但是,在此转换之后,我收到一条错误消息,显示“

Invoking autoreconf in build directory: /home/user/Development/cpp/workspace/testproject

sh autoreconf -i 
sh: Can't open autoreconf

Configuration failed with error

我的项目中与 autoconf 相关的唯一文件是 configure.ac”、Makefile.amsrc/Makefile.am。从命令行使用 autoreconf --install 构建项目工作正常。

为什么它尝试使用 sh 启动 autoreconf -i?如果我从命令行尝试这样做,它也不起作用(找不到文件 autoreconf)。当我从命令行调用它时,我不使用 sh 来调用它。

提前致谢!

I installed the Autotools plugin for Eclipse from: http://www.eclipse.org/linuxtools/projectPages/autotools/.

I then imported an existing C++-project by first creating a new C++-project in Eclipse CDT, then importing the source files, and then converting the project to a Autotools project. However, after this conversion I get an error message that says

Invoking autoreconf in build directory: /home/user/Development/cpp/workspace/testproject

sh autoreconf -i 
sh: Can't open autoreconf

Configuration failed with error

The only files I have in my project that is related to autoconf is configure.ac, Makefile.am, src/Makefile.am. It is working fine to build the project using autoreconf --install from the command line.

Why does it try to launch autoreconf -i using sh? If I try that from the command line, it doesn't work either (the file autoreconf is not found). When I invoke it from the command line, I invoke it without sh.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我ぃ本無心為│何有愛 2024-11-25 16:21:57

在我的 Ubuntu 11.04 中,dash/bin/sh 的默认目标,而且 eclipse 似乎因此而陷入困境。

您可以使用sudo dpkg-reconfigure dash更改链接。选择“否”将 /bin/sh 恢复为 bash 的链接。

In my Ubuntu 11.04, dash was the default target for /bin/sh and it appears that eclipse is getting tripped up by this.

You can change the link with sudo dpkg-reconfigure dash. Choose "No" to restore /bin/sh as a link to bash.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文