PointCloudLibrary / pcl

Point Cloud Library (PCL)
https://pointclouds.org/
Other
9.97k stars 4.62k forks source link

"Could NOT find OpenNI (missing: OPENNI_INCLUDE_DIR)" on Mac #346

Closed ky0on closed 10 years ago

ky0on commented 11 years ago

I've installed OpenNI through Homebrew (https://github.com/totakke/homebrew-openni). However, cmake . given the following error:

-- Could NOT find OpenNI (missing:  OPENNI_INCLUDE_DIR) 

Do you know any reasons?

jspricke commented 11 years ago

I guess it's not installed to one of the locations specified in https://github.com/PointCloudLibrary/pcl/blob/master/cmake/Modules/FindOpenNI.cmake#L51. Could you have a look where header and libs are installed and provide a patch as a pull request? Thanks!

fran6co commented 11 years ago

Check here => https://github.com/fran6co/homebrew-cv/blob/master/pcl.rb#L140

You can add

-DOPENNI_INCLUDE_DIR=/usr/local/include/ni

to make it work.

Or use my formula by tapping it:

brew tap fran6co/cv

brew install pcl --with-openni
nizar-sallem commented 11 years ago

we could add /usr/local/include/ni to the list of hints

ky0on commented 10 years ago

@jspricke Thanks. I modified https://github.com/PointCloudLibrary/pcl/blob/master/cmake/Modules/FindOpenNI.cmake#L52:

HINTS ${PC_OPENNI_INCLUDEDIR} ${PC_OPENNI_INCLUDE_DIRS} /usr/include/openni /usr/include/ni /usr/local/include/ni "${OPENNI_ROOT}" "$ENV{OPENNI_ROOT}"

Then, cmake . says:

-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS) 
-- Not found OpenMP
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
-- Eigen found (include: /usr/local/Cellar/eigen/3.2.0/include/eigen3)
-- FLANN found (include: /usr/local/Cellar/flann/1.7.1/include, lib: optimized;/usr/local/Cellar/flann/1.7.1/lib/libflann_cpp.dylib;debug;/usr/local/Cellar/flann/1.7.1/lib/libflann_cpp-gd.dylib)
-- OpenNI found (include: /usr/local/include/ni, lib: /usr/local/lib/libOpenNI.dylib)
-- Could NOT find FZAPI (missing:  FZAPI_LIBS FZAPI_INCLUDE_DIR) 
-- QHULL found (include: /usr/local/include, lib: optimized;/usr/local/lib/libqhull.a;debug;/usr/local/lib/libqhull.a)
-- Could NOT find QVTK (missing:  QVTK_LIBRARY QVTK_INCLUDE_DIR) 
-- VTK found (include: /usr/local/include/vtk-5.10, lib: /usr/local/lib/vtk-5.10)
-- PCAP found (include: /usr/include, lib: /usr/lib/libpcap.dylib)
-- DOXYGEN_FOUND YES
-- HTML_HELP_COMPILER 
-- checking for module 'sphinx-build'
--   package 'sphinx-build' not found
-- The following subsystems will be built:
--   common
--   octree
--   io
--   kdtree
--   search
--   sample_consensus
--   filters
--   2d
--   geometry
--   features
--   ml
--   segmentation
--   visualization
--   surface
--   registration
--   keypoints
--   tracking
--   recognition
--   stereo
--   outofcore
--   people
--   tools
-- The following subsystems will not be built:
--   apps: Disabled by default.
--   examples: Code examples are disabled by default.
--   simulation: Disabled by default.
--   global_tests: Disabled by default.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kyon/Desktop/pcl/build

Although still I have some errors, but OpenNI was found. Should I solve the other errors?

ky0on commented 10 years ago

@fran6co I tapped fran6co/cv, and did brew install pcl --with-openni. However, I got following errors:

