在 Snow Leopard 上编译 wxWidget

发布于 2024-08-31 14:28:49 字数 478 浏览 3 评论 0原文

我刚刚在我的雪豹机器上下载了wxWidget源代码。源代码是多平台的,因此它还包含wxWidget的windows和GTK组件。我想编译wxWidget源代码,但还没有找到好的指南。

这是我创建多平台项目的第一步,希望以后能够使用 CMake 生成 makefile。

任何帮助将不胜感激。

编辑:为了澄清,我想在 Snow Leopard 上构建 wxWidget 的稳定版本,它将在 OS X 10.6.x 上构建 wxWidget 2.8.x。我在这里阅读了编译wiki http://wiki.wxwidgets.org/Development:_wxMac #Building_under_10.6_Snow_Leopard 不幸的是,这没有帮助。

I just downloaded wxWidget source code on my snow leopard machine. The source code is the multiplatform one, so it contains windows and GTK components of wxWidget as well. I'd like to compile the wxWidget source code, but haven't found a good guide yet.

This is my first step to create a multiplatform project, hopefully I would be able to use CMake to generate makefile later on.

Any help would be appreciated.

EDIT: Just to clarify, I'd like to build stable release of wxWidget on Snow Leopard, it would be building wxWidget 2.8.x on OS X 10.6.x. I have read the compiling wiki here http://wiki.wxwidgets.org/Development:_wxMac#Building_under_10.6_Snow_Leopard
Unfortunately, it didn't help.

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

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

发布评论

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

评论(2

栀子花开つ 2024-09-07 14:28:49

我喜欢使用configure/make/make install:

./configure --enable-monolithic --enable-universal_binary --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
make
sudo make install

我刚刚用wxWidgets 2.9.0尝试过这个,效果很好。

I like using configure/make/make install:

./configure --enable-monolithic --enable-universal_binary --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
make
sudo make install

I just tried this with wxWidgets 2.9.0 and it worked great.

天生の放荡 2024-09-07 14:28:49

wxWiki 始终是指南的好地方,特别是各种 OSX 指南和额外注释这里关于在 10.6 下编译的信息。

值得注意的是,当前的稳定版本和主干之间发生了许多变化,特别是在 Cocoa 的移植方面做了很多工作。

使用 CMake 非常简单,只需检查 CMake 中的 FindWxWidgets.cmake 文件以获取说明,您还可以查看 CMake 文档(我会给出链接,但它们现在似乎还没有启动)。

The wxWiki is always a good place for guides, specifically the various OSX guides and the extra note here about compiling under 10.6.

It would also be good to note that there have been many changes between the current stable releases and the trunk, specifically much work has been done on a port to Cocoa.

Using CMake is pretty straight forward, just check the FindWxWidgets.cmake file in CMake for instructions, you can also check out the CMake docs (I would give the link but they don't seem to be up right now).

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