fran6co / homebrew-cv

Computer vision formulas
17 stars 9 forks source link

brew install pcl fails: Error 2 #7

Closed translunar closed 10 years ago

translunar commented 10 years ago

Cross-posted this to homebrew-science. Not sure where it goes.

Using Mavericks, vtk5, and your version of the pcl recipe.

I get the same errors described here and corrected here.

Sure enough, if I brew install -vd fran6co/cv/pcl --with-openni --with-qt --HEAD, those changes haven't been merged. Maybe that's supposed to be the case?

If this is the wrong place, my apologies. I've been wrestling with this, openni, and vtk for the last two days and am terribly confused as to who is responsible for what.

fran6co commented 10 years ago

@mohawkjohn The error you are reporting it's not the same as https://github.com/PointCloudLibrary/pcl/issues/283. It's failing when running mkdir, looks like a permission issue or out of space. You can change the line 123 in the formula:

system "make"

to

system "make VERBOSE=1"

to have a bit of information why it's failing.

translunar commented 10 years ago

Here's the error I appear to be getting when I run with make VERBOSE=1:

[ 26%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/sampling_surface_normal.cpp.o
cd /tmp/pcl-zOvz/macbuild/filters && /usr/local/Library/ENV/4.3/clang++   -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DPCLAPI_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -Dqh_QHpointer -ftemplate-depth=1024 -Qunused-arguments -Wno-invalid-offsetof  -fPIC -isystem /usr/local/include -isystem /usr/local/include/eigen3 -isystem /usr/local/include/ni -isystem /usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib -isystem /usr/local/Cellar/qt/4.8.5/include/QtGui -isystem /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers -I/tmp/pcl-zOvz/macbuild/include -I/tmp/pcl-zOvz/common/include -I/tmp/pcl-zOvz/sample_consensus/include -I/tmp/pcl-zOvz/search/include -I/tmp/pcl-zOvz/kdtree/include -I/tmp/pcl-zOvz/octree/include -I/tmp/pcl-zOvz/filters/include    -o CMakeFiles/pcl_filters.dir/src/sampling_surface_normal.cpp.o -c /tmp/pcl-zOvz/filters/src/sampling_surface_normal.cpp
In file included from /tmp/pcl-zOvz/visualization/src/pcl_visualizer.cpp:89:
In file included from /usr/local/include/vtk-5.10/vtkOpenGLRenderWindow.h:27:
/usr/local/include/vtk-5.10/vtkOpenGL.h:26:11: fatal error: 'GL/gl.h' file not found
# include <GL/gl.h> // Include OpenGL API.
          ^
Linking CXX shared library ../lib/libpcl_simulation.dylib

I've searched around a bit and can't figure out why this wouldn't be found. Maybe it needs to be brewed somehow in addition to being native? Here's what I get when I run a locate:

$ locate GL/gl.h
/opt/X11/include/GL/gl.h
fran6co commented 10 years ago

There was a fix related to that https://github.com/PointCloudLibrary/pcl/pull/357... In mac os x gl.h is In <OpenGL/gl.h> not <GL/gl.h>, vtk should know that. I'll check what I can do.

translunar commented 10 years ago

Okay, so it looks like the necessary COCOA #defines are not present in vtk. I actually commented out the "GL/gl.h" line in the vtk gl header and forced it to use "OpenGL/gl.h" as in the pcl brew. It got a little further, then gave me this:

In file included from /tmp/pcl-R28m/visualization/src/common/ren_win_interact_map.cpp:44:
/tmp/pcl-R28m/visualization/include/pcl/visualization/interactor.h:49:12: fatal error: 'vtkCocoaRenderWindowInteractor.h' file not found
#  include <vtkCocoaRenderWindowInteractor.h>
           ^
1 error generated.
make[2]: *** [visualization/CMakeFiles/pcl_visualization.dir/src/common/ren_win_interact_map.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

So I think the problem is with the COCOA #define. Here is the offending line in vtkOpenGL.h:

#if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA))

Either __APPLE__ is not defined() or VTK_USE_COCOA is not. I'd guess COCOA given the error message produced when I forced it.

fran6co commented 10 years ago

I think there is something wrong with your vtk installation. It looks like VTK_USE_COCOA is not defined... check your vtk5 brew flags, do you have --with-qt?

translunar commented 10 years ago

I do.

$ brew info vtk5
vtk5: stable 5.10.1
http://www.vtk.org
Conflicts with: vtk
/usr/local/Cellar/vtk5/5.10.1 (2668 files, 119M) *
  Built from source with: --with-qt, --with-x11, --tcl
From: https://github.com/homebrew/homebrew-versions/commits/master/vtk5.rb
==> Dependencies
Build: cmake ✔
Optional: qt ✔
translunar commented 10 years ago

So one problem is that vtk5 doesn't define VTK_USE_COCOA if --with-x11 is used, it seems. I'm redoing it just with --with-qt (and also without tcl), but I'm pretty sure I've tried this before and it didn't work either.

translunar commented 10 years ago

Okay, so I recompiled vtk5 without the --with-x11 flag. But it looks like there are some vtk6-specific changes made which prevent your patch from working with vtk5:

/tmp/pcl-cy2F/visualization/src/image_viewer.cpp:206:10: error: no member named 'SetInputData' in 'vtkImageFlip'; did you mean 'SetInput'?
  algo_->SetInputData (image);
         ^~~~~~~~~~~~
         SetInput
/usr/local/include/vtk-5.10/vtkImageAlgorithm.h:59:8: note: 'SetInput' declared here
  void SetInput(vtkDataObject *);
       ^
/tmp/pcl-cy2F/visualization/src/image_viewer.cpp:264:10: error: no member named 'SetInputData' in 'vtkImageFlip'; did you mean 'SetInput'?
  algo_->SetInputData (image);
         ^~~~~~~~~~~~
         SetInput
/usr/local/include/vtk-5.10/vtkImageAlgorithm.h:59:8: note: 'SetInput' declared here
  void SetInput(vtkDataObject *);
       ^
2 errors generated.
make[2]: *** [visualization/CMakeFiles/pcl_visualization.dir/src/image_viewer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

I've also been playing around with the fix-10.9 branch. It seems that this problem was introduced with one of the vtk6 compatibility improvements.

Am I just pulling from the wrong place? This is absolutely driving me nuts. I've tried probably fifty different combinations at this point.

fran6co commented 10 years ago

I think you have vtk6 headers installed somewhere, could you post the cmake configuration output (everything that comes before the make install) when doing the brew install of pcl with the debug flags. I think it's detecting vtk6 somewhere.

translunar commented 10 years ago

Hopefully this is what you mean. I assume you meant before the make, since it doesn't get anywhere near the install step.

=> Cloning https://github.com/fran6co/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/fran6co/pcl.git
git config remote.origin.fetch +refs/heads/fix-10.9:refs/remotes/origin/fix-10.9
git fetch origin
remote: Counting objects: 309, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 101 (delta 74), reused 64 (delta 43)
Receiving objects: 100% (101/101), 35.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (74/74), completed with 55 local objects.
From https://github.com/fran6co/pcl
 * branch            master     -> FETCH_HEAD
 * [new branch]      fix-10.9   -> origin/fix-10.9
git checkout -f fix-10.9
Checking out files: 100% (3182/3182), done.
Branch fix-10.9 set up to track remote branch fix-10.9 from origin.
Switched to a new branch 'fix-10.9'
git reset --hard origin/fix-10.9
HEAD is now at 5730712 VTK6 fixes.
==> Checking out branch fix-10.9
git checkout-index -a -f --prefix=/private/tmp/pcl-HZJH/
==> 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
Executing cmake
==> 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 -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_simulation:BOOL=AUTO_OFF -DBUILD_outofcore:BOOL=AUTO_OFF -DBUILD_people:BOOL=AUTO_OFF -DBUILD_apps=AUTO_OFF -DBUILD_apps_3d_rec_framework=AUTO_OFF -DBUILD_apps_cloud_composer:BOOL=OFF -DBUILD_apps_in_hand_scanner=AUTO_OFF -DBUILD_apps_modeler=AUTO_OFF -DBUILD_apps_optronic_viewer=AUTO_OFF -DBUILD_apps_point_cloud_editor=AUTO_OFF -DBUILD_examples:BOOL=OFF -DBUILD_global_tests:BOOL=OFF -DOPENNI_INCLUDE_DIR=/usr/local/include/ni ..
-- 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.55.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.17")
-- 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
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.6")
-- 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.6")
-- Found PCAP: /usr/lib/libpcap.dylib
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found GLUT: -framework GLUT
-- Found Glew: /usr/local/lib/libGLEW.dylib;-framework Cocoa
-- Found Glew: /usr/local/lib/libGLEW.dylib;-framework Cocoa
-- DOXYGEN_FOUND YES
-- HTML_HELP_COMPILER
-- checking for module 'sphinx-build'
--   package 'sphinx-build' not found
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.6")
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
-- 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
--   apps
       building:
       |_ 3d_rec_framework
       |_ in_hand_scanner
       |_ modeler
       |_ point_cloud_editor
       not building:
       |_ cloud_composer: Disabled by default.
       |_ optronic_viewer: FZAPI was not found.
--   outofcore
--   people
--   simulation
--   tools
-- The following subsystems will not be built:
--   examples: Code examples are disabled by default.
--   global_tests: Disabled by default.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pcl-HZJH/macbuild
Executing make
==> make VERBOSE=1
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -H/tmp/pcl-HZJH -B/tmp/pcl-HZJH/macbuild --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_start /tmp/pcl-HZJH/macbuild/CMakeFiles /tmp/pcl-HZJH/macbuild/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/pcl_common.dir/build.make common/CMakeFiles/pcl_common.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f octree/CMakeFiles/pcl_octree.dir/build.make octree/CMakeFiles/pcl_octree.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f io/CMakeFiles/pcl_io_ply.dir/build.make io/CMakeFiles/pcl_io_ply.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/build.make io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/depend
cd /tmp/pcl-HZJH/macbuild && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pcl-HZJH /tmp/pcl-HZJH/octree /tmp/pcl-HZJH/macbuild /tmp/pcl-HZJH/macbuild/octree /tmp/pcl-HZJH/macbuild/octree/CMakeFiles/pcl_octree.dir/DependInfo.cmake --color=
cd /tmp/pcl-HZJH/macbuild && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pcl-HZJH /tmp/pcl-HZJH/io /tmp/pcl-HZJH/macbuild /tmp/pcl-HZJH/macbuild/io /tmp/pcl-HZJH/macbuild/io/CMakeFiles/pcl_io_ply.dir/DependInfo.cmake --color=
cd /tmp/pcl-HZJH/macbuild && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pcl-HZJH /tmp/pcl-HZJH/io/tools /tmp/pcl-HZJH/macbuild /tmp/pcl-HZJH/macbuild/io/tools /tmp/pcl-HZJH/macbuild/io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/DependInfo.cmake --color=
cd /tmp/pcl-HZJH/macbuild && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pcl-HZJH /tmp/pcl-HZJH/common /tmp/pcl-HZJH/macbuild /tmp/pcl-HZJH/macbuild/common /tmp/pcl-HZJH/macbuild/common/CMakeFiles/pcl_common.dir/DependInfo.cmake --color=
Dependee "/tmp/pcl-HZJH/macbuild/io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/DependInfo.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/io/tools/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/octree/CMakeFiles/pcl_octree.dir/DependInfo.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/octree/CMakeFiles/pcl_octree.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/octree/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/octree/CMakeFiles/pcl_octree.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/io/CMakeFiles/pcl_io_ply.dir/DependInfo.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/io/CMakeFiles/pcl_io_ply.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/io/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/io/CMakeFiles/pcl_io_ply.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/common/CMakeFiles/pcl_common.dir/DependInfo.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/common/CMakeFiles/pcl_common.dir/depend.internal".
Dependee "/tmp/pcl-HZJH/macbuild/common/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/pcl-HZJH/macbuild/common/CMakeFiles/pcl_common.dir/depend.internal".
Scanning dependencies of target pcl_pcd_convert_NaN_nan
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/build.make io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/build
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_report /tmp/pcl-HZJH/macbuild/CMakeFiles
[  0%] Building CXX object io/tools/CMakeFiles/pcl_pcd_convert_NaN_nan.dir/pcd_convert_NaN_nan.cpp.o
cd /tmp/pcl-HZJH/macbuild/io/tools && /usr/local/Library/ENV/4.3/clang++   -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DHAVE_PCAP -DPCL_BUILT_WITH_VTK -DQT_CORE_LIB -DQT_GUI_LIB -Dqh_QHpointer -ftemplate-depth=1024  -isystem /usr/local/include -isystem /usr/local/include/eigen3 -isystem /usr/local/include/ni -isystem /usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib -isystem /usr/local/Cellar/qt/4.8.5/include/QtGui -isystem /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers -I/tmp/pcl-HZJH/macbuild/include -I/tmp/pcl-HZJH/common/include -I/tmp/pcl-HZJH/octree/include -I/usr/local/include/vtk-5.10 -I/tmp/pcl-HZJH/io/include    -o CMakeFiles/pcl_pcd_convert_NaN_nan.dir/pcd_convert_NaN_nan.cpp.o -c /tmp/pcl-HZJH/io/tools/pcd_convert_NaN_nan.cpp
Scanning dependencies of target pcl_octree
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f octree/CMakeFiles/pcl_octree.dir/build.make octree/CMakeFiles/pcl_octree.dir/build
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_report /tmp/pcl-HZJH/macbuild/CMakeFiles
[  0%] Building CXX object octree/CMakeFiles/pcl_octree.dir/src/octree_inst.cpp.o
fran6co commented 10 years ago

Wait, why are you trying to compile the vtk6-fixes branch? Use the master of PCL. The branch is not stable yet.

translunar commented 10 years ago

I'm not. I'm using the fix-10.9 branch, since I'm in Mavericks. I tried master, too, but that doesn't get far either.

[ 13%] Building CXX object
sample_consensus/CMakeFiles/pcl_sample_consensus.dir/src/sac_model_cylinder.cpp.o
cd /tmp/pcl-8lUr/macbuild/sample_consensus &&
/usr/local/Library/ENV/4.3/clang++   -DEIGEN_USE_NEW_STDVECTOR
-DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DPCLAPI_EXPORTS
-DQT_CORE_LIB -DQT_GUI_LIB -Dqh_QHpointer -Qunused-arguments
-Wno-invalid-offsetof  -fPIC -isystem /usr/local/include -isystem
/usr/local/include/eigen3 -isystem /usr/local/include/ni -isystem
/usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib
-isystem /usr/local/Cellar/qt/4.8.5/include/QtGui -isystem
/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers
-I/tmp/pcl-8lUr/macbuild/include -I/tmp/pcl-8lUr/common/include
-I/tmp/pcl-8lUr/search/include -I/tmp/pcl-8lUr/sample_consensus/include
 -o CMakeFiles/pcl_sample_consensus.dir/src/sac_model_cylinder.cpp.o -c
/tmp/pcl-8lUr/sample_consensus/src/sac_model_cylinder.cpp
In file included from /tmp/pcl-8lUr/search/src/organized.cpp:40:
In file included from /tmp/pcl-8lUr/common/include/pcl/point_types.h:320:
In file included from
/tmp/pcl-8lUr/common/include/pcl/impl/point_types.hpp:45:
In file included from /usr/local/include/eigen3/Eigen/Core:324:
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:5: fatal
error: recursive template instantiation exceeded maximum depth of 128
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);
    ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
in instantiation of member function
'Eigen::internal::triangular_assignment_selector<Eigen::Matrix<double, 12,
12, 1, 12, 12>, Eigen::Matrix<double, 12, 12, 1, 12, 12>, 1, 25,
true>::run' requested here
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);

                ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
in instantiation of member function
'Eigen::internal::triangular_assignment_selector<Eigen::Matrix<double, 12,
12, 1, 12, 12>, Eigen::Matrix<double, 12, 12, 1, 12, 12>, 1, 26,
true>::run' requested here
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);

                ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
