MarkRans
MarkRans

Reputation: 21

PCL Point-Cloud-Library cmake install error - OpenMP

this is my first post so please be gentle!

I'm getting what appear to be cmake errors when trying to configure an install of pcl 1.7 in OSX 10.8.5. The error which appears 18 times is:

Performing Test OpenMP_FLAG_DETECTED - Failed

and then after the 18 failed searches for OpenMP:

Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS) 
Not found OpenMP

I'm also getting a red error (using cmake GUI) stating:

CMake Error at cmake/Modules/FindEigen.cmake:25 (file):
  file Internal CMake error when trying to open file:
  /Library/Frameworks/Eigen.framework/Eigen/src/Core/util/Macros.h for
  reading.
Call Stack (most recent call first):
  CMakeLists.txt:238 (find_package)

But then followed in black by:

Found Eigen: /Library/Frameworks/Eigen.framework  
Eigen found (include: /Library/Frameworks/Eigen.framework, version: ..)

so perhaps this isn't the issue (also there are no references to Eigen in the CMakeError.log.

Any help diagnosing or fixing the problem would be greatly appreciated.

Thanks, Mark

Upvotes: 0

Views: 1286

Answers (1)

MarkRans
MarkRans

Reputation: 21

So it seems the OpenMP errors may be able to be resolved by switching the compiler from Clang to g++, though I haven't done this as I'll be OK without OpenMP. The Eigen error (which was what was halting the build) was fixed by uninstalling then reinstalling MacPorts.

Upvotes: 1

Related Questions