ld:osX 机器上的重复符号 [libpmk]

发布于 2024-12-27 11:34:10 字数 546 浏览 3 评论 0原文

我正在尝试编译 libpmk 库 http://people.csail.mit.edu /jjl/libpmk/#docs 遵循此处的文档 http://people.csail.mit.edu/jjl/libpmk/documentation/

我在 osx 上运行,在“make libpmk”之后出现此错误:

ld:pyramid/pyramid-maker.o 和 histograms/multi-resolution-histogram.o 中的重复符号 __ZN6libpmk10SparseTreeINS_3BinEE4rootEv 用于推断架构 x86_64

有人知道如何解决这个问题吗? 我尝试在 Ubuntu 上编译,它可以工作!

I'm try to compiling the libpmk library http://people.csail.mit.edu/jjl/libpmk/#docs following the documentation here http://people.csail.mit.edu/jjl/libpmk/documentation/ .

I'm running on osx and after the "make libpmk" i've got this error:

ld: duplicate symbol __ZN6libpmk10SparseTreeINS_3BinEE4rootEv in pyramids/pyramid-maker.o and histograms/multi-resolution-histogram.o for inferred architecture x86_64

Does anybody know how to solve this?
I tried to compile on Ubuntu and it works!

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

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

发布评论

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

评论(1

撕心裂肺的伤痛 2025-01-03 11:34:10

我已经编译了它,尽管我还没有机会对其进行全部测试。删除或注释掉以下行(文件位于 libpmk 目录下):

clustering/hierarchical-clusterer.h:27:  template class Tree<PointTreeNode>;
histograms/multi-resolution-histogram.h:18:  template class SparseTree<Bin>;

应该可以解决问题并允许其编译。这些行号适用于 v2.5。

I got it to compile, though I haven't had a chance to test it all out yet. Removing or commenting out the following lines (files are under the libpmk directory):

clustering/hierarchical-clusterer.h:27:  template class Tree<PointTreeNode>;
histograms/multi-resolution-histogram.h:18:  template class SparseTree<Bin>;

should fix the problem and allow it to compile. These line numbers are for v2.5.

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