in instantiation of member function
'Eigen::internal::triangular_assignment_selector<Eigen::Matrix<double, 12,
12, 1, 12, 12>, Eigen::Matrix<double, 12, 12, 1, 12, 12>, 1, 27,
true>::run' requested here
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);

                ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
in instantiation of member function
'Eigen::internal::triangular_assignment_selector<Eigen::Matrix<double, 12,
12, 1, 12, 12>, Eigen::Matrix<double, 12, 12, 1, 12, 12>, 1, 28,
true>::run' requested here
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);

                ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
in instantiation of member function
'Eigen::internal::triangular_assignment_selector<Eigen::Matrix<double, 12,
12, 1, 12, 12>, Eigen::Matrix<double, 12, 12, 1, 12, 12>, 1, 29,
true>::run' requested here
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);

                ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:93: note:
(skipping 119 contexts in backtrace; use -ftemplate-backtrace-limit=0 to
see all)
/usr/local/include/eigen3/Eigen/src/Core/Matrix.h:184:20: note: in
instantiation of function template specialization
'Eigen::PlainObjectBase<Eigen::Matrix<double, 12, 12, 1, 12, 12>
>::operator=<Eigen::TriangularView<const Eigen::Matrix<double, 12, 12, 1,
12, 12>, 1> >' requested here
      return Base::operator=(other);
                   ^
