c++ - 当我尝试使用来自 github 的 GRANSAC 代码时,架构 x86_64 的未定义符号
问题描述
我正在尝试使用此 github 存储库中的 GRANSAC(Generic RANSAC)。https://github.com/drsrinathsridhar/GRANSAC 当我使用 cmake 构建时,会发生此错误,我不知道如何解决。
架构 x86_64 的未定义符号:“_omp_get_max_threads”,引用自:GRANSAC::RANSAC::Estimate(std::__1::vector, std::__1::allocator >
LineFittingSample.cpp.o 中的 const&) LineFittingSample.cpp.o "_omp_get_thread_num" 中的 GRANSAC::RANSAC::RANSAC(),引用自:GRANSAC::RANSAC::Estimate(std::__1::vector, std::__1 ::allocator > const&) 在 LineFittingSample.cpp.o "_omp_set_dynamic" 中,引用自: LineFittingSample.cpp 中的 GRANSAC::RANSAC::Estimate(std::__1::vector, std::__1::allocator > const&)。 o "_omp_set_num_threads",引用自:LineFittingSample.cpp.o ld 中的 GRANSAC::RANSAC::Estimate(std::__1::vector, std::__1::allocator > const&):未找到架构的符号x86_64 clang:错误:链接器命令失败,退出代码 1(使用 -v 查看调用)make[2]:* [LineFittingSample] 错误 1 make[1]:*[CMakeFiles/LineFittingSample.dir/all] 错误 2 make: *** [all]
错误 2
环境:MacOS Mojave 版本 10.14.16
解决方案
推荐阅读
- javascript - 为什么多个远程联合模块不适用于多个远程子反应应用程序和父应用程序?
- snowflake-cloud-data-platform - load_history 视图是否显示使用 copy into 命令加载的空文件的记录?
- python - pyodbc.ProgrammingError: ('SQL 包含 2 个参数标记,但提供了 34 个参数', 'HY000')
- unit-testing - 将逻辑放在对象的密钥对值中是一种好习惯吗?(声纳问题)
- python-3.x - 如何在 Python 3.8 中过滤两个 dict 列表
- python - Python - 将数据拟合到双指数函数
- magento2 - Magento 2:从自定义来源获取库存数量
- go - 如何正确从 GO 中的 url 获取内容?
- python - 最大化复杂多变量函数的计算有效方法
- android - 为 react-native 设置环境并将正在开发的应用程序运行到手机中时出错