使用Seetaface时链接器命令失败

时间:2018-12-26 01:45:06

标签: opencv

我是新手,试图在MacOS High Sierra 10.13.3上运行Seetaface示例。

这是指向Seetface的链接。

我已经通过brew install安装了cmake 3.12.4和opencv 3.4.3。

当我使用给定的CMakeLists.txt运行cmake时,一切似乎都很好。

RED-5:build dho$ cmake ..
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- C++11 support has been enabled by default.
-- Use SSE
-- Use OpenMP
-- Build with examples.
-- Found OpenCV: /usr/local (found version "3.4.3") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dho/Downloads/seetaface/SeetaFaceEngine/FaceDetection/build

但是当我尝试制作时,会发生错误。

[ 85%] Linking CXX shared library libseeta_facedet_lib.dylib
Undefined symbols for architecture x86_64:
  "___kmpc_for_static_fini", referenced from:
      _.omp_outlined. in image_pyramid.cpp.o
      _.omp_outlined. in lab_feature_map.cpp.o
      _.omp_outlined..1 in lab_feature_map.cpp.o
      _.omp_outlined. in surf_feature_map.cpp.o
      _.omp_outlined..1 in surf_feature_map.cpp.o
      _.omp_outlined. in mlp.cpp.o
      _.omp_outlined. in fust.cpp.o
      ...
  "___kmpc_for_static_init_4", referenced from:
      _.omp_outlined. in image_pyramid.cpp.o
      _.omp_outlined. in lab_feature_map.cpp.o
      _.omp_outlined..1 in lab_feature_map.cpp.o
      _.omp_outlined. in surf_feature_map.cpp.o
      _.omp_outlined..1 in surf_feature_map.cpp.o
      _.omp_outlined. in mlp.cpp.o
      _.omp_outlined. in fust.cpp.o
      ...
  "___kmpc_fork_call", referenced from:
      seeta::fd::ImagePyramid::GetNextScaleImage(float*) in image_pyramid.cpp.o
      seeta::fd::LABFeatureMap::Compute(unsigned char const*, int, int) in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeRectSum() in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeFeatureMap() in lab_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradientImages(unsigned char const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradX(int const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradY(int const*) in surf_feature_map.cpp.o
      ...
  "___kmpc_global_thread_num", referenced from:
      seeta::fd::ImagePyramid::GetNextScaleImage(float*) in image_pyramid.cpp.o
      seeta::fd::LABFeatureMap::Compute(unsigned char const*, int, int) in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeRectSum() in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeFeatureMap() in lab_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradientImages(unsigned char const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradX(int const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradY(int const*) in surf_feature_map.cpp.o
      ...
  "___kmpc_push_num_threads", referenced from:
      seeta::fd::ImagePyramid::GetNextScaleImage(float*) in image_pyramid.cpp.o
      seeta::fd::LABFeatureMap::Compute(unsigned char const*, int, int) in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeRectSum() in lab_feature_map.cpp.o
      seeta::fd::LABFeatureMap::ComputeFeatureMap() in lab_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradientImages(unsigned char const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradX(int const*) in surf_feature_map.cpp.o
      seeta::fd::SURFFeatureMap::ComputeGradY(int const*) in surf_feature_map.cpp.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]: *** [libseeta_facedet_lib.dylib] Error 1
make[1]: *** [CMakeFiles/seeta_facedet_lib.dir/all] Error 2
make: *** [all] Error 2

我没有发现有关使用Seetaface的类似问题。谁能给我提示哪里有问题吗?

0 个答案:

没有答案