STORM-IRIT / OpenGR

OpenGR: A C++ library for 3D Global Registration
https://storm-irit.github.io/OpenGR/
Other
348 stars 74 forks source link

Undefined symbols for architecture x86_64 !!! #44

Closed amirhosseingholami closed 4 years ago

amirhosseingholami commented 4 years ago

Hello, I'm trying to install OpenGR using the guid here, unfortunately I get error you can see my terminal results below, I'm using Mac OS Catalina 10.15.3, please help me to solve this problem. thanks a lot

my compiler version:

amirhosseingholami@Amirhosseins-MacBook-Pro ~ % gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I also installed llvm using hombrew:

amirhosseingholami@Amirhosseins-MacBook-Pro ~ % brew info llvm
llvm: stable 9.0.1 (bottled), HEAD [keg-only]
Next-gen compiler infrastructure
https://llvm.org/
/usr/local/Cellar/llvm/9.0.1 (6,833 files, 3.7GB)
  Built from source on 2020-02-12 at 09:28:59
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/llvm.rb
==> Dependencies
Build: cmake ✔
Required: libffi ✔, swig ✔
==> Requirements
Build: xcode ✔
==> Options
--HEAD
    Install HEAD version
==> Caveats
To use the bundled libc++ please add the following LDFLAGS:
  LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"

llvm is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have llvm first in your PATH run:
  echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc

For compilers to find llvm you may need to set:
  export LDFLAGS="-L/usr/local/opt/llvm/lib"
  export CPPFLAGS="-I/usr/local/opt/llvm/include"

here is the terminal results:

