Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37351 closed submission (fixed)

pcl: Point Cloud Library 1.6.0

Reported by: luminans@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: pcl

Description

I made a portfile for Pont Cloud Library 1.6.0. Please put this in the repository with PCL 1.5.1.

Attachments (1)

Portfile (1.1 KB) - added by luminans@… 12 years ago.
PCL 1.6.0

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by luminans@…

Attachment: Portfile added

PCL 1.6.0

comment:1 Changed 12 years ago by Veence (Vincent)

Since this is mostly a GIS-related library, I’ll register it and add myself as co-maintainer, if you don’t mind. PCL is a good complement to CGAL.

comment:2 Changed 12 years ago by luminans@…

Sounds good! Thanks for your help.

comment:3 Changed 12 years ago by Veence (Vincent)

My pleasure. I have set it up in my own svn repository, I’ll try a private universal install before committing it. Another question: should the port be called “pcl” (which seems short) or rather “libpcl”, which seems to be the way the library is mostly referred to?

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

The maintainers line must be your valid email address, preferably in our obfuscated format.

Since this uses cmake, consider using the cmake portgroup.

This ticket and #37350 supersede #37309.

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 12 years ago by Veence (Vincent)

As such, (lib)pcl 1.6 does not compile with clang (and probably with gcc47 too, I’ll have to test it):

[  8%] Building CXX object io/tools/ply/CMakeFiles/pcl_ply2ply.dir/ply2ply.cpp.o
/opt/local/var/macports/build/_Users_vincent_Developpement_Macports_trunk_dports_gis_libpcl/libpcl/work/PCL-1.6.0-Source/io/tools/ply/ply2obj.cpp:308:17: error: no member named 'at' in namespace 'pcl::io::ply'
  pcl::io::ply::at<pcl::io::ply::float32> (scalar_property_definition_callbacks) = boost::bind (&ply_to_obj_converter::scalar_property_definition_callback<pcl::io::ply::float32>, this, _1, _2);
  ~~~~~~~~~~~~~~^
/opt/local/var/macports/build/_Users_vincent_Developpement_Macports_trunk_dports_gis_libpcl/libpcl/work/PCL-1.6.0-Source/io/tools/ply/ply2obj.cpp:308:41: error: expected '(' for function-style cast or type construction
  pcl::io::ply::at<pcl::io::ply::float32> (scalar_property_definition_callbacks) = boost::bind (&ply_to_obj_converter::scalar_property_definition_callback<pcl::io::ply::float32>, this, _1, _2);
                   ~~~~~~~~~~~~~~~~~~~~~^
/opt/local/var/macports/build/_Users_vincent_Developpement_Macports_trunk_dports_gis_libpcl/libpcl/work/PCL-1.6.0-Source/io/tools/ply/ply2obj.cpp:312:17: error: no member named 'at' in namespace 'pcl::io::ply'
  pcl::io::ply::at<pcl::io::ply::uint8, pcl::io::ply::int32> (list_property_definition_callbacks) = boost::bind (&ply_to_obj_converter::list_property_definition_callback<pcl::io::ply::uint8, pcl::io::ply::int32>, this, _1, _2);
  ~~~~~~~~~~~~~~^
/opt/local/var/macports/build/_Users_vincent_Developpement_Macports_trunk_dports_gis_libpcl/libpcl/work/PCL-1.6.0-Source/io/tools/ply/ply2obj.cpp:312:39: error: expected '(' for function-style cast or type construction
  pcl::io::ply::at<pcl::io::ply::uint8, pcl::io::ply::int32> (list_property_definition_callbacks) = boost::bind (&ply_to_obj_converter::list_property_definition_callback<pcl::io::ply::uint8, pcl::io::ply::int32>, this, _1, _2);
                   ~~~~~~~~~~~~~~~~~~~^
/opt/local/var/macports/build/_Users_vincent_Developpement_Macports_trunk_dports_gis_libpcl/libpcl/work/PCL-1.6.0-Source/io/tools/ply/ply2obj.cpp:312:60: error: expected '(' for function-style cast or type construction
  pcl::io::ply::at<pcl::io::ply::uint8, pcl::io::ply::int32> (list_property_definition_callbacks) = boost::bind (&ply_to_obj_converter::list_property_definition_callback<pcl::io::ply::uint8, pcl::io::ply::int32>, this, _1, _2);
                                        ~~~~~~~~~~~~~~~~~~~^
5 errors generated.

comment:6 Changed 12 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

Ok. PCL must use llvm-gcc-4.2 to compile. I have added the necessary lines, made it part of the cmake group, and obfuscated maintainer emails. Committed in r100683

comment:7 Changed 12 years ago by Veence (Vincent)

Further changes in r100684

comment:8 Changed 12 years ago by luminans@…

I've got the following error.

--->  Computing dependencies for libpcl..
--->  Dependencies to be installed: flann
Error: Requested variants "" do not match original selection "+cuda".
Please use the same variants again, perform 'port clean flann' or specify the force option (-f).
Error: Failed to install flann
Please see the log file for port flann for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_flann/flann/main.log
Error: The following dependencies were not installed: flann
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libpcl failed

I can install libpcl with the force option though.

comment:9 Changed 12 years ago by Veence (Vincent)

You probably tried to install flann with the CUDA option before and aborted the build somehow. A ‘port clean flann’ before ‘port install libpcl’ would have solved the problem, too.

comment:10 Changed 12 years ago by luminans@…

It works after I cleaned flann.

Note: See TracTickets for help on using tickets.