Mac 上的应用程序包是什么?

发布于 2024-08-19 13:02:16 字数 268 浏览 2 评论 0原文

我有一个使用 g++ 和 -framework 构建的基本 C++ 应用程序...

当我运行它时,我得到一个 :

Working in unbundled mode.  You should build a .app wrapper for your Mac OS X applications.

(这不是我的任何应用程序计算的 std::cout)。

造成这种情况的原因是什么?我该如何摆脱它?

谢谢!

I have a basic C++ applicatin build using g++ and -framework ...

when I run it, I get a :

Working in unbundled mode.  You should build a .app wrapper for your Mac OS X applications.

(which is not std::couted by any of my application).

What causes this, and how can I get rid of it?

Thanks!

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

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

发布评论

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

评论(1

习ぎ惯性依靠 2024-08-26 13:02:16

您需要创建一个文件夹结构并将二进制文件放置在一个特殊位置。有关说明的示例,请参阅此 Qt 页面

Mac OS X 将大多数应用程序作为“捆绑包”处理。捆绑包是将相关文件分组在一起的目录结构。捆绑包用于 GUI 应用程序、框架和安装程序包。这些文件在 Finder 中作为一个文件呈现给用户。如果设置正确,捆绑包可以轻松部署。人们所需要做的就是使用某种首选方法对应用程序进行归档。然后,用户打开存档并将应用程序拖到他们喜欢的任何地方,然后就可以开始使用了。

也有一些关于 wxWidgets 的文章

MacOSX 引入了一种组合应用程序的新方法。您可以简单地创建一个特殊的目录(文件夹),而不是向可执行文件添加资源分支。这是 OSX 的首选方法。

You need to create a folder structure and place the binary in a special location. For an example with explanation see this Qt page

Mac OS X handles most applications as "bundles". A bundle is a directory structure that groups related files together. Bundles are used for GUI applications, frameworks, and installer packages. These are presented to the user as one file in the Finder. When set up correctly, bundles make for easy deployment. All one needs to do is to archive the application using some preferred method. Users then open the archive and drag the application to wherever they please and are ready to go.

There is something written about this for wxWidgets too

MacOSX introduces a new way of putting together an application. Instead of adding a resource fork to the executable file, you can simply create a special directory (folder). This is the preferred method for OSX.

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