自动构建春分 PDE:可执行文件不起作用

发布于 2024-09-06 20:07:47 字数 785 浏览 5 评论 0原文

我创建了一个 OSGi 项目,其中有 2 个项目: - 一个插件项目:包含我的源文件、使用我的功能项目的产品配置和功能 org.eclipse.equinox.p2.ui.user。这意味着我的程序能够安装新软件或更新程序。 - 一个包含我的插件项目的功能项目。

我可以在 eclipse 中运行我的程序,它可以工作。我可以从 eclipse 导出我的产品配置,然后启动我的程序:它可以工作。

之后,我想用eclipse的PDE框架自动构建我的程序。我遵循了本教程: http://help.eclipse.org/ help32/index.jsp?topic=/org.eclipse。 pde.doc.user/guide/tasks/pde_product_build.htm 。我能够为 Windows、Linux 和 Mac 操作系统生成我的程序。 windows和linux的可执行文件都可以工作。但是,mac os 的可执行文件不起作用。

当我单击该图标时,没有任何反应,也没有错误。为了能够在 mac os 上启动,我必须将文件 myExecutable.app/Contents/MacOS/eclipse 替换为 Eclipse.app/Contents/MacOS/eclipse 之一。看来我生成的可执行文件的“eclipse”文件格式不正确。

你知道这个问题的原因是什么吗?或者如果你有线索可以帮我解决这个问题。

非常感谢你,

蝙蝠

I created an OSGi project in which one I've 2 projects :
- one plugin project : that contains my source files, my product configuration that uses my feature project and the feature org.eclipse.equinox.p2.ui.user. It means that my program is able to install new software or to update the program.
- one feature project that contains my plugin project.

I can run my program into eclipse, It works. I can export my product configuration from eclipse and then launching my program : it works.

After that, I'd like to build automaticaly my program with the framework PDE of eclipse. I followed this tutorial : http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. pde.doc.user/guide/tasks/pde_product_build.htm . I'm able to generate my program for Windows,Linux and Mac os. The executables of windows and linux work. However, the executable of mac os doesn't work.

When I click on the icon, nothing happens and I've no error. To be able to launch on mac os, I've to replace the file myExecutable.app/Contents/MacOS/eclipse by the one of Eclipse.app/Contents/MacOS/eclipse. It seams that the file "eclipse" of my generated executable is not in the right format.

Do you know what is the reason of this problem? Or maybe if you have a clue for me to solve that.

Thank you very much,

Bat

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

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

发布评论

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

评论(1

海夕 2024-09-13 20:07:47

如果右键单击 myExecutable.app 并选择“显示包内容”,您可以深入查找实际的可执行文件。您可以从 shell 提示符运行此命令并查看任何错误输出。您还可以在隐藏在 .app 内的结构中找到日志。

我建议将您的可执行应用程序的 eclipse.ini 文件与 Eclipse 中适合您的文件进行比较。您可能缺少一个选项,您可以将其添加到 .product Mac OS X 特定选项中。

If you right click on myExecutable.app and select 'Show Package Contents', you can drill in to find the actual executable. You can run this from a shell prompt and see any error output. You can also find the logs in the structure hidden inside the .app.

I'd recommending comparing the eclipse.ini files for your executable app and the one from Eclipse that is working for you. There may be a option that you are missing that you can add to your .product Mac OS X specific options.

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