==> Downloading https://github.com/PointCloudLibrary/pcl/archive/pcl-1.7.1.zip
Already downloaded: /Library/Caches/Homebrew/pcl-1.7.1.zip
Warning: inreplace in 'apps/point_cloud_editor/src/cloud.cpp' failed
Expected replacement of '<GL/glu.h>' with '<OpenGL/glu.h>'
Warning: inreplace in 'apps/point_cloud_editor/src/cloud.cpp' failed
Expected replacement of '<GL/gl.h>' with '<OpenGL/gl.h>'
Warning: inreplace in 'apps/point_cloud_editor/src/cloudEditorWidget.cpp' failed
Expected replacement of '<GL/gl.h>' with '<OpenGL/gl.h>'
Warning: inreplace in 'apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/select2DTool.h' failed
Expected replacement of '<GL/gl.h>' with '<OpenGL/gl.h>'
Warning: inreplace in 'apps/point_cloud_editor/src/select1DTool.cpp' failed
Expected replacement of '<GL/gl.h>' with '<OpenGL/gl.h>'
==> Patching
patching file cmake/Modules/FindQhull.cmake
Hunk #1 succeeded at 47 with fuzz 1.
patching file cmake/Modules/FindGLEW.cmake
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pcl/1.7.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBO
==> make
/usr/local/Library/ENV/4.3/c++  -Qunused-arguments -Wno-invalid-offsetof   -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names    -compatibility_version 1.7.0 -current_version 1.7.1 -o ../lib/libpcl_io.1.7.1.dylib -install_name /tmp/pcl-HTfC/pcl-pcl-1.7.1/macbuild/lib/libpcl_io.1.7.dylib CMakeFiles/pcl_io.dir/src/debayer.cpp.o CMakeFiles/pcl_io.dir/src/pcd_grabber.cpp.o CMakeFiles/pcl_io.dir/src/pcd_io.cpp.o CMakeFiles/pcl_io.dir/src/vtk_io.cpp.o CMakeFiles/pcl_io.dir/src/ply_io.cpp.o CMakeFiles/pcl_io.dir/src/ascii_io.cpp.o CMakeFiles/pcl_io.dir/src/compression.cpp.o CMakeFiles/pcl_io.dir/src/lzf.cpp.o CMakeFiles/pcl_io.dir/src/lzf_image_io.cpp.o CMakeFiles/pcl_io.dir/src/obj_io.cpp.o CMakeFiles/pcl_io.dir/src/image_grabber.cpp.o CMakeFiles/pcl_io.dir/src/hdl_grabber.cpp.o CMakeFiles/pcl_io.dir/src/robot_eye_grabber.cpp.o CMakeFiles/pcl_io.dir/src/vtk_lib_io.cpp.o CMakeFiles/pcl_io.dir/src/png_io.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_device.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_device_primesense.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_image_bayer_grbg.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_depth_image.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_ir_image.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_device_kinect.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_device_xtion.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_device_oni.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_driver.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_exception.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_image_yuv_422.cpp.o CMakeFiles/pcl_io.dir/src/openni_camera/openni_image_rgb24.cpp.o CMakeFiles/pcl_io.dir/src/openni_grabber.cpp.o CMakeFiles/pcl_io.dir/src/oni_grabber.cpp.o CMakeFiles/pcl_io.dir/src/dinast_grabber.cpp.o CMakeFiles/pcl_io.dir/src/libpng_wrapper.cpp.o  -L/usr/local/lib/vtk-5.10 /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/libboost_filesystem-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_date_time-mt.dylib /usr/local/lib/libboost_iostreams-mt.dylib -lm ../lib/libpcl_common.1.7.1.dylib ../lib/libpcl_io_ply.1.7.1.dylib /usr/local/lib/vtk-5.10/libvtkCommon.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkWidgets.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkIO.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkImaging.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkHybrid.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkGraphics.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkRendering.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkFiltering.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkVolumeRendering.5.10.1.dylib /usr/local/lib/libpng.dylib /usr/local/lib/libusb-1.0.dylib /usr/local/lib/libOpenNI.dylib /usr/local/lib/libusb-1.0.dylib /usr/lib/libpcap.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/libboost_filesystem-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_date_time-mt.dylib /usr/local/lib/libboost_iostreams-mt.dylib /usr/local/lib/vtk-5.10/libvtkRendering.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkIO.5.10.1.dylib -lm /usr/local/lib/vtk-5.10/libvtkImaging.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkGraphics.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkFiltering.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtkCommon.5.10.1.dylib /usr/local/lib/vtk-5.10/libvtksys.5.10.1.dylib -lm -lobjc /usr/local/lib/libOpenNI.dylib /usr/lib/libpcap.dylib -Wl,-rpath,/usr/local/lib/vtk-5.10
cd /tmp/pcl-HTfC/pcl-pcl-1.7.1/macbuild/io && /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_symlink_library ../lib/libpcl_io.1.7.1.dylib ../lib/libpcl_io.1.7.dylib ../lib/libpcl_io.dylib
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-HTfC/pcl-pcl-1.7.1/macbuild/CMakeFiles  26 27 28 29 30 31 32 33
[ 21%] Built target pcl_io
make: *** [all] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this please do so at the fran6co/cv tap (not mxcl/homebrew).
nizar-sallem commented 10 years ago

@ky0on @fran6co

