使用eclipse C ++在OSX上创建应用程序包 [英] Creating an application bundle on OSX with eclipse C++

查看:207
本文介绍了使用eclipse C ++在OSX上创建应用程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Eclipse和C / C ++插件(使用 http://libcinder.org )编译了一个项目,
排序...

I have compiled a project using Eclipse with C/C++ plugin (using http://libcinder.org library, and it's working pretty good. Sort of...

这是一个窗口应用程序,opengl正确重新绘制屏幕,​​鼠标事件正确等。但是,我只能从终端运行应用程序,否则当我试图调试我可以看到我的控制台语句,但没有窗口。

It is a windowed application, and opengl is correctly redrawing the screen, mouse events are correct, etc. However, I can only run the application from the terminal, otherwise when i attempt to hit debug I can see my console statements but there's no window to speak of.

当我从应用程序输出CWD,它似乎认为它是从我的用户目录运行。

When i output the CWD from the application, it appears to think it is running from my user directory.

我如何使这个应用程序看起来更'mac喜欢',特别是当你右键单击一个mac应用程序,您可以查看其内容,并能够加载文件相对于应用程序可执行文件。

How can I make this application seem more 'mac like', specifically when you rightclick a mac application you can view it's contents, and be able to load files relative to the applications executable.

此外,任何洞察,为什么它不会出现时启动通过eclipse中的调试器也将是有帮助的。

Also, any insight as to why it does not appear when launching via debugger in eclipse would be helpful too.

我把这个项目一起为任何人谁可能会发现它有用的:
https://github.com/onedayitwillmake/EclipseLovesCinder

I have put this project together for anyone else who might find it useful here: https://github.com/onedayitwillmake/EclipseLovesCinder

推荐答案

嗯。这是一个架构问题。我不知道Eclipse如何捆绑资源,但他们不使用OSX内置的应用程序包体系结构。

Hmmm. This is an architecture problem. I don't know how resources are bundled by Eclipse normally, but they don't use the application bundle architecture that OSX has built in.

这里是苹果开发者文档在NSBundle。请在这里开始阅读!

这篇关于使用eclipse C ++在OSX上创建应用程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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