Last login: Wed Feb 12 22:16:55 on ttys001
amirhosseingholami@Amirhosseins-MacBook-Pro ~ % cd /usr/local/myfiles 
amirhosseingholami@Amirhosseins-MacBook-Pro myfiles % git clone https://github.com/STORM-IRIT/OpenGR.git
Cloning into 'OpenGR'...
remote: Enumerating objects: 275, done.
remote: Counting objects: 100% (275/275), done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 4546 (delta 136), reused 189 (delta 98), pack-reused 4271
Receiving objects: 100% (4546/4546), 13.87 MiB | 131.00 KiB/s, done.
Resolving deltas: 100% (2773/2773), done.
amirhosseingholami@Amirhosseins-MacBook-Pro myfiles % cd OpenGR 
amirhosseingholami@Amirhosseins-MacBook-Pro OpenGR % mkdir build
amirhosseingholami@Amirhosseins-MacBook-Pro OpenGR % cd build 
amirhosseingholami@Amirhosseins-MacBook-Pro build % cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- Enable OpenMP
Submodule '3rdparty/Eigen' (https://github.com/eigenteam/eigen-git-mirror.git) registered for path '3rdparty/Eigen'
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/Eigen'...
Submodule path '3rdparty/Eigen': checked out 'a46d2e7337c4656f00abe54a8115f6d76153a048'
-- Eigen3 root path: /usr/local/myfiles/OpenGR/3rdparty/Eigen
Submodule '3rdparty/stb' (https://github.com/nothings/stb.git) registered for path '3rdparty/stb'
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/stb'...
Submodule path '3rdparty/stb': checked out 'e6afb9cbae4064da8c3e69af3ff5c4629579c1d2'
-- STB root path: /usr/local/myfiles/OpenGR/3rdparty/stb
-- The C compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at src/gr/utils/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "utils" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/accelerators/CMakeLists.txt:32 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "accel" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/algorithms/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "algo" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.54") found components: system filesystem 
-- [Deps] Use Boost 1.72.0 for image loading
-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Found Eigen: /usr/local/include/eigen3  
-- Eigen found (include: /usr/local/include/eigen3, version: 3.3.7)
-- Found libusb-1.0: /usr/local/include  
-- Checking for module 'flann'
--   Found flann, version 1.9.1
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- Found PCL_COMMON: /usr/local/lib/libpcl_common.dylib  
-- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.dylib  
-- Found PCL_IO: /usr/local/lib/libpcl_io.dylib  
-- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.dylib  
-- Found PCL_SEARCH: /usr/local/lib/libpcl_search.dylib  
-- Found PCL_GEOMETRY: /usr/local/include/pcl-1.9  
-- Found PCL_VISUALIZATION: /usr/local/lib/libpcl_visualization.dylib  
-- [Demos] PCL found, creating target OpenGR-PCLWrapper
-- Found Git: /usr/local/bin/git (found version "2.25.0") 
-- Found Doxygen: /usr/local/bin/doxygen (found suitable version "1.8.17", minimum required is "1.8.0") found components: doxygen missing components: dot
-- [download 30% complete]
-- [download 74% complete]
-- [download 100% complete]
-- [download 18% complete]
-- [download 44% complete]
-- [download 70% complete]
-- [download 96% complete]
-- [download 100% complete]
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/myfiles/OpenGR/build
amirhosseingholami@Amirhosseins-MacBook-Pro build % sudo make install
sudo: setrlimit(8): Invalid argument
Password:
Scanning dependencies of target opengr_apps_io
[ 12%] Building CXX object apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o
[ 25%] Linking CXX static library libopengr_apps_io.a
[ 25%] Built target opengr_apps_io
Scanning dependencies of target opengr
[ 25%] Built target opengr
Scanning dependencies of target Super4PCS
[ 37%] Building CXX object apps/Super4PCS/CMakeFiles/Super4PCS.dir/super4pcs_test.cc.o
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:73:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts>
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:265:78: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                             ^~~~~~~~
                                                                             class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:276:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:30:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:39:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:43:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:69:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:107:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:122:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:259:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:260:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:137:34: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template<typename> typename Sampler>
                                 ^~~~~~~~
                                 class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:221:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:35:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts >
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:59:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:35:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:39:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PairFilteringOptions >
                                        ^~~~~~~~
                                        class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:112:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:29:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:33:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:41:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:45:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:48:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:52:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:106:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:110:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:186:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:190:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:197:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:201:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:250:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:254:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:262:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:266:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:301:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:305:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:55:24: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template<typename> typename Sampler,
                       ^~~~~~~~
                       class
34 warnings generated.
[ 50%] Linking CXX executable Super4PCS
Undefined symbols for architecture x86_64:
  "___kmpc_critical", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_end_critical", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_for_static_fini", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_for_static_init_4", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_fork_call", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.o
  "___kmpc_global_thread_num", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.o
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_push_num_threads", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.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[2]: *** [apps/Super4PCS/Super4PCS] Error 1
make[1]: *** [apps/Super4PCS/CMakeFiles/Super4PCS.dir/all] Error 2
make: *** [all] Error 2
amirhosseingholami@Amirhosseins-MacBook-Pro build %     
nmellado commented 4 years ago

It seems that the compiler cannot find the LLVM OpenMP runtime library. Did you followed the instruction given by brew ?

==> Caveats
To use the bundled libc++ please add the following LDFLAGS:
  LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"

llvm is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have llvm first in your PATH run:
  echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc

For compilers to find llvm you may need to set:
  export LDFLAGS="-L/usr/local/opt/llvm/lib"
  export CPPFLAGS="-I/usr/local/opt/llvm/include"

(from your post)

amirhosseingholami commented 4 years ago

thank you for your guide Now OpenMP is found but I'm still getting this error! would you please help me ?

amirhosseingholami@Amirhosseins-MacBook-Pro build % cmake .. -DOPENMP_CXX="/usr/local/opt/llvm/bin/clang++" -DOPENMP_C="/usr/local/opt/llvm/bin/clang"  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- Enable OpenMP
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/Eigen'...
Submodule path '3rdparty/Eigen': checked out 'a46d2e7337c4656f00abe54a8115f6d76153a048'
-- Eigen3 root path: /usr/local/myfiles/OpenGR/3rdparty/Eigen
Submodule '3rdparty/stb' (https://github.com/nothings/stb.git) registered for path '3rdparty/stb'
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/stb'...
Submodule path '3rdparty/stb': checked out 'e6afb9cbae4064da8c3e69af3ff5c4629579c1d2'
-- STB root path: /usr/local/myfiles/OpenGR/3rdparty/stb
-- The C compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at src/gr/utils/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "utils" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/accelerators/CMakeLists.txt:32 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "accel" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/algorithms/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "algo" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.54") found components: system filesystem 
-- [Deps] Use Boost 1.72.0 for image loading
-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Found Eigen: /usr/local/include/eigen3  
-- Eigen found (include: /usr/local/include/eigen3, version: 3.3.7)
-- Found libusb-1.0: /usr/local/include  
-- Checking for module 'flann'
--   Found flann, version 1.9.1
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- Found PCL_COMMON: /usr/local/lib/libpcl_common.dylib  
-- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.dylib  
-- Found PCL_IO: /usr/local/lib/libpcl_io.dylib  
-- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.dylib  
-- Found PCL_SEARCH: /usr/local/lib/libpcl_search.dylib  
-- Found PCL_GEOMETRY: /usr/local/include/pcl-1.9  
-- Found PCL_VISUALIZATION: /usr/local/lib/libpcl_visualization.dylib  
-- [Demos] PCL found, creating target OpenGR-PCLWrapper
-- Found Git: /usr/local/bin/git (found version "2.25.0") 
-- Found Doxygen: /usr/local/bin/doxygen (found suitable version "1.8.17", minimum required is "1.8.0") found components: doxygen missing components: dot
-- [download 30% complete]
-- [download 74% complete]
-- [download 100% complete]
-- [download 18% complete]
-- [download 44% complete]
-- [download 70% complete]
-- [download 96% complete]
-- [download 100% complete]
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    OPENMP_C
    OPENMP_CXX

-- Build files have been written to: /usr/local/myfiles/OpenGR/build
amirhosseingholami@Amirhosseins-MacBook-Pro build % sudo make install
sudo: setrlimit(8): Invalid argument
Password:
Scanning dependencies of target opengr_apps_io
[ 12%] Building CXX object apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o
[ 25%] Linking CXX static library libopengr_apps_io.a
[ 25%] Built target opengr_apps_io
Scanning dependencies of target opengr
[ 25%] Built target opengr
Scanning dependencies of target Super4PCS
[ 37%] Building CXX object apps/Super4PCS/CMakeFiles/Super4PCS.dir/super4pcs_test.cc.o
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:73:37: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts>
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:265:78: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                             ^~~~~~~~
                                                                             class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:276:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:30:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:39:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:43:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:69:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:107:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:122:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:259:84: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:260:74: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:137:34: warning: template template parameter using
      'typename' is a C++17 extension [-Wc++17-extensions]
              template<typename> typename Sampler>
                                 ^~~~~~~~
                                 class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:221:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:35:37: warning: template template parameter using
      'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts >
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:59:74: warning: template template parameter using
      'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:35:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:39:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PairFilteringOptions >
                                        ^~~~~~~~
                                        class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:112:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:29:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:33:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:41:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:45:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:48:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:52:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:106:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:110:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:186:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:190:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:197:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:201:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:250:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:254:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:262:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:266:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:301:55: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:305:41: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:55:24: warning: template template parameter using 'typename' is a C++17
      extension [-Wc++17-extensions]
    template<typename> typename Sampler,
                       ^~~~~~~~
                       class
34 warnings generated.
[ 50%] Linking CXX executable Super4PCS
Undefined symbols for architecture x86_64:
  "___kmpc_critical", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_end_critical", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_for_static_fini", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_for_static_init_4", referenced from:
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_fork_call", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.o
  "___kmpc_global_thread_num", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.o
      _.omp_outlined. in super4pcs_test.cc.o
  "___kmpc_push_num_threads", referenced from:
      gr::CongruentSetExplorationBase<gr::Traits4pcs<gr::MatchBase<gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter::Options, gr::CongruentSetExplorationOptions>::PosMutablePoint>, gr::Point3D<float>, TransformVisitor, gr::AdaptivePointFilter, gr::AdaptivePointFilter::Options>::TryCongruentSet(std::__1::array<int, 4ul>&, std::__1::vector<std::__1::array<int, 4ul>, std::__1::allocator<std::__1::array<int, 4ul> > >&, TransformVisitor&, unsigned long&) in super4pcs_test.cc.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[2]: *** [apps/Super4PCS/Super4PCS] Error 1
make[1]: *** [apps/Super4PCS/CMakeFiles/Super4PCS.dir/all] Error 2
make: *** [all] Error 2
amirhosseingholami@Amirhosseins-MacBook-Pro build % 
amirhosseingholami commented 4 years ago

@nmellado And this is new error!!! this one is about Flann library! but I have installed Flann using brew! and it's linked I can't understand what's happening! please help me


amirhosseingholami@Amirhosseins-MacBook-Pro build % cmake .. -DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" -DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang"  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
-- The CXX compiler identification is Clang 9.0.1
-- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++
-- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_CXX_FOUND) 
Submodule '3rdparty/Eigen' (https://github.com/eigenteam/eigen-git-mirror.git) registered for path '3rdparty/Eigen'
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/Eigen'...
Submodule path '3rdparty/Eigen': checked out 'a46d2e7337c4656f00abe54a8115f6d76153a048'
-- Eigen3 root path: /usr/local/myfiles/OpenGR/3rdparty/Eigen
Submodule '3rdparty/stb' (https://github.com/nothings/stb.git) registered for path '3rdparty/stb'
Cloning into '/usr/local/myfiles/OpenGR/3rdparty/stb'...
Submodule path '3rdparty/stb': checked out 'e6afb9cbae4064da8c3e69af3ff5c4629579c1d2'
-- STB root path: /usr/local/myfiles/OpenGR/3rdparty/stb
-- The C compiler identification is Clang 9.0.1
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at src/gr/utils/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "utils" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/accelerators/CMakeLists.txt:32 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "accel" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/gr/algorithms/CMakeLists.txt:17 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "algo" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  tests/CMakeLists.txt:97 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_system-1.72.0/libboost_system-variant-shared.cmake:64 (message):
  Target Boost::system already has an imported location
  '/usr/local/lib/libboost_system-mt.dylib', which will be overwritten with
  '/usr/local/lib/libboost_system.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_system-1.72.0/boost_system-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

CMake Warning at /usr/local/lib/cmake/boost_filesystem-1.72.0/libboost_filesystem-variant-shared.cmake:64 (message):
  Target Boost::filesystem already has an imported location
  '/usr/local/lib/libboost_filesystem-mt.dylib', which will be overwritten
  with '/usr/local/lib/libboost_filesystem.dylib'
Call Stack (most recent call first):
  /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake:57 (include)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package)
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/local/Cellar/cmake/3.16.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
  apps/io/CMakeLists.txt:14 (find_package)

-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.54") found components: system filesystem 
-- [Deps] Use Boost 1.72.0 for image loading
-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Found Eigen: /usr/local/include/eigen3  
-- Eigen found (include: /usr/local/include/eigen3, version: 3.3.7)
-- Found libusb-1.0: /usr/local/include  
-- Checking for module 'flann'
--   Found flann, version 1.9.1
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_8/include, lib: flann;flann_cpp)
-- Found PCL_COMMON: /usr/local/lib/libpcl_common.dylib  
-- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.dylib  
-- Found PCL_IO: /usr/local/lib/libpcl_io.dylib  
-- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.dylib  
-- Found PCL_SEARCH: /usr/local/lib/libpcl_search.dylib  
-- Found PCL_GEOMETRY: /usr/local/include/pcl-1.9  
-- Found PCL_VISUALIZATION: /usr/local/lib/libpcl_visualization.dylib  
-- [Demos] PCL found, creating target OpenGR-PCLWrapper
-- Found Git: /usr/local/bin/git (found version "2.25.0") 
-- Found Doxygen: /usr/local/bin/doxygen (found suitable version "1.8.17", minimum required is "1.8.0") found components: doxygen missing components: dot
-- [download 30% complete]
-- [download 74% complete]
-- [download 100% complete]
-- [download 18% complete]
-- [download 44% complete]
-- [download 70% complete]
-- [download 96% complete]
-- [download 100% complete]
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/myfiles/OpenGR/build
amirhosseingholami@Amirhosseins-MacBook-Pro build % sudo make install
sudo: setrlimit(8): Invalid argument
Password:
Scanning dependencies of target opengr_apps_io
[ 12%] Building CXX object apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o
[ 25%] Linking CXX static library libopengr_apps_io.a
[ 25%] Built target opengr_apps_io
Scanning dependencies of target opengr
[ 25%] Built target opengr
Scanning dependencies of target Super4PCS
[ 37%] Building CXX object apps/Super4PCS/CMakeFiles/Super4PCS.dir/super4pcs_test.cc.o
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:73:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts>
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:265:78: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                             ^~~~~~~~
                                                                             class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:276:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:30:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:39:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:43:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:69:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:107:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:122:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:259:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:260:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:137:34: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template<typename> typename Sampler>
                                 ^~~~~~~~
                                 class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:221:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:35:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts >
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:59:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:35:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:39:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PairFilteringOptions >
                                        ^~~~~~~~
                                        class
In file included from /usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:4:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:112:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:29:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:33:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:41:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:45:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:48:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:52:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:106:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:110:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:186:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:190:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:197:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:201:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:250:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:254:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:262:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:266:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:301:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:305:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/apps/Super4PCS/super4pcs_test.cc:55:24: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template<typename> typename Sampler,
                       ^~~~~~~~
                       class
34 warnings generated.
[ 50%] Linking CXX executable Super4PCS
[ 50%] Built target Super4PCS
Scanning dependencies of target OpenGR-PCLWrapper
[ 62%] Building CXX object apps/PCLWrapper/CMakeFiles/OpenGR-PCLWrapper.dir/main.cpp.o
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:73:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts>
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:265:78: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                             ^~~~~~~~
                                                                             class
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:54:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.h:276:
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:30:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:39:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:43:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:69:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:107:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:122:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:259:84: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename PointType, typename TransformVisitor, template < class, class > typename ... OptExts>
                                                                                   ^~~~~~~~
                                                                                   class
/usr/local/myfiles/OpenGR/src/gr/algorithms/matchBase.hpp:260:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:137:34: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template<typename> typename Sampler>
                                 ^~~~~~~~
                                 class
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:18:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.h:221:
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:35:37: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
          template < class, class > typename ... OptExts >
                                    ^~~~~~~~
                                    class
/usr/local/myfiles/OpenGR/src/gr/algorithms/congruentSetExplorationBase.hpp:59:74: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
template <typename InputRange1, typename InputRange2, template<typename> typename Sampler>
                                                                         ^~~~~~~~
                                                                         class
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:35:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:39:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PairFilteringOptions >
                                        ^~~~~~~~
                                        class
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/main.cpp:12:
In file included from /usr/local/myfiles/OpenGR/apps/PCLWrapper/pcl/registration/super4pcs.h:51:
In file included from /usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.h:112:
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:29:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:33:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:41:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:45:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:48:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:52:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:106:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:110:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:186:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:190:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:197:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:201:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:250:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:254:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:262:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:266:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:301:55: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
    template <template <typename, typename, typename> typename _Functor,
                                                      ^~~~~~~~
                                                      class
/usr/local/myfiles/OpenGR/src/gr/algorithms/match4pcsBase.hpp:305:41: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
              template < class, class > typename PFO>
                                        ^~~~~~~~
                                        class
33 warnings generated.
[ 75%] Linking CXX executable OpenGR-PCLWrapper
ld: library not found for -lflann
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [apps/PCLWrapper/OpenGR-PCLWrapper] Error 1
make[1]: *** [apps/PCLWrapper/CMakeFiles/OpenGR-PCLWrapper.dir/all] Error 2
make: *** [all] Error 2
amirhosseingholami@Amirhosseins-MacBook-Pro build % 
amirhosseingholami commented 4 years ago

here I found the solution.