Those should be dealt with with guardians for when we are on an apple machine and not from within homebrew. Something like

#ifdef __APPLE__ 
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif

should do it but don't have a Mac to test.

fran6co commented 10 years ago

@ky0on try with

brew install pcl --with-openni --HEAD

Couldn't get to work 1.7.1.

fran6co commented 10 years ago

@nizar-sallem Yes that would be the proper solution instead of the patching I'm doing, but there was another PR that did that but was rejected.

ky0on commented 10 years ago

@fran6co Thanks. However, It still gives following error:

kyon@MacbookPro[~]brew install --debug pcl --with-openni --HEAD
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pcl.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/cmake.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/eigen.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/flann.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hdf5.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/szip.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/cminpack.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/vtk.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/qhull2011.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/libusb.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/automake.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/autoconf.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/libtool.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/glew.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Taps/totakke-openni/openni.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/doxygen.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/cmake.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/eigen.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/flann.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/hdf5.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/szip.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/cminpack.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/vtk.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/qhull2011.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/libusb.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/automake.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/autoconf.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/libtool.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/glew.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Taps/totakke-openni/openni.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/doxygen.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/git.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/python.rb
==> Cloning https://github.com/PointCloudLibrary/pcl.git
Updating /Library/Caches/Homebrew/pcl--git
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file cmake/Modules/FindQhull.cmake
Hunk #1 succeeded at 47 with fuzz 1.
patching file cmake/Modules/FindGLEW.cmake
patching file CMakeLists.txt
patching file common/include/pcl/impl/point_types.hpp
patching file geometry/include/pcl/geometry/mesh_traits.h
patching file recognition/include/pcl/recognition/color_gradient_modality.h
patching file recognition/include/pcl/recognition/surface_normal_modality.h
patching file 2d/CMakeLists.txt
patching file apps/CMakeLists.txt
patching file io/CMakeLists.txt
patching file io/include/pcl/io/impl/vtk_lib_io.hpp
patching file io/include/pcl/io/vtk_lib_io.h
patching file io/src/vtk_lib_io.cpp
patching file outofcore/include/pcl/outofcore/visualization/axes.h
patching file outofcore/src/visualization/grid.cpp
patching file outofcore/src/visualization/outofcore_cloud.cpp
patching file surface/CMakeLists.txt
patching file surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp
patching file surface/src/vtk_smoothing/vtk_utils.cpp
patching file tools/CMakeLists.txt
patching file tools/mesh2pcd.cpp
patching file tools/mesh_sampling.cpp
patching file tools/obj2vtk.cpp
patching file tools/obj_rec_ransac_accepted_hypotheses.cpp
patching file tools/obj_rec_ransac_model_opps.cpp
patching file tools/obj_rec_ransac_orr_octree.cpp
patching file tools/obj_rec_ransac_orr_octree_zprojection.cpp
patching file tools/obj_rec_ransac_result.cpp
patching file tools/obj_rec_ransac_scene_opps.cpp
patching file tools/octree_viewer.cpp
patching file tools/ply2vtk.cpp
patching file tools/png2pcd.cpp
patching file tools/tiff2pcd.cpp
patching file tools/virtual_scanner.cpp
patching file tools/voxel_grid_occlusion_estimation.cpp
patching file tools/vtk2pcd.cpp
patching file tools/vtk2ply.cpp
patching file visualization/CMakeLists.txt
patching file visualization/include/pcl/visualization/common/impl/shapes.hpp
patching file visualization/include/pcl/visualization/image_viewer.h
patching file visualization/include/pcl/visualization/impl/image_viewer.hpp
patching file visualization/include/pcl/visualization/impl/pcl_visualizer.hpp
patching file visualization/include/pcl/visualization/pcl_painter2D.h
patching file visualization/src/common/io.cpp
patching file visualization/src/histogram_visualizer.cpp
patching file visualization/src/image_viewer.cpp
patching file visualization/src/interactor_style.cpp
patching file visualization/src/pcl_painter2D.cpp
patching file visualization/src/pcl_plotter.cpp
patching file visualization/src/pcl_visualizer.cpp
patching file visualization/src/point_picking_event.cpp
patching file visualization/src/vtk/vtkVertexBufferObject.cxx
patching file visualization/src/vtk/vtkVertexBufferObjectMapper.cxx
patching file apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h
patching file apps/CMakeLists.txt
patching file apps/modeler/CMakeLists.txt
patching file apps/modeler/src/normals_actor_item.cpp
patching file apps/modeler/src/points_actor_item.cpp
patching file apps/modeler/src/surface_actor_item.cpp
patching file apps/src/render_views_tesselated_sphere.cpp
patching file visualization/src/image_viewer.cpp
patching file visualization/include/pcl/visualization/image_viewer.h
patching file visualization/src/image_viewer.cpp
patching file apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h
patching file surface/CMakeLists.txt
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pcl/HEAD -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAK

