在 Solaris 上构建 Boost

发布于 2024-12-17 10:03:37 字数 318 浏览 0 评论 0原文

Boost 会完全构建在 Solaris 上吗?

在我去支付支持合同以将 Sun Studio 12.2 修补到最新版本之前,我想知道是否有人在这方面取得了成功(特别是 Proto/Spirit)。我遇到了一些错误,有些错误看起来已经在补丁中得到了解决,但是向 Oracle 支付支持费用并不便宜,所以我宁愿希望它能在我这样做之前起作用。

现在,我只是尝试在 Solaris 上使用 cpp-netlib 并使用 Boost Property Tree 解码通过 HTTP 获取的一些 JSON。它在 Mac OS X 上运行良好 - 所以我希望我可以在 Solaris 上使用相同的代码。

Will Boost build in entirety on Solaris?

I'd like to know if anyone has success with this (specifically Proto/Spirit) before I go and pay for a support contract to patch Sun Studio 12.2 to the latest. I get a few errors and some look to have been resolved in patches, but it's not cheap to pay Oracle for support so I'd rather some hope that it will work before I do.

Right now, I'm just trying to use cpp-netlib on Solaris and decode some JSON fetched over HTTP using Boost Property Tree. It works fine on Mac OS X - so I'm hoping I can use the same code on Solaris.

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

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

发布评论

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

评论(2

残疾 2024-12-24 10:03:37

如果您查看 http://www.boost.org/users/history/version_1_48_0.html ,您将看到两个编译器列表。 “主要”编译器是针对该版本进行测试的编译器。那里没有基于 Solaris 的编译器。

第二个列表是主干的测试对象(或多或少每天)。 Sun 编译器 v 5.10 就在该列表中。

现在,您可以查看 http://www.boost.org/development /tests/trunk/developer/summary.html,并找到该编译器的测试结果。从那里,您可以找到 Sun 编译器的专栏,并检查哪些测试失败(以及原因)。

然而,看起来几乎所有的精神测试在该编译器上都失败了,所以我不抱太大希望。

... 之后 ...
但是,由于您使用的编译器不同,您可能需要查看 http://www .boost.org/development/running_regression_tests.html,它向您展示了如何使用您的安装运行回归测试。然后您可以看到 boost 与您的编译器的配合情况如何。

If you look at http://www.boost.org/users/history/version_1_48_0.html, you'll see two lists of compilers. The "primary" compilers are those that the release is tested against. There are no Solaris-based compilers there.

The second list is what the trunk is tested against (on a more or less daily basis). The Sun compiler v 5.10 is on that list.

Now, you can look at http://www.boost.org/development/tests/trunk/developer/summary.html, and find the test results for that compiler. From there, you can find the column for the Sun compiler, and check which tests are failing (and why).

However, it looks like pretty much all the spirit tests are failing on that compiler, so I wouldn't hold out much hope.

... Later ...
However, since you are using a different compiler than that, you might want to look at http://www.boost.org/development/running_regression_tests.html, which shows you how to run the regression tests using your installation. Then you can see how well boost works with your compiler.

尘曦 2024-12-24 10:03:37

我使用 Apache stdcxx 4.2.1 C++ 库在 Solaris 上编译了 boost 1.54.0。其中涉及一些差异和一个 CLI 配方,但它已经完成了 99% :) 如果我找到合适的位置来上传差异,我会更新它。

英特尔 Solaris 10 和11

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 53 targets...
...skipped 37 targets...
...updated 10652 targets...

SPARC 10

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 49 targets...
...skipped 42 targets...
...updated 10649 targets...

这些软件包可以在我的软件包存档中找到:

http://www. ibiblio.org/pub/packages/solaris/sparc/

boost.1.54.0.SPARC.64bit.Solaris.10.pkg
boost.1.54.0.i86pc.Solaris.10.pkg
boost.1.54.0.i86pc.Solaris.11.pkg

I've compiled up boost 1.54.0 on Solaris, using the Apache stdcxx 4.2.1 C++ library. There's a few diffs involved and a CLI recipe, but it's 99% built :) If I find a suitable place to upload the diffs I'll update this.

Intel Solaris 10 & 11

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 53 targets...
...skipped 37 targets...
...updated 10652 targets...

SPARC 10

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 49 targets...
...skipped 42 targets...
...updated 10649 targets...

The packages can be found on my packages archive at:

http://www.ibiblio.org/pub/packages/solaris/sparc/

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