/usr/local/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:412:7:
note: in instantiation of function template specialization
'Eigen::Matrix<double, 12, 12, 1, 12,
12>::operator=<Eigen::TriangularView<const Eigen::Matrix<double, 12, 12, 1,
12, 12>, 1> >' requested here
  mat = matrix.template triangularView<Lower>();
      ^
/usr/local/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:159:7:
note: in instantiation of member function
'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, 12, 12, 1, 12, 12>
>::compute' requested here
      compute(matrix, options);
      ^
/tmp/pcl-8lUr/common/include/pcl/common/impl/projection_matrix.hpp:188:82:
note: in instantiation of member function
'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, 12, 12, 1, 12, 12>
>::SelfAdjointEigenSolver' requested here
  Eigen::SelfAdjointEigenSolver<Eigen::Matrix<Scalar, 12, 12,
Eigen::RowMajor> > ei_symm (X);

     ^
/tmp/pcl-8lUr/search/include/pcl/search/impl/organized.hpp:364:25: note: in
instantiation of function template specialization
'pcl::estimateProjectionMatrix<pcl::PointXYZ>' requested here
  double residual_sqr = pcl::estimateProjectionMatrix<PointT> (input_,
projection_matrix_, indices);
                        ^
/usr/local/include/eigen3/Eigen/src/Core/TriangularMatrix.h:444:5: note:
use -ftemplate-depth=N to increase recursive template instantiation depth
    triangular_assignment_selector<Derived1, Derived2, Mode, UnrollCount-1,
ClearOpposite>::run(dst, src);
    ^
1 error generated.
make[2]: *** [search/CMakeFiles/pcl_search.dir/src/organized.cpp.o] Error 1
make[1]: *** [search/CMakeFiles/pcl_search.dir/all] Error 2
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_report
/tmp/pcl-8lUr/macbuild/CMakeFiles
make[1]: *** Waiting for unfinished jobs....
[ 13%] Building CXX object io/CMakeFiles/pcl_io.dir/src/lzf.cpp.o
fran6co commented 10 years ago

Ok, that is another problem that should have been solved in master already. You are missing the flag "-ftemplate-depth=1024" in the CXXFLAGS for some reason. Maybe one of the latest changes is overwriting the flags. I'm checking the commits now

translunar commented 10 years ago

Yeah, that's why I was using the fix-10.9 branch, because the depth was correct there. But then there were other errors, from the vtk6-related patches, so something is very confused in your tree.

On Sun, Jan 26, 2014 at 3:03 AM, Francisco Facioni <notifications@github.com

wrote:

Ok, that is another problem that should have been solved in master already. You are missing the flag "-ftemplate-depth=1024" in the CXXFLAGS for some reason. Maybe one of the latest changes is overwriting the flags. I'm checking the commits now

— Reply to this email directly or view it on GitHubhttps://github.com/fran6co/homebrew-cv/issues/7#issuecomment-33311703 .

fran6co commented 10 years ago

It should be correct in master too, the branch was merged. vtk6 needs a rebase, it's a bit stale now.

fran6co commented 10 years ago

I'm rebuilding everything from scratch (it's going to take a while) and I'll the the formula with the master.

fran6co commented 10 years ago

I think you are using the master from my repository instead of the official one, could you check that?

In any case I found an error when building point_cloud_editor, I just uploaded a fix for it now. With that it should be working fine. (remember to do a brew update)

translunar commented 10 years ago

Yes. I am using your repo. I tried the official, but it doesn't get past the configuration step, and there is no error message. I'll try again in a minute.

fran6co commented 10 years ago

I fixed the configuration step now, try with that and the official. My master is very old and it doesn't support 10.9.

translunar commented 10 years ago

Okay. It gets past configuration, but still errors:

cd /tmp/pcl-5Rtn/macbuild/apps/point_cloud_editor && /usr/local/Library/ENV/4.3/clang++   -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DQT_CORE_LIB -DQT_GUI_LIB -Dqh_QHpointer -ftemplate-depth=1024 -Qunused-arguments -Wno-invalid-offsetof   -isystem /usr/local/include -isystem /usr/local/include/eigen3 -isystem /usr/local/include/ni -I/tmp/pcl-5Rtn/recognition/include/pcl/recognition/3rdparty -isystem /usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib -isystem /usr/local/Cellar/qt/4.8.5/include/QtGui -isystem /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers -I/tmp/pcl-5Rtn/macbuild/include -I/usr/local/include/vtk-5.10 -I/tmp/pcl-5Rtn/common/include -I/tmp/pcl-5Rtn/geometry/include -I/tmp/pcl-5Rtn/io/include -I/tmp/pcl-5Rtn/filters/include -I/tmp/pcl-5Rtn/sample_consensus/include -I/tmp/pcl-5Rtn/segmentation/include -I/tmp/pcl-5Rtn/visualization/include -I/tmp/pcl-5Rtn/kdtree/include -I/tmp/pcl-5Rtn/features/include -I/tmp/pcl-5Rtn/surface/include -I/tmp/pcl-5Rtn/octree/include -I/tmp/pcl-5Rtn/registration/include -I/tmp/pcl-5Rtn/keypoints/include -I/tmp/pcl-5Rtn/tracking/include -I/tmp/pcl-5Rtn/search/include -I/tmp/pcl-5Rtn/recognition/include -I/tmp/pcl-5Rtn/ml/include -I/tmp/pcl-5Rtn/stereo/include -I/tmp/pcl-5Rtn/macbuild/apps -I/tmp/pcl-5Rtn/apps/include -I/System/Library/Frameworks/GLUT.framework/Versions/A/Headers -I/tmp/pcl-5Rtn/macbuild/apps/point_cloud_editor -I/tmp/pcl-5Rtn/apps/point_cloud_editor/include -I/usr/local/Cellar/qt/4.8.5/include/QtOpenGL    -o CMakeFiles/pcl_point_cloud_editor.dir/src/trackball.cpp.o -c /tmp/pcl-5Rtn/apps/point_cloud_editor/src/trackball.cpp
/tmp/pcl-5Rtn/simulation/tools/sim_viewer.cpp:609:11: error: call to member function 'addCoordinateSystem' is ambiguous
  viewer->addCoordinateSystem (1.0,pose);
  ~~~~~~~~^~~~~~~~~~~~~~~~~~~
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:321:30: note: candidate function
        PCL_DEPRECATED (void addCoordinateSystem (double scale, const Eigen::Affine3f& t, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:358:9: note: candidate function
        addCoordinateSystem (double scale, const Eigen::Affine3f& t, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:281:30: note: candidate function not viable: no known conversion from 'Eigen::Affine3f' (aka 'Transform<float, 3, Affine>') to 'int' for 2nd argument
        PCL_DEPRECATED (void addCoordinateSystem (double scale, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:291:9: note: candidate function not viable: no known conversion from 'Eigen::Affine3f' (aka 'Transform<float, 3, Affine>') to 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') for 2nd argument
        addCoordinateSystem (double scale = 1.0, const std::string& id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:300:30: note: candidate function not viable: requires at least 4 arguments, but 2 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, float x, float y, float z, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:313:9: note: candidate function not viable: requires at least 4 arguments, but 2 were provided
        addCoordinateSystem (double scale, float x, float y, float z, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/simulation/tools/sim_viewer.cpp:1089:8: error: call to member function 'addCoordinateSystem' is ambiguous
    p->addCoordinateSystem (axes, ax_x, ax_y, ax_z);
    ~~~^~~~~~~~~~~~~~~~~~~
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:300:30: note: candidate function
        PCL_DEPRECATED (void addCoordinateSystem (double scale, float x, float y, float z, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:313:9: note: candidate function
        addCoordinateSystem (double scale, float x, float y, float z, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:358:9: note: candidate function not viable: no known conversion from 'double' to 'const Eigen::Affine3f' (aka 'const Transform<float, 3, Affine>') for 2nd argument
        addCoordinateSystem (double scale, const Eigen::Affine3f& t, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:281:30: note: candidate function not viable: requires at most 2 arguments, but 4 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:291:9: note: candidate function not viable: requires at most 3 arguments, but 4 were provided
        addCoordinateSystem (double scale = 1.0, const std::string& id = "reference", int viewport = 0);
        ^
/tmp/pcl-5Rtn/visualization/include/pcl/visualization/pcl_visualizer.h:321:30: note: candidate function not viable: requires at most 3 arguments, but 4 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, const Eigen::Affine3f& t, int viewport = 0),
                             ^
/tmp/pcl-5Rtn/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_report /tmp/pcl-5Rtn/macbuild/CMakeFiles
[ 56%] Building CXX object apps/point_cloud_editor/CMakeFiles/pcl_point_cloud_editor.dir/src/denoiseParameterForm.cpp.o
fran6co commented 10 years ago

Uhm, didn't get those... You can disable the point_cloud_editor from the build by switching it off in the formula. Just change:

-DBUILD_apps_point_cloud_editor=AUTO_OFF

to

-DBUILD_apps_point_cloud_editor:BOOL=OFF

and see how it goes.

translunar commented 10 years ago

Nope. Exactly the same error. I'll also note that I need the PCL visualizer. It's the whole reason I'm installing this right now. =)

fran6co commented 10 years ago

It can't be, that should be not compiling point_cloud_editor. Are you sure it's the same error and not in some other file?

translunar commented 10 years ago

Here it is:

[ 56%] Building CXX object features/CMakeFiles/pcl_features.dir/src/vfh.cpp.o
cd /tmp/pcl-yqRp/macbuild/features && /usr/local/Library/ENV/4.3/clang++   -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DPCLAPI_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -Dqh_QHpointer -ftemplate-depth=1024 -Qunused-arguments -Wno-invalid-offsetof  -fPIC -isystem /usr/local/include -isystem /usr/local/include/eigen3 -isystem /usr/local/include/ni -I/tmp/pcl-yqRp/recognition/include/pcl/recognition/3rdparty -isystem /usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib -isystem /usr/local/Cellar/qt/4.8.5/include/QtGui -isystem /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers -I/tmp/pcl-yqRp/macbuild/include -I/tmp/pcl-yqRp/common/include -I/tmp/pcl-yqRp/search/include -I/tmp/pcl-yqRp/kdtree/include -I/tmp/pcl-yqRp/octree/include -I/tmp/pcl-yqRp/filters/include -I/tmp/pcl-yqRp/2d/include -I/tmp/pcl-yqRp/features/include    -o CMakeFiles/pcl_features.dir/src/vfh.cpp.o -c /tmp/pcl-yqRp/features/src/vfh.cpp
/tmp/pcl-yqRp/simulation/tools/sim_viewer.cpp:609:11: error: call to member function 'addCoordinateSystem' is ambiguous
  viewer->addCoordinateSystem (1.0,pose);
  ~~~~~~~~^~~~~~~~~~~~~~~~~~~
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:321:30: note: candidate function
        PCL_DEPRECATED (void addCoordinateSystem (double scale, const Eigen::Affine3f& t, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:358:9: note: candidate function
        addCoordinateSystem (double scale, const Eigen::Affine3f& t, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:281:30: note: candidate function not viable: no known conversion from 'Eigen::Affine3f' (aka 'Transform<float, 3, Affine>') to 'int' for 2nd argument
        PCL_DEPRECATED (void addCoordinateSystem (double scale, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:291:9: note: candidate function not viable: no known conversion from 'Eigen::Affine3f' (aka 'Transform<float, 3, Affine>') to 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') for 2nd argument
        addCoordinateSystem (double scale = 1.0, const std::string& id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:300:30: note: candidate function not viable: requires at least 4 arguments, but 2 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, float x, float y, float z, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:313:9: note: candidate function not viable: requires at least 4 arguments, but 2 were provided
        addCoordinateSystem (double scale, float x, float y, float z, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/simulation/tools/sim_viewer.cpp:1089:8: error: call to member function 'addCoordinateSystem' is ambiguous
    p->addCoordinateSystem (axes, ax_x, ax_y, ax_z);
    ~~~^~~~~~~~~~~~~~~~~~~
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:300:30: note: candidate function
        PCL_DEPRECATED (void addCoordinateSystem (double scale, float x, float y, float z, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:313:9: note: candidate function
        addCoordinateSystem (double scale, float x, float y, float z, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:358:9: note: candidate function not viable: no known conversion from 'double' to 'const Eigen::Affine3f' (aka 'const Transform<float, 3, Affine>') for 2nd argument
        addCoordinateSystem (double scale, const Eigen::Affine3f& t, const std::string &id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:281:30: note: candidate function not viable: requires at most 2 arguments, but 4 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:291:9: note: candidate function not viable: requires at most 3 arguments, but 4 were provided
        addCoordinateSystem (double scale = 1.0, const std::string& id = "reference", int viewport = 0);
        ^
/tmp/pcl-yqRp/visualization/include/pcl/visualization/pcl_visualizer.h:321:30: note: candidate function not viable: requires at most 3 arguments, but 4 were provided
        PCL_DEPRECATED (void addCoordinateSystem (double scale, const Eigen::Affine3f& t, int viewport = 0),
                             ^
/tmp/pcl-yqRp/common/include/pcl/pcl_macros.h:309:39: note: expanded from macro 'PCL_DEPRECATED'
#define PCL_DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
                                      ^
2 errors generated.
make[2]: *** [simulation/tools/CMakeFiles/pcl_sim_viewer.dir/sim_viewer.cpp.o] Error 1
make[1]: *** [simulation/tools/CMakeFiles/pcl_sim_viewer.dir/all] Error 2
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_report /tmp/pcl-yqRp/macbuild/CMakeFiles
[ 56%] Building CXX object features/CMakeFiles/pcl_features.dir/src/esf.cpp.o
fran6co commented 10 years ago

ok, it's in a different file, but the same error. Uhm, I think it's a PCL bug... Not sure why it's not failing on my computer. Could you run

clang++ --version

and post here?

translunar commented 10 years ago

Sure.

$ clang++ --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
fran6co commented 10 years ago

Yep, definitely a bug in PCL... it looks that this commit https://github.com/PointCloudLibrary/pcl/commit/085c93488a3bf991eb4b247187b41f8c367eb025 generated some problems. I'll foward it to them or try to find a solution.

translunar commented 10 years ago

Thanks. I'm trying to compile from HEAD right now, without brew, so we'll see how that goes. Will keep you updated and file a bug report if you don't beat me to it.

fran6co commented 10 years ago

@mohawkjohn, how did it go without brew?

fran6co commented 10 years ago

Fixed the problem with this PR https://github.com/PointCloudLibrary/pcl/pull/486. I added the patch to the formula so you can test it out.