-- Configuring incomplete, errors occurred!
See also "/tmp/pcl-RvIx/macbuild/CMakeFiles/CMakeOutput.log".
See also "/tmp/pcl-RvIx/macbuild/CMakeFiles/CMakeError.log".
/usr/local/Library/Homebrew/formula.rb:612:in `system'
BuildError: Failed executing: cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pcl/HEAD -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DGLEW_INCLUDE_DIR=/usr/local/include/GL -DQHULL_ROOT=/usr/local/Cellar/qhull2011/2011.1 -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_simulation:BOOL=ON -DBUILD_outofcore:BOOL=ON -DBUILD_people:BOOL=ON -DBUILD_apps:BOOL=ON -DBUILD_app_3d_rec_framework:BOOL=ON -DBUILD_app_cloud_composer:BOOL=OFF -DBUILD_examples:BOOL=OFF -DBUILD_global_tests:BOOL=OFF -DOPENNI_INCLUDE_DIR=/usr/local/include/ni -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=TRUE ..

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this please do so at the fran6co/cv tap (not mxcl/homebrew).

And actually, /tmp/pcl-Rvlx was automatically removed soon after the installation faild. So I can't check the log files.

fran6co commented 10 years ago

If you run it like this you can get the debug info.

brew install -vd pcl --with-openni --HEAD

That would give me some info on how to fix it.

ky0on commented 10 years ago

@fran6co This is the output of : brew install -vd pcl --with-openni --HEAD

/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pcl.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/cmake.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/eigen.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/flann.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hdf5.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/szip.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/cminpack.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/vtk.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/qhull2011.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/libusb.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/automake.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/autoconf.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/libtool.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/glew.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Taps/totakke-openni/openni.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/doxygen.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/python.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/cmake.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/eigen.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/flann.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/hdf5.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/szip.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/cminpack.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/vtk.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/qhull2011.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/libusb.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/automake.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/autoconf.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/libtool.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/glew.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Taps/totakke-openni/openni.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/doxygen.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/git.rb
/usr/local/Library/Formula/pcl.rb: loading /usr/local/Library/Formula/python.rb
==> Writing /usr/local/lib/python2.7/site-packages/sitecustomize.py
==> Cloning https://github.com/PointCloudLibrary/pcl.git
git --git-dir /Library/Caches/Homebrew/pcl--git/.git status -s
Updating /Library/Caches/Homebrew/pcl--git
git config remote.origin.url https://github.com/PointCloudLibrary/pcl.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
Already on 'master'
git reset --hard origin/HEAD
HEAD is now at 3cd3608 Merge pull request #340 from juagargi/static_lib_fix
git reset --hard origin/HEAD
HEAD is now at 3cd3608 Merge pull request #340 from juagargi/static_lib_fix
git checkout-index -a -f --prefix=/private/tmp/pcl-qKX0/
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.5 (Ruby 1.8.7-358; Mac OS X 10.8.5) https://github.com/fran6co/pcl/compare/fix-10.9.patch -o 001-homebrew.diff
######################################################################## 100.0%
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file cmake/Modules/FindQhull.cmake
Hunk #1 succeeded at 47 with fuzz 1.
patching file cmake/Modules/FindGLEW.cmake
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file CMakeLists.txt
patching file common/include/pcl/impl/point_types.hpp
patching file geometry/include/pcl/geometry/mesh_traits.h
patching file recognition/include/pcl/recognition/color_gradient_modality.h
patching file recognition/include/pcl/recognition/surface_normal_modality.h
patching file 2d/CMakeLists.txt
patching file apps/CMakeLists.txt
patching file io/CMakeLists.txt
patching file io/include/pcl/io/impl/vtk_lib_io.hpp
patching file io/include/pcl/io/vtk_lib_io.h
patching file io/src/vtk_lib_io.cpp
patching file outofcore/include/pcl/outofcore/visualization/axes.h
patching file outofcore/src/visualization/grid.cpp
patching file outofcore/src/visualization/outofcore_cloud.cpp
patching file surface/CMakeLists.txt
patching file surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp
patching file surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp
patching file surface/src/vtk_smoothing/vtk_utils.cpp
patching file tools/CMakeLists.txt
patching file tools/mesh2pcd.cpp
patching file tools/mesh_sampling.cpp
patching file tools/obj2vtk.cpp
patching file tools/obj_rec_ransac_accepted_hypotheses.cpp
patching file tools/obj_rec_ransac_model_opps.cpp
patching file tools/obj_rec_ransac_orr_octree.cpp
patching file tools/obj_rec_ransac_orr_octree_zprojection.cpp
patching file tools/obj_rec_ransac_result.cpp
patching file tools/obj_rec_ransac_scene_opps.cpp
patching file tools/octree_viewer.cpp
patching file tools/ply2vtk.cpp
patching file tools/png2pcd.cpp
patching file tools/tiff2pcd.cpp
patching file tools/virtual_scanner.cpp
patching file tools/voxel_grid_occlusion_estimation.cpp
patching file tools/vtk2pcd.cpp
patching file tools/vtk2ply.cpp
patching file visualization/CMakeLists.txt
patching file visualization/include/pcl/visualization/common/impl/shapes.hpp
patching file visualization/include/pcl/visualization/image_viewer.h
patching file visualization/include/pcl/visualization/impl/image_viewer.hpp
patching file visualization/include/pcl/visualization/impl/pcl_visualizer.hpp
patching file visualization/include/pcl/visualization/pcl_painter2D.h
patching file visualization/src/common/io.cpp
patching file visualization/src/histogram_visualizer.cpp
patching file visualization/src/image_viewer.cpp
patching file visualization/src/interactor_style.cpp
patching file visualization/src/pcl_painter2D.cpp
patching file visualization/src/pcl_plotter.cpp
patching file visualization/src/pcl_visualizer.cpp
patching file visualization/src/point_picking_event.cpp
patching file visualization/src/vtk/vtkVertexBufferObject.cxx
patching file visualization/src/vtk/vtkVertexBufferObjectMapper.cxx
patching file apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h
patching file apps/CMakeLists.txt
patching file apps/modeler/CMakeLists.txt
patching file apps/modeler/src/normals_actor_item.cpp
patching file apps/modeler/src/points_actor_item.cpp
patching file apps/modeler/src/surface_actor_item.cpp
patching file apps/src/render_views_tesselated_sphere.cpp
patching file visualization/src/image_viewer.cpp
patching file visualization/include/pcl/visualization/image_viewer.h
patching file visualization/src/image_viewer.cpp
patching file apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h
patching file surface/CMakeLists.txt
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pcl/HEAD -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DGLEW_INCLUDE_DIR=/usr/local/include/GL -DQHULL_ROOT=/usr/local/Cellar/qhull2011/2011.1 -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_simulation:BOOL=ON -DBUILD_outofcore:BOOL=ON -DBUILD_people:BOOL=ON -DBUILD_apps:BOOL=ON -DBUILD_app_3d_rec_framework:BOOL=ON -DBUILD_app_cloud_composer:BOOL=OFF -DBUILD_examples:BOOL=OFF -DBUILD_global_tests:BOOL=OFF -DOPENNI_INCLUDE_DIR=/usr/local/include/ni -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=TRUE ..
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_MM_MALLOC
-- Performing Test HAVE_MM_MALLOC - Success
-- Performing Test HAVE_POSIX_MEMALIGN
-- Performing Test HAVE_POSIX_MEMALIGN - Success
-- Performing Test HAVE_SSE4_2_EXTENSIONS
-- Performing Test HAVE_SSE4_2_EXTENSIONS - Success
-- Performing Test HAVE_SSE4_1_EXTENSIONS
-- Performing Test HAVE_SSE4_1_EXTENSIONS - Success
-- Performing Test HAVE_SSE3_EXTENSIONS
-- Performing Test HAVE_SSE3_EXTENSIONS - Success
-- Performing Test HAVE_SSE2_EXTENSIONS
-- Performing Test HAVE_SSE2_EXTENSIONS - Success
-- Performing Test HAVE_SSE_EXTENSIONS
-- Performing Test HAVE_SSE_EXTENSIONS - Success
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS)
-- Not found OpenMP
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
-- checking for module 'eigen3'
--   found eigen3, version 3.2.0
-- Found Eigen: /usr/local/include/eigen3
-- Eigen found (include: /usr/local/include/eigen3)
-- checking for module 'flann>=1.7.0'
--   found flann, version 1.8.4
-- Found FLANN: /usr/local/lib/libflann_cpp.dylib (Required is at least version "1.7.0")
-- FLANN found (include: /usr/local/include, lib: optimized;/usr/local/lib/libflann_cpp.dylib;debug;/usr/local/lib/libflann_cpp.dylib)
-- Found LIBUSB_1: /usr/local/lib/libusb-1.0.dylib
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.9
-- Found USB_10: /usr/local/lib/libusb-1.0.dylib
-- Found OpenNI: /usr/local/lib/libOpenNI.dylib
-- OpenNI found (include: /usr/local/include/ni, lib: /usr/local/lib/libOpenNI.dylib)
-- Could NOT find FZAPI (missing:  FZAPI_LIBS FZAPI_INCLUDE_DIR)
-- Could NOT find PXCAPI (missing:  PXCAPI_LIBS PXCAPI_INCLUDE_DIRS PXCAPI_LIB_DIRS)
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.5.14")
-- Found Qhull: /usr/local/Cellar/qhull2011/2011.1/lib/libqhull6.dylib
-- QHULL found (include: /usr/local/opt/qhull2011/include, lib: optimized;/usr/local/Cellar/qhull2011/2011.1/lib/libqhull6.dylib;debug;/usr/local/Cellar/qhull2011/2011.1/lib/libqhull6.dylib)
-- Setting CMAKE_HOST_COMPILER to /usr/bin/gcc instead of /usr/local/Library/ENV/4.3/clang.  See http://dev.pointclouds.org/issues/979
-- Found QVTK: /usr/local/lib/vtk-5.10/libQVTK.dylib
-- VTK found (include: /usr/local/include/vtk-5.10;/usr/local/include/vtk-5.10, lib: /usr/local/lib/vtk-5.10;/usr/local/lib/vtk-5.10)
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.5")
-- Found PCAP: /usr/lib/libpcap.dylib
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found GLUT: -framework GLUT
CMake Error at apps/in_hand_scanner/CMakeLists.txt:108 (include):
  include called with wrong number of arguments.  Include only takes one
  file.

CMake Error at apps/in_hand_scanner/CMakeLists.txt:109 (qt4_wrap_cpp):
  Unknown CMake command "qt4_wrap_cpp".

-- Configuring incomplete, errors occurred!
See also "/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeOutput.log".
See also "/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeError.log".
/usr/local/Library/Homebrew/formula.rb:612:in `system'
BuildError: Failed executing: cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pcl/HEAD -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DGLEW_INCLUDE_DIR=/usr/local/include/GL -DQHULL_ROOT=/usr/local/Cellar/qhull2011/2011.1 -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_simulation:BOOL=ON -DBUILD_outofcore:BOOL=ON -DBUILD_people:BOOL=ON -DBUILD_apps:BOOL=ON -DBUILD_app_3d_rec_framework:BOOL=ON -DBUILD_app_cloud_composer:BOOL=OFF -DBUILD_examples:BOOL=OFF -DBUILD_global_tests:BOOL=OFF -DOPENNI_INCLUDE_DIR=/usr/local/include/ni -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=TRUE ..
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1
==> Formula
Tap: fran6co/cv
Path: /usr/local/Library/Taps/fran6co-cv/pcl.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 5923bb33f923c7a5fdf841912dbc4ca518af2407
CPU: 8-core 64-bit sandybridge
OS X: 10.8.5-x86_64
Xcode: 5.0.1
CLT: 5.0.0.0.1.1377666378
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/qhull2011:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/eigen/lib/pkgconfig:/usr/local/opt/flann/lib/pkgconfig:/usr/local/opt/cminpack/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig:/usr/local/opt/glew/lib/pkgconfig:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
HOMEBREW_VERBOSE: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: clang
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/hdf5/bin:/usr/local/opt/vtk/bin:/usr/local/opt/qhull2011/bin:/usr/local/opt/glew/bin:/usr/local/opt/openni/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: pcl did not build
Logs:
     /Users/kyon/Library/Logs/Homebrew/pcl/01.cmake

In addition, I could read CMakeError.log:

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3726908862/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3726908862.dir/build.make CMakeFiles/cmTryCompileExec3726908862.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3726908862.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -fopenmp   -o CMakeFiles/cmTryCompileExec3726908862.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv removed: -fopenmp
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec3726908862.dir/src.c.o] Error 1
make: *** [cmTryCompileExec3726908862/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3069727687/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3069727687.dir/build.make CMakeFiles/cmTryCompileExec3069727687.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3069727687.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED /openmp   -o CMakeFiles/cmTryCompileExec3069727687.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: no such file or directory: '/openmp'
make[1]: *** [CMakeFiles/cmTryCompileExec3069727687.dir/src.c.o] Error 1
make: *** [cmTryCompileExec3069727687/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec1705399925/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1705399925.dir/build.make CMakeFiles/cmTryCompileExec1705399925.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1705399925.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -Qopenmp   -o CMakeFiles/cmTryCompileExec1705399925.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec1705399925.dir/src.c.o] Error 1
make: *** [cmTryCompileExec1705399925/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec793914381/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec793914381.dir/build.make CMakeFiles/cmTryCompileExec793914381.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec793914381.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -openmp   -o CMakeFiles/cmTryCompileExec793914381.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec793914381.dir/src.c.o] Error 1
make: *** [cmTryCompileExec793914381/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3437268672/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3437268672.dir/build.make CMakeFiles/cmTryCompileExec3437268672.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3437268672.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED   -o CMakeFiles/cmTryCompileExec3437268672.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec3437268672.dir/src.c.o] Error 1
make: *** [cmTryCompileExec3437268672/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec1936231064/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1936231064.dir/build.make CMakeFiles/cmTryCompileExec1936231064.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1936231064.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -xopenmp   -o CMakeFiles/cmTryCompileExec1936231064.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: language not recognized: 'openmp'
make[1]: *** [CMakeFiles/cmTryCompileExec1936231064.dir/src.c.o] Error 1
make: *** [cmTryCompileExec1936231064/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3422975858/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3422975858.dir/build.make CMakeFiles/cmTryCompileExec3422975858.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3422975858.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED +Oopenmp   -o CMakeFiles/cmTryCompileExec3422975858.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: no such file or directory: '+Oopenmp'
make[1]: *** [CMakeFiles/cmTryCompileExec3422975858.dir/src.c.o] Error 1
make: *** [cmTryCompileExec3422975858/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3437756017/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3437756017.dir/build.make CMakeFiles/cmTryCompileExec3437756017.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3437756017.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -qsmp   -o CMakeFiles/cmTryCompileExec3437756017.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec3437756017.dir/src.c.o] Error 1
make: *** [cmTryCompileExec3437756017/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec766610739/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec766610739.dir/build.make CMakeFiles/cmTryCompileExec766610739.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec766610739.dir/src.c.o
/usr/local/Library/ENV/4.3/clang   -Qunused-arguments -DOpenMP_FLAG_DETECTED -mp   -o CMakeFiles/cmTryCompileExec766610739.dir/src.c.o   -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec766610739.dir/src.c.o] Error 1
make: *** [cmTryCompileExec766610739/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec1586492661/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1586492661.dir/build.make CMakeFiles/cmTryCompileExec1586492661.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1586492661.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -fopenmp   -o CMakeFiles/cmTryCompileExec1586492661.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv removed: -fopenmp
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec1586492661.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec1586492661/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec2759926715/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2759926715.dir/build.make CMakeFiles/cmTryCompileExec2759926715.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2759926715.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED /openmp   -o CMakeFiles/cmTryCompileExec2759926715.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: no such file or directory: '/openmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2759926715.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec2759926715/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec1809118055/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1809118055.dir/build.make CMakeFiles/cmTryCompileExec1809118055.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1809118055.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -Qopenmp   -o CMakeFiles/cmTryCompileExec1809118055.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec1809118055.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec1809118055/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec953671036/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec953671036.dir/build.make CMakeFiles/cmTryCompileExec953671036.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec953671036.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -openmp   -o CMakeFiles/cmTryCompileExec953671036.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec953671036.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec953671036/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3221362051/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3221362051.dir/build.make CMakeFiles/cmTryCompileExec3221362051.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3221362051.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED   -o CMakeFiles/cmTryCompileExec3221362051.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec3221362051.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec3221362051/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3553985851/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3553985851.dir/build.make CMakeFiles/cmTryCompileExec3553985851.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3553985851.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -xopenmp   -o CMakeFiles/cmTryCompileExec3553985851.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: language not recognized: 'openmp'
make[1]: *** [CMakeFiles/cmTryCompileExec3553985851.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec3553985851/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec2752420518/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2752420518.dir/build.make CMakeFiles/cmTryCompileExec2752420518.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2752420518.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED +Oopenmp   -o CMakeFiles/cmTryCompileExec2752420518.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
clang: error: no such file or directory: '+Oopenmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2752420518.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec2752420518/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec4174748311/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4174748311.dir/build.make CMakeFiles/cmTryCompileExec4174748311.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec4174748311.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -qsmp   -o CMakeFiles/cmTryCompileExec4174748311.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec4174748311.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec4174748311/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the following output:
Change Dir: /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3346595914/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3346595914.dir/build.make CMakeFiles/cmTryCompileExec3346595914.dir/build
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3346595914.dir/src.cxx.o
/usr/local/Library/ENV/4.3/clang++    -ftemplate-depth=1024 -DOpenMP_FLAG_DETECTED -mp   -o CMakeFiles/cmTryCompileExec3346595914.dir/src.cxx.o -c /tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx
brew: superenv added: -pipe -w -Os -march=native -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers -I/usr/local/opt/qhull2011/include
/tmp/pcl-qKX0/macbuild/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTryCompileExec3346595914.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec3346595914/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
  return 0;
#else
  breaks_on_purpose
#endif
}
nizar-sallem commented 10 years ago

@fran6co can you please send me the tree of OpenGL (and GLUT by the way) framework on MacOS ? I will take care of that. Thanks.

nizar-sallem commented 10 years ago

fran6co, there is a slight issue with this commit, you are assuming user want to link against the framework I would have added something else to check that we are using an OpenGL framework. Will correct that whenever I have a chance to.

fran6co commented 10 years ago

@nizar-sallem The in hand scanner was using the apple headers already:

https://github.com/PointCloudLibrary/pcl/blob/master/apps/in_hand_scanner/src/opengl_viewer.cpp

I think it would be better to do a new PR for customizing the headers path.

nizar-sallem commented 10 years ago

@fran6co Yup it is buggy as well but as long as CMake finds the framework version it should be fine. Will do the PR tomorrow hopefully.

fran6co commented 10 years ago

@ky0on, I got the formula working without qt support (Mavericks doesn't support it yet, https://github.com/mxcl/homebrew/pull/24213 needs to be merged) using this command:

brew install pcl --HEAD --with-openni

Remember to brew update before running it, I made some changes to the formula.

ky0on commented 10 years ago

@fran6co Thanks. However it still gives the following error:

/tmp/pcl-EGls/io/tools/openni_pcd_recorder.cpp:62:29: error: use of undeclared identifier '_SC_AVPHYS_PAGES'
  uint64_t pages = sysconf (_SC_AVPHYS_PAGES);

My system is:

HOMEBREW_VERSION: 0.9.5
HEAD: c8fc5c4db56e36aef1eecb3188b122210ff648c9
CPU: 8-core 64-bit sandybridge
OS X: 10.8.5-x86_64
Xcode: 5.0.2
CLT: 5.0.0.0.1.1377666378
X11: 2.7.4 => /opt/X11
fran6co commented 10 years ago

@ky0on you didn't get the latest version of the formula. I fixed that some hours ago.

ky0on commented 10 years ago

@fran6co Thank you. Finally I could install pcl!

btw, when I run pcl_openni_grabber_example, it gives an error:

libc++abi.dylib: terminate called throwing an exception
Abort trap: 6

Is this problem related to #253?

fran6co commented 10 years ago

VTK6 support is work in progress, I added the patches to the formula just to get it building in mac. So, yeah it's going to have a lot of bugs =/ You'll have to wait for 1.7.2 probably.

ky0on commented 10 years ago

@fran6co I see. Anyway, thank you for helping me so much.

fran6co commented 10 years ago

@ky0on I updated the formula to build against vtk5. It should work now. If you have issues related to the formula can you post them at https://github.com/fran6co/homebrew-cv?

ky0on commented 10 years ago

@fran6co I could successfully install it. But still sample programs such as pcl_openni_grabber_example does not work.

nomadsystem commented 8 years ago

Hey folks. Trying to get PCL running on my 10.9 laptop. I tried both the packages listed on the website and the brew method. With the latter (brew) I can compile some of the simple intro stuff like pcd_write.cpp. But I cannot get anything with OpenNI to compile. Specifically, I'm trying to get the example openni_viewer_simple.cpp to compile. But there are a few issues it seems. The first is the same message referenced in this thread. The second is the seemingly more problematic #include from the example: #include <pcl/io/openni_grabber.h> That file simply doesn't exist on my machine. Yes, I've done the complete install --with-openni, etc. But who knows, maybe I missed something else.

I have several Linux boxes on hand, but they're older distros like Ubuntu 12.04. Would I just be better off upgrading one of them to 14.04? I feel like trying to work with PCL + OpenNI under Mac OS is going to be a very bumpy ride. I mean, it has been already. Spent an entire day today installing, uninstalling, etc.

jspricke commented 8 years ago

@nomadsystem: please use our mailing list (www.pcl-users.org) if you have questions. We provide a PPA for Ubuntu and starting with 14.10 we are part of the main unimportant repository.

yiakwy commented 5 years ago

Note @fran6co homebrew/science has been replaced by brewsci/science. For people who install pcl using homebrew, how can we modify the CMake file to add "/usr/local/include/ni"?