ros / homebrew-hydro

Hydro packages and dependencies repository for Homebrew
2 stars 7 forks source link

brew install pcl failed #17

Closed JetForMe closed 10 years ago

JetForMe commented 10 years ago

Hi. This might not be your issue, but it came up as a result of trying the fix for #15. If this should be reported to homebrew, let me know.

Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i 000-homebrew.diff
ERROR: the following rosdeps failed to install
  homebrew: command [brew install pcl] failed

The full transcript:

==> Installing pcl
==> Downloading https://github.com/PointCloudLibrary/pcl/archive/pcl-1.7.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/pcl-1.7.0.tar.gz
==> Downloading patches
######################################################################## 100.0%
==> Patching
can't find file to patch at input line 24
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 9a531531e756fea8854ed834d88eea4bbdb195b8 Mon Sep 17 00:00:00 2001
|From: Francisco Facioni <fran6co@gmail.com>
|Date: Wed, 18 Dec 2013 15:53:47 -0300
|Subject: [PATCH 1/2] VTK6 cmake fixes
|
|---
| 2d/CMakeLists.txt                  |  2 +-
| CMakeLists.txt                     | 10 ++++++++--
| PCLConfig.cmake.in                 |  2 +-
| apps/CMakeLists.txt                | 16 ++++++++--------
| apps/cloud_composer/CMakeLists.txt |  2 +-
| apps/modeler/CMakeLists.txt        |  2 +-
| cmake/Modules/FindQVTK.cmake       | 37 +++++++++++++++++++++++--------------
| io/CMakeLists.txt                  |  2 +-
| surface/CMakeLists.txt             |  9 +++++++--
| tools/CMakeLists.txt               |  6 +++---
| visualization/CMakeLists.txt       |  2 +-
| 11 files changed, 55 insertions(+), 35 deletions(-)
|
|diff --git a/2d/CMakeLists.txt b/2d/CMakeLists.txt
|index 1d5b319..967a300 100644
|--- a/2d/CMakeLists.txt
|+++ b/2d/CMakeLists.txt
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file CMakeLists.txt
Hunk #1 FAILED at 342.
1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej
patching file PCLConfig.cmake.in
Hunk #1 FAILED at 269.
1 out of 1 hunk FAILED -- saving rejects to file PCLConfig.cmake.in.rej
patching file apps/CMakeLists.txt
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 142.
2 out of 2 hunks FAILED -- saving rejects to file apps/CMakeLists.txt.rej
patching file apps/cloud_composer/CMakeLists.txt
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file apps/cloud_composer/CMakeLists.txt.rej
patching file apps/modeler/CMakeLists.txt
Hunk #1 FAILED at 109.
1 out of 1 hunk FAILED -- saving rejects to file apps/modeler/CMakeLists.txt.rej
patching file cmake/Modules/FindQVTK.cmake
patching file io/CMakeLists.txt
Hunk #1 FAILED at 221.
1 out of 1 hunk FAILED -- saving rejects to file io/CMakeLists.txt.rej
patching file surface/CMakeLists.txt
Hunk #2 FAILED at 159.
1 out of 2 hunks FAILED -- saving rejects to file surface/CMakeLists.txt.rej
patching file tools/CMakeLists.txt
Hunk #1 FAILED at 218.
1 out of 1 hunk FAILED -- saving rejects to file tools/CMakeLists.txt.rej
patching file visualization/CMakeLists.txt
Hunk #1 FAILED at 149.
1 out of 1 hunk FAILED -- saving rejects to file visualization/CMakeLists.txt.rej
can't find file to patch at input line 345
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|-- 
|1.8.5.5
|
|
|From 378afeecb0f1729f7f76b94a88dcdaf7b683518e Mon Sep 17 00:00:00 2001
|From: Francisco Facioni <fran6co@gmail.com>
|Date: Sat, 22 Feb 2014 13:26:41 -0300
|Subject: [PATCH 2/2] VTK6 code fixes. VTK5 backward compatibility
|
|---
| .../apps/3d_rec_framework/pc_source/mesh_source.h  |  1 -
| .../3d_rec_framework/utils/vtk_model_sampling.h    |  1 -
| .../rectangular_frustum_selector.cpp               | 22 +++--
| apps/modeler/src/normals_actor_item.cpp            |  6 +-
| apps/modeler/src/points_actor_item.cpp             |  7 +-
| apps/modeler/src/surface_actor_item.cpp            |  7 +-
| apps/src/render_views_tesselated_sphere.cpp        |  5 +-
| io/include/pcl/io/impl/vtk_lib_io.hpp              |  3 +-
| io/include/pcl/io/vtk_lib_io.h                     |  1 +
| io/src/vtk_lib_io.cpp                              | 22 ++++-
| .../include/pcl/outofcore/visualization/axes.h     | 11 ++-
| outofcore/src/visualization/camera.cpp             |  2 +-
| outofcore/src/visualization/grid.cpp               |  3 +-
| outofcore/src/visualization/outofcore_cloud.cpp    |  9 +++
| .../vtk_smoothing/vtk_mesh_quadric_decimation.cpp  |  5 ++
| .../vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp |  5 ++
| .../vtk_mesh_smoothing_windowed_sinc.cpp           |  5 ++
| surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp |  5 ++
| surface/src/vtk_smoothing/vtk_utils.cpp            |  5 ++
| tools/mesh2pcd.cpp                                 |  4 +-
| tools/mesh_sampling.cpp                            |  8 +-
| tools/obj2vtk.cpp                                  |  6 +-
| tools/obj_rec_ransac_accepted_hypotheses.cpp       |  9 +++
| tools/obj_rec_ransac_model_opps.cpp                |  5 ++
| tools/obj_rec_ransac_orr_octree.cpp                |  9 +++
| tools/obj_rec_ransac_orr_octree_zprojection.cpp    | 21 +++++
| tools/obj_rec_ransac_result.cpp                    |  9 +++
| tools/obj_rec_ransac_scene_opps.cpp                |  5 ++
| tools/octree_viewer.cpp                            |  8 ++
| tools/ply2vtk.cpp                                  |  6 +-
| tools/png2pcd.cpp                                  |  2 +-
| tools/tiff2pcd.cpp                                 |  4 +-
| tools/virtual_scanner.cpp                          |  2 +-
| tools/voxel_grid_occlusion_estimation.cpp          | 18 +++++
| tools/vtk2pcd.cpp                                  |  4 +
| tools/vtk2ply.cpp                                  |  6 +-
| .../pcl/visualization/common/impl/shapes.hpp       |  2 -
| .../include/pcl/visualization/image_viewer.h       |  3 +-
| .../pcl/visualization/impl/image_viewer.hpp        |  5 ++
| .../pcl/visualization/impl/pcl_visualizer.hpp      | 71 +++++++++++++----
| .../include/pcl/visualization/interactor.h         | 12 +--
| .../include/pcl/visualization/pcl_painter2D.h      |  2 +-
| visualization/src/common/io.cpp                    |  5 ++
| visualization/src/histogram_visualizer.cpp         |  6 ++
| visualization/src/image_viewer.cpp                 | 55 ++++++++++---
| visualization/src/interactor_style.cpp             | 10 ++-
| visualization/src/pcl_painter2D.cpp                |  2 -
| visualization/src/pcl_plotter.cpp                  |  5 ++
| visualization/src/pcl_visualizer.cpp               | 93 +++++++++++++++++++---
| visualization/src/point_picking_event.cpp          |  3 +-
| visualization/src/vtk/vtkVertexBufferObject.cxx    |  1 -
| .../src/vtk/vtkVertexBufferObjectMapper.cxx        |  9 +++
| 52 files changed, 447 insertions(+), 88 deletions(-)
|
|diff --git a/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h b/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h
|index c71deb6..3af9d17 100644
|--- a/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h
|+++ b/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pc_source/mesh_source.h
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 357
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h b/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h
|index f957cd5..5860d12 100644
|--- a/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h
|+++ b/apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file apps/cloud_composer/src/point_selectors/rectangular_frustum_selector.cpp
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 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/camera.cpp
patching file outofcore/src/visualization/grid.cpp
patching file outofcore/src/visualization/outofcore_cloud.cpp
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/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/include/pcl/visualization/common/impl/shapes.hpp
patching file visualization/include/pcl/visualization/image_viewer.h
Hunk #2 succeeded at 953 (offset -48 lines).
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/interactor.h
patching file visualization/include/pcl/visualization/pcl_painter2D.h
Hunk #1 succeeded at 206 (offset 2 lines).
patching file visualization/src/common/io.cpp
patching file visualization/src/histogram_visualizer.cpp
patching file visualization/src/image_viewer.cpp
Hunk #9 succeeded at 1077 (offset -83 lines).
Hunk #10 succeeded at 1088 (offset -83 lines).
Hunk #11 succeeded at 1099 (offset -83 lines).
Hunk #12 succeeded at 1111 (offset -83 lines).
patching file visualization/src/interactor_style.cpp
patching file visualization/src/pcl_painter2D.cpp
patching file visualization/src/pcl_plotter.cpp
Hunk #2 succeeded at 121 (offset -3 lines).
patching file visualization/src/pcl_visualizer.cpp
Hunk #2 succeeded at 537 (offset 1 line).
Hunk #3 succeeded at 549 (offset 1 line).
Hunk #4 succeeded at 615 (offset 32 lines).
Hunk #5 succeeded at 627 (offset 32 lines).
Hunk #6 FAILED at 693.
Hunk #7 FAILED at 705.
Hunk #8 succeeded at 860 (offset -38 lines).
Hunk #9 succeeded at 891 (offset -38 lines).
Hunk #10 succeeded at 905 (offset -38 lines).
Hunk #11 succeeded at 1133 (offset -30 lines).
Hunk #12 succeeded at 1211 (offset -30 lines).
Hunk #13 succeeded at 1595 (offset -28 lines).
Hunk #14 succeeded at 1612 (offset -28 lines).
Hunk #15 succeeded at 2332 (offset -29 lines).
Hunk #16 succeeded at 2810 (offset -29 lines).
Hunk #17 succeeded at 2829 (offset -29 lines).
Hunk #18 succeeded at 2938 (offset -29 lines).
Hunk #19 succeeded at 3062 (offset -29 lines).
Hunk #20 succeeded at 3116 (offset -29 lines).
Hunk #21 FAILED at 3256.
Hunk #22 succeeded at 3265 (offset -246 lines).
Hunk #23 succeeded at 3321 (offset -246 lines).
Hunk #24 succeeded at 3751 (offset -246 lines).
3 out of 24 hunks FAILED -- saving rejects to file visualization/src/pcl_visualizer.cpp.rej
patching file visualization/src/point_picking_event.cpp
patching file visualization/src/vtk/vtkVertexBufferObject.cxx
patching file visualization/src/vtk/vtkVertexBufferObjectMapper.cxx
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i 000-homebrew.diff
ERROR: the following rosdeps failed to install
  homebrew: command [brew install pcl] failed
wjwwood commented 10 years ago

Are you on 10.9? I think you have to use --HEAD on 10.9.

JetForMe commented 10 years ago

This came as a result of running

rosdep install --from-paths src --ignore-src --rosdistro hydro -y

I'm not sure how to get it to choose HEAD for just pcl.

JetForMe commented 10 years ago

I'm trying

brew install pcl --HEAD --with-tests --with-examples

I'll let you know.

JetForMe commented 10 years ago

Thanks. that worked, although I ran into unrelated problems later with gtk+ and XQuartz. However, how do I tell homebrew that it should get HEAD if it's running on Mavericks? Is that even something it should do?

wjwwood commented 10 years ago

No, eventually is should 'just work'™ but for now we are waiting on patches to make it into upstream pcl. There are several tickets on this issue tracker and others discussing it.