Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build from source on Ubuntu 12.04 #51

Closed
pmolina7 opened this issue Nov 13, 2014 · 10 comments
Closed

cannot build from source on Ubuntu 12.04 #51

pmolina7 opened this issue Nov 13, 2014 · 10 comments

Comments

@pmolina7
Copy link

I am unable to build libpointmatcher (master branch) from source.
I tried using the PPAs but for precise they conflict with the ROS version of yaml cpp.

I have Eigen and Boost installed.
Installed libNabo from source as well.(master branch)

There are linking errors:

Linking CXX executable align_sequence
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const [clone ._omp_fn.5]':
kdtree_cpu.cpp:(.text+0xc93): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0xd34): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0xd4b): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const [clone ._omp_fn.4]':
kdtree_cpu.cpp:(.text+0x1013): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x10d4): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x10eb): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const [clone ._omp_fn.1]':
kdtree_cpu.cpp:(.text+0x13ac): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x144c): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x1463): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const [clone ._omp_fn.0]':
kdtree_cpu.cpp:(.text+0x172c): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x17ec): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x1803): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const [clone ._omp_fn.7]':
kdtree_cpu.cpp:(.text+0x1d1b): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x1dbc): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x1dd3): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const [clone ._omp_fn.6]':
kdtree_cpu.cpp:(.text+0x205b): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x211c): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x2133): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const [clone ._omp_fn.3]':
kdtree_cpu.cpp:(.text+0x23bc): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x245c): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x2473): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const [clone ._omp_fn.2]':
kdtree_cpu.cpp:(.text+0x26fc): undefined reference to `GOMP_loop_guided_start'
kdtree_cpu.cpp:(.text+0x27bc): undefined reference to `GOMP_loop_guided_next'
kdtree_cpu.cpp:(.text+0x27d3): undefined reference to `GOMP_loop_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_25IndexHeapBruteForceVectorIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_ifjf[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const]+0x142): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_25IndexHeapBruteForceVectorIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_ifjf[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const]+0x151): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_25IndexHeapBruteForceVectorIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IfLin1ELi1ELi0ELin1ELi1EEEifj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const]+0x14a): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_25IndexHeapBruteForceVectorIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IfLin1ELi1ELi0ELin1ELi1EEEifj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapBruteForceVector<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const]+0x159): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_25IndexHeapBruteForceVectorIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_idjd[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const]+0x14e): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_25IndexHeapBruteForceVectorIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_idjd[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const]+0x15d): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_25IndexHeapBruteForceVectorIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IdLin1ELi1ELi0ELin1ELi1EEEidj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const]+0x14d): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_25IndexHeapBruteForceVectorIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IdLin1ELi1ELi0ELin1ELi1EEEidj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapBruteForceVector<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const]+0x15c): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_12IndexHeapSTLIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_ifjf[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const]+0x142): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_12IndexHeapSTLIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_ifjf[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, int, float, unsigned int, float) const]+0x151): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_12IndexHeapSTLIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IfLin1ELi1ELi0ELin1ELi1EEEifj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const]+0x14a): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIfNS_12IndexHeapSTLIifEEE3knnERKN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IfLin1ELi1ELi0ELin1ELi1EEEifj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<float, Nabo::IndexHeapSTL<int, float> >::knn(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, -1, 0, -1, -1>&, Eigen::Matrix<float, -1, 1, 0, -1, 1> const&, int, float, unsigned int) const]+0x159): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_12IndexHeapSTLIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_idjd[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const]+0x14e): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_12IndexHeapSTLIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_idjd[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, int, double, unsigned int, double) const]+0x15d): undefined reference to `GOMP_parallel_end'
/usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): In function `Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const':
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_12IndexHeapSTLIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IdLin1ELi1ELi0ELin1ELi1EEEidj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const]+0x14d): undefined reference to `GOMP_parallel_start'
kdtree_cpu.cpp:(.text._ZNK4Nabo48KDTreeUnbalancedPtInLeavesImplicitBoundsStackOptIdNS_12IndexHeapSTLIidEEE3knnERKN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS5_IiLin1ELin1ELi0ELin1ELin1EEERS6_RKNS5_IdLin1ELi1ELi0ELin1ELi1EEEidj[Nabo::KDTreeUnbalancedPtInLeavesImplicitBoundsStackOpt<double, Nabo::IndexHeapSTL<int, double> >::knn(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int, double, unsigned int) const]+0x15c): undefined reference to `GOMP_parallel_end'
collect2: ld returned 1 exit status
make[2]: *** [examples/align_sequence] Error 1
make[1]: *** [examples/CMakeFiles/align_sequence.dir/all] Error 2
make: *** [all] Error 2

Please let me know if I am making a mistake.
Thank you for your time and help.

@pomerlef
Copy link
Collaborator

I suspect that your CMake is not pointing to libnabo or something related. Did you follow this:
https://github.com/ethz-asl/libpointmatcher/blob/master/doc/Compilation.md

If it doesn't work, could you post your CMakeCache.txt?

@simonlynen
Copy link
Contributor

Libpoint matcher has to compile with openmp. @pomerlef you need to add the openmp flag to pointmatcher's cmakelist.

@simonlynen
Copy link
Contributor

@pomerlef
Copy link
Collaborator

@simonlynen Any ways to have those flags optional? There are quite some code relying on libnabo...

@stephanemagnenat
Copy link
Collaborator

If the flag is required, shouldn't it be provided in the link flags for nabo through the generated libnaboConfig.cmake?

@simonlynen
Copy link
Contributor

@pomerlef it is optional https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L51 if the user has openmp it is activated.
@stephanemagnenat yes I will try to export that properly.

@simonlynen
Copy link
Contributor

@stephanemagnenat I will investigate why my previous approach: https://github.com/ethz-asl/libnabo/blob/master/libnaboConfig.cmake.in#L16 doesn't seem to work

@pmolina7
Copy link
Author

Thanks @simonlynen
Adding this: https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L51 to the libpointmatcher CMakeLists.txt file solves the issue.
Once you resolve it permanently, I can try this all again.

@pomerlef
Copy link
Collaborator

pomerlef commented Dec 4, 2014

This should be fix with the commit 790f2b5

@pmolina7 Could you update you libnabo repository, clean your build files and rebuild libnabo and libpointmatcher? Everything should work now.

@pmolina7
Copy link
Author

pmolina7 commented Dec 5, 2014

Thank you @pomerlef - it all builds correctly now :)

@pmolina7 pmolina7 closed this as completed Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants