与 CGAL 的链接错误

2024-03-24

我在 Mac OS X (10.8.4) 上安装了 CGAL。我已成功地将 CGAL 的各个方面合并到以前的 C++ 程序中来计算 3D 点云的凸包。然而,现在我试图包含 CGAL 的其他部分来计算表面网格,将它们转换为多面体,等等。当我这样做时,程序编译得很好,但随后我收到了我不理解的链接错误。

这是我编译后的链接命令:

c++ -O2 -I/usr/local/include -I/usr/include -I/opt/local/include -o /Users/bullard/ShapeMetrology/Particle/bin/diffgeom diffgeom.a -L/usr/local/lib -L/usr/lib -L/opt/local/lib -lboost_math_c99 -lm -lCGAL -lCGAL_Core -lCGAL_ImageIO -lgmp

这是我收到的(相当详细的)链接错误:

Undefined symbols for architecture x86_64: "boost::detail::get_tss_data(void const*)", referenced from: CGAL::Lazy, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval >::zero() in diffgeom.a(Particle.o) boost::thread_specific_ptr, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval > >::reset(CGAL::Lazy, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval >*) in diffgeom.a(Particle.o) CGAL::Lazy > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >::zero() in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::reset(CGAL::Lazy > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >*) in diffgeom.a(Particle.o) CGAL::Lazy > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >::zero() in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::reset(CGAL::Lazy > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >*) in diffgeom.a(Particle.o) "boost::detail::set_tss_data(void const*, boost::shared_ptr, void*, bool)", referenced from: boost::thread_specific_ptr, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval > >::reset(CGAL::Lazy, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval >*) in diffgeom.a(Particle.o) boost::thread_specific_ptr, CGAL::Gmpq, CGAL::Lazy_exact_nt, CGAL::To_interval > >::~thread_specific_ptr() in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::reset(CGAL::Lazy > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >*) in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Point_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::~thread_specific_ptr() in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::reset(CGAL::Lazy > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > >*) in diffgeom.a(Particle.o) boost::thread_specific_ptr > >, CGAL::Sphere_3 >, CGAL::Gmpq, CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > > > >::~thread_specific_ptr() in diffgeom.a(Particle.o) "_mpfr_clear", referenced from: CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > > (CGAL::Sphere_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >::operator() >(CGAL::Sphere_3 const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Point_3 > const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Sphere_3 > const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 >, CGAL::To_interval, CGAL::Sphere_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_z_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_z_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_z_3 > >, CGAL::CartesianKernelFunctors::Compute_z_3 >, CGAL::To_interval, CGAL::Point_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_y_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_y_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) ... "_mpfr_get_d", referenced from: CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > > (CGAL::Sphere_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >::operator() >(CGAL::Sphere_3 const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Point_3 > const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Sphere_3 > const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 >, CGAL::To_interval, CGAL::Sphere_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_z_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_z_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_z_3 > >, CGAL::CartesianKernelFunctors::Compute_z_3 >, CGAL::To_interval, CGAL::Point_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_y_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_y_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) ... "_mpfr_init2", referenced from: CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > > (CGAL::Sphere_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >::operator() >(CGAL::Sphere_3 const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Point_3 > const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Sphere_3 > const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 >, CGAL::To_interval, CGAL::Sphere_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_z_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_z_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_z_3 > >, CGAL::CartesianKernelFunctors::Compute_z_3 >, CGAL::To_interval, CGAL::Point_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_y_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_y_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) ... "_mpfr_set_q", referenced from: CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > > (CGAL::Sphere_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >::operator() >(CGAL::Sphere_3 const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Point_3 > const&) const in diffgeom.a(Particle.o) CGAL::Cartesian_converter, CGAL::Simple_cartesian >, CGAL::NT_converter > >::operator()(CGAL::Sphere_3 > const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 > >, CGAL::CartesianKernelFunctors::Compute_squared_radius_3 >, CGAL::To_interval, CGAL::Sphere_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_z_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_z_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) CGAL::Lazy_rep_1, CGAL::Gmpq, CGAL::CartesianKernelFunctors::Compute_z_3 > >, CGAL::CartesianKernelFunctors::Compute_z_3 >, CGAL::To_interval, CGAL::Point_3 >::update_exact() const in diffgeom.a(Particle.o) CGAL::cpp11::result_of > >, CGAL::CartesianKernelFunctors::Compute_y_3 > > (CGAL::Point_3)>::type CGAL::Lazy_construction_nt > >, CGAL::CartesianKernelFunctors::Compute_y_3 > >::operator() >(CGAL::Point_3 const&) const in diffgeom.a(Particle.o) ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *[/Users/bullard/ShapeMetrology/Particle/bin/diffgeom] 错误 1

我在链接命令中缺少 CGAL 库吗?同样,当我使用 CGAL 来计算凸包时,我没有遇到任何问题,但现在我试图包含表面网格划分时,这个问题似乎出现了。

如果有帮助的话,我很乐意发布代码的相关部分,但目前我不知道哪些部分是相关的。


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

与 CGAL 的链接错误 的相关文章

随机推荐

  • 通过R中的卷积添加两个随机变量

    我想计算 R 中两个概率分布的卷积 我需要一些帮助 为了简单起见 假设我有一个变量 x 它呈正态分布 平均值 1 0 stdev 0 5 变量 y 呈对数正态分布 平均值 1 5 stdev 0 75 我想确定 z x y 据我所知 z 的
  • .prop() 与 .data()

    随着新版本的发布jQuery v1 6 http api jquery com category version 1 6 并添加了 prop method 使用上是否存在本质区别 prop over data 我在文档中看到 在 IE9 之
  • Spring MVC:发布请求和带有数组的 json 对象:错误的请求

    我正在尝试使用 Spring MVC 从 http POST 请求中检索参数 该请求包含以下 json 对象 内容类型 application json 该对象本身包含一个 customObjects 数组 globalId 338 lin
  • 有角。为什么调用markForCheck()结果来查看更新

    到处都说 markForCheck 只是将当前组件视图和所有父组件 直到根组件 标记为脏组件 因此 下次 DetectChanges 执行时 它将更新视图 从这一点上我有两个问题 两者都在该组件具有的上下文中changeDetection
  • 在php中,“return false”在echo语句之后会执行任何操作吗?

    当我在 php 中显示错误消息时 我通常这样做 if query Success code else Error message error msg An error occurred return false 我回应 error msg前
  • Bokeh:AttributeError:“DataFrame”对象没有属性“tolist”

    我是 pandas 和 bokeh 的新手 我正在尝试从 pandas 数据帧创建散点图 但是 我不断收到以下错误 new data colname df colname tolist AttributeError DataFrame ob
  • 发现扩展时遇到错误:Error Domain=PlugInKit Code=13“查询已取消”

    我正在尝试显示或上传 UIImage 但收到此错误 发现扩展时遇到错误 Error Domain PlugInKit Code 13 查询已取消 UserInfo NSLocalizedDescription 查询已取消 import UI
  • 宏中的 SAS 宏

    我有一个关于 macro 的问题 我可以在另一个 宏中设置 宏吗 简短的例子 情况的 图片 macro Tier 1 do Iter 1 to i macro Tier 2 proc sql noprint select 1 Iter in
  • SOAP 请求返回 wsdl 而不是预期的 SOAP 响应

    我的 SOAP 请求有问题 当我尝试向服务器发送以下肥皂请求时 它会返回 预期结果 地点 https YOUR SERVER apitransactional services TransactionalService wsdl Input
  • Ruby 相当于 grep -v

    这就是我一直在做的事情 my array reject elem elem regex each 我觉得这有点笨拙 但我还没有找到任何内置的东西可以让我将其更改为my array grepv regex 有这样的功能吗 Ruby 2 3 实
  • 如何使用DATA_PUMP导出到S3存储桶?

    我们有 RDS Oracle 实例 我需要将特定架构导出到转储文件中 导出工作并将转储文件复制到 DATA PUMP DIR 问题是 RDS 没有文件目录访问权限 我需要在 S3 上导出 DMP 文件或复制到另一个 EC2 实例 文章 LI
  • 轻松的十六进制/浮点转换

    我正在 c 和 python 程序之间进行一些输入 输出 仅浮点值 python 有一个很好的功能 可以将浮点值转换为十六进制数字并返回 如您在此链接中看到的 http docs python org library stdtypes ht
  • annotationProcessor gradle 4.7+ 配置不运行 lombok

    我在使用 gradle 4 7 项目时收到以下消息 The following annotation processors were detected on the compile classpath lombok launch Annot
  • IHTTPHandler 的无缓冲输出

    我想从一个流式传输数据IHttpHandler班级 我从数据库加载大量行 序列化并压缩它们 然后通过网络发送它们 另一方面 我希望我的客户端能够在服务器完成所有对象的序列化之前解压缩和反序列化数据 我在用着context Response
  • Angular 2 路由引发 404 错误

    HTML5 推送状态意味着刷新 URL 或在浏览器中输入直接 URL 当我使用以下命令运行我的 Angular 应用程序时效果非常好 npm start 来自 VS 2015 命令提示符的命令 但是 当我在 IIS 上部署相同的应用程序并更
  • Silverlight-DataGrid 控件-选择更改事件干扰排序

    我目前正在使用 Silverlight Beta 2 Datagrid 控件 在连接 SelectionChanged 事件之前 网格将通过单击标题完美排序 现在 当单击网格时 当我单击标题进行排序时 它将触发 SelectionChang
  • 从 panda 数据框中删除方括号

    我有一个数据框 我需要从中删除方括号才能输入到循环中 我尝试过使用 str strip 和 str commands 但是我收到错误消息 说我必须传递带有布尔值的数据帧 我的数据框中的值似乎是列表 m2 pd read csv newm2
  • Xamarin 中绑定 Jar 库时出现问题

    在绑定我的 jar 文件时 我不断在多个类中收到此错误 Error CS0534 path does not implement inherited abstract memberAndroid OS AsyncTask DoInBackg
  • SQL Server 数据库的大小有限制吗?

    我将用 C 开发一个系统 其中必须扫描和存储文档 我预计 dB 的大小将达到 3 4 TB 我的问题是可以将它们存储在数据库中还是数据库有限制 或者我是否必须将它们存储在文件夹中 提前致谢 是的 有一个限制 这取决于您使用的 SQL Ser
  • 与 CGAL 的链接错误

    我在 Mac OS X 10 8 4 上安装了 CGAL 我已成功地将 CGAL 的各个方面合并到以前的 C 程序中来计算 3D 点云的凸包 然而 现在我试图包含 CGAL 的其他部分来计算表面网格 将它们转换为多面体 等等 当我这样做时