Package Details: pcl 1.8.0-1

Git Clone URL: https://aur.archlinux.org/pcl.git (read-only)
Package Base: pcl
Description: A comprehensive open source library for n-D Point Clouds and 3D geometry processing
Upstream URL: http://www.pointclouds.org
Licenses: BSD
Submitter: None
Maintainer: bchretien (v01d)
Last Packager: bchretien
Votes: 27
Popularity: 1.808559
First Submitted: 2011-04-05 03:39
Last Updated: 2016-07-17 19:03

Latest Comments

krukai commented on 2016-10-17 10:08

It seems like libpcap is at least an optional dependency. Removing it from my system resulted in both pcl_viewer and simple io functions complaining about libpcap.so.1 missing.

tlou commented on 2016-09-22 06:04

shared object missing after updating libboost, "ln -s **" leads to undefined reference. how should i avoid compiling with specific version of "so"? or do i have to reinstall after every update? thanks!

qs9rx commented on 2016-07-21 20:31

If you are getting ld errors about libhdf5.so.9 or libhdf5_hl.so.9 needed by /usr/lib/vtk-5.10/libvtkNetCDF.so.5.10, I had to remove an ancient vtk5 on my system (which probably "provided" vtk), afterwards it compiled just fine.link)

v01d commented on 2016-06-24 20:43

please note that 1.8.0 non rc was released

doug commented on 2016-05-28 17:29

@Alad: it depends on number of parallel make jobs as set in MAKEFLAGS. 4 should be fine for 8GB of RAM (unless you run some other memory hungry app), with 8 you need more than 10GB.

Alad commented on 2016-05-28 16:21

How much RAM does this need to compile? At 8 GB, I ran out of swap and OOM killed the compiler process.

bchretien commented on 2016-03-12 13:37

I updated to the rc2. Note that pcl_sim_viewer still crashes (cf. https://github.com/PointCloudLibrary/pcl/issues/1561).

SMOG commented on 2016-03-11 16:53

Ah ok, sorry I have misunderstood. I'll try as soon as I can... thank you! :)

doug commented on 2016-03-11 16:51

yes, but PKGBUILD has also other lines and some of them is causing the crashing, by removing all cmake lines and keeping just these will create build that doesn't crash and works with vtk7

SMOG commented on 2016-03-11 16:44

@doug: it seems to me that PKGBUILD already has those lines. Also, just to be clear, the problem was not that it was not compiling, it was; it was giving me the same problem reported by @horse.
ATM I've compiled against VTK6 following directions given by @bchretien and everything seems to be working fine.
Thanks.

doug commented on 2016-03-11 15:37

@SMOG: after I edited this PKGBUILD that it uses default cmake config like this

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr

then it works with vtk7

bchretien commented on 2016-03-08 17:47

@SMOG: you can check how I did that for the previous pcl-qt5 package (commit here: https://gist.github.com/bchretien/49c898c8f9d5ee3dcea3, adapt it accordingly).

SMOG commented on 2016-03-08 17:39

@doug: I'm facing your exact problem... how exactly have you fixed it?
I've tried compiling this having only vtk6 (from AUR) on my system but it still doesn't work... I've just changed the dependency from vtk to vtk6.
Do I have to add any other flag?

Thank you for your help.

v01d commented on 2016-03-06 14:17

Hi, I had asked this in the past and got no response. I always get:

fitting_curve_2d_pdm.h: No such file or directory

and thus I have to set:

-DBUILD_surface_on_nurbs=OFF

Can this be address? It breaks my builds.

bchretien commented on 2016-03-03 11:25

@doug: yes, I made that package since VTK 7 was not supported a few weeks ago. Now, using VTK 7 implies relying on the new OpenGL2 backend which is still unstable in PCL (see https://github.com/PointCloudLibrary/pcl/pull/1534).

doug commented on 2016-03-02 09:22

combination of this package with vtk6 from aur also works

doug commented on 2016-03-01 18:35

I have the same problem, but everything works ok on ubuntu with manually compiled vtk 7.0 and latest pcl from github on the same hardware.

horse commented on 2016-02-29 14:26

@bchretien Ah yes that's the one, my mistake. Great will do, thanks for getting back to me - glad I'm not the only one.

bchretien commented on 2016-02-29 13:51

@horse: don't you mean the vtk package from [community]? I can reprocude the issue with pcl_sim_viewer and any pcd file. This should probably be reported upstream (https://github.com/PointCloudLibrary/pcl). I don't have the time to take care of this, so feel free to contact them. You can probably test with the latest commit to see if it has already been fixed since the RC tarball.

horse commented on 2016-02-29 13:28

I'm getting (what appear to be VTK related) segmentation faults when I attempt to run any PCL visualizer examples. Alleyoop debug screenshot: http://imgur.com/LiISQHj.

As an example, this would trigger a seg. fault:
boost::shared_ptr<pcl::visualization::PCLVisualizer> simpleVis (pcl::PointCloud<pcl::PointXYZ>::ConstPtr cloud)


I've got vtk7.0.0-1 installed *(via Community):edited, and reinstalled this package a few days ago (after the vtk7 patch). Any help would be greatly appreciated!

bchretien commented on 2016-02-23 15:07

@kasei: good catch, thanks for the feedback!

kasei commented on 2016-02-21 07:05

need python2 and libxt when building

bchretien commented on 2016-02-18 15:09

@Svenstaro: thanks, I'm on it ;)

Svenstaro commented on 2016-02-18 15:06

I disowned the package for you. pcl-qt5 should not exist. This package should just use qt5 instead. Please update this package and make it use qt5. Then request pcl-qt5 to be merged into this package instead.

Caopi commented on 2016-02-18 14:54

@unitjan This package has been outdated for quite a while now. Check out the pcl-qt5 package, it's what this package should be.

bchretien commented on 2016-02-18 14:52

@Caopi: perfect, thanks for the feedback! I was concerned about API breakage, but I guess we're fine after all.

Caopi commented on 2016-02-18 14:50

@bchretien: I could not test the vtk6 package, since you updated so quickly, but I can confirm that 1.8 with the backported patch works with ROS.

bchretien commented on 2016-02-15 12:22

@Caopi: apparently it was just fixed upstream (https://github.com/PointCloudLibrary/pcl/pull/1534). I'll try to backport the patch.

bchretien commented on 2016-02-15 09:08

@Caopi: ok, it seems to be working for me with the vtk6 package I made, which can coexist with the official vtk package. I haven't tried compiling/running any other program depending on pcl yet though. If you can install vtk6 + pcl-qt5 and confirm that things work for you, that would be greatly appreciated. AUR upload appears to be bugged right now, so the PKGBUILDs are not available yet (but soon hopefully...).

bchretien commented on 2016-02-11 13:47

@Caopi: one thing's for sure: people are going to hate compiling VTK6. Even with ninja, it takes ages.

Caopi commented on 2016-02-11 09:17

@bchretien yes, i found the vtk mailing list question as well and it will probably still take a while. Considering a 1.8RC is already out without support I'm not even sure 1.8 will have OpenGL2 support.

That's why I recommended the legacy package approach and thank you for your continued efforts.

bchretien commented on 2016-02-11 08:58

@Caopi: ok here's the actual issue https://github.com/PointCloudLibrary/pcl/issues/1275

I guess support for the OpenGL2 backend is going to take some time since their plate is already full.

bchretien commented on 2016-02-11 08:52

@Caopi: thanks again for the detailed feedback. I can make a legacy vtk package that does not conflict with the 7.0 version, but you'll have to wait at least a few hours.

Possible related issue: https://github.com/PointCloudLibrary/pcl/issues/1530

Caopi commented on 2016-02-11 08:45

Resolution: this version of PCL does not work with VTK7 because of missing checks (see https://github.com/PointCloudLibrary/pcl/commit/0c44b5df4345c945810c8a96d047b6cb325eed0d ), but even with the checks the newest PCL from git does not support VTK7's new standard OpenGL2 interface, which is exclusive to the old OpenGL interface that is still needed by PCL.

To use this package you need to use a legacy 6.X vtk compiled with the then standard OpenGL interface.

The only partly suited package in AUR for this is vtk-visit. If someone could open a vtk6.3 legacy version for AUR and this package it would be greatly appreciated.

unitjan commented on 2016-02-10 14:15

This fails to compile after updating to vtk 7. I think we probably need to wait for pcl 1.8 to fix it. In the meantime, maybe pcl-git will work.

bchretien commented on 2016-02-10 12:21

@Caopi: PCL 1.7 is a real nightmare to maintain, but thankfully PCL 1.8 is on its way. Since it's still a RC, you should report these VTK issues to the developers on GH ASAP.

In the meantime, I guess we can try to disable the compilation of that component, unless it's a core feature.

openmpi is supposed to be optional AFAIK, but they may not be checking for it's availability properly when listing the components that are going to be built. I can make it mandatory I guess.

Caopi commented on 2016-02-10 11:19

The package doesn't build for me right now because of a missing vtk file (vtkVisibleCellSelector.h, missing in pcl_visualizer.cpp:59:36). I know for a fact that it did work three weeks ago.

Maybe this is related to the recent vtk 7.0 release? (As a sidenote, the official changelog says this file got removed with vtk 6.0, see http://www.vtk.org/Wiki/VTK/API_Changes_5_10_1_to_6_0_0)
The same problem occurs with the original pcl package. Maybe we need a legacy vtk-qt5 package for this package to work?

Also, the pcl-git does not compile because of another missing vtk file (missing from the same pcl_visualizer file, not the same file though), so even the newly released 1.8RC1 does not fix this problem and it seems like there is no working PCL available right now in the AUR.

Caopi commented on 2016-02-10 10:25

While installing on a freshly installed system, I got a lot of errors about a missing libmpi.so (while linking pcl_convert_pcd_ascii_binary at 7%).

It seems like openmpi is not optional, but required for this build, as I didn't get this error after installing openmpi manually.
The same thing was reported in the pcl package as well.

Madh93 commented on 2016-02-07 00:56

@melvinvermeeren yes it is, with `openmpi` installed compilation works perfectly.

hectorgrey commented on 2016-02-04 14:35

This failed to install on my system - turns out that you need qt5-webkit installed in addition to the qt5 libraries listed in the dependencies.

bchretien commented on 2016-02-02 00:45

@pietrko: Arch's current boost version is 1.60.

pietrko commented on 2016-02-01 20:47

I've problem with boost 1.59, during linking I get following error:

../../lib/libpcl_visualization.so.1.7.2: undefined reference to boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)

pietrko commented on 2016-02-01 20:32

This library requires jsoncpp (if VTK is used).
It gives linker error if VTK is installed and jsoncpp not.
Checked on VTK 6.3.x

melvinvermeeren commented on 2016-01-29 12:01

Looks like this package depends on `openmpi`, it will not compile without it on my system. Perhaps it can be changed from being optional to being required.

miku commented on 2016-01-12 10:25

After installing boost 1.60.0-1 I got the following error message:

..apps/moc_openni_passthrough.cxx
..has_prefix_operator.hp:46: Parse error at "BOOST_JOIN" ...

I wrapped some boost includes like this:

#ifndef Q_MOC_RUN
#include <boost/random.hpp>
#endif

In my local PKGBUILD I used the following lines for this:

grep -rl '#include <boost/random.hpp>' . \
| xargs sed -i "s/#include <boost\\/random.hpp>/\n\r#ifndef Q_MOC_RUN\n\r#include <boost\\/random.hpp>\n\r#endif/g"
grep -rl '#include <boost/graph/adjacency_list.hpp>' . \
| xargs sed -i "s/#include <boost\\/graph\\/adjacency_list.hpp>/\n\r#ifndef Q_MOC_RUN\n\r#include <boost\\/graph\\/adjacency_list.hpp>\n\r#endif/g"
grep -rl '#include <boost/multi_array.hpp>' . \
| xargs sed -i "s/#include <boost\\/multi_array.hpp>/\n\r#ifndef Q_MOC_RUN\n\r#include <boost\\/multi_array.hpp>\n\r#endif/g"
grep -rl '#include <boost/graph/boykov_kolmogorov_max_flow.hpp>' . \
| xargs sed -i "s/#include <boost\\/graph\\/boykov_kolmogorov_max_flow.hpp>/\n\r#ifndef Q_MOC_RUN\n\r#include <boost\\/graph\\/boykov_kolmogorov_max_flow.hpp>\n\r#endif/g"

It's simlar to the fix for boost 1.56 from 2014-09-18 but this time for the 1.60 boost version.

v01d commented on 2015-12-13 18:47

I always have to set DBUILD_surface_on_nurbs=OFF
Does it build with it ON for anyone else? I get:

/home/v01d/misc/tmp/yaourt-tmp-v01d/aur-pcl/src/pcl-pcl-1.7.2/examples/surface/example_nurbs_fitting_closed_curve.cpp:1:55: fatal error: pcl/surface/on_nurbs/fitting_curve_2d_pdm.h: No such file or directory

bchretien commented on 2015-11-12 06:44

I added a pcl-qt5 package, for use until the next release: https://aur.archlinux.org/packages/pcl-qt5

dejavu commented on 2015-11-06 01:32

Just as an info: Needed to install 'gl2ps' and 'openmpi' for getting it compiled.

ricardotk commented on 2015-10-29 20:04

extra/qt5-webkit dependency is missing, right?

bchretien commented on 2015-10-26 15:27

@taketwo: indeed, but in the meantime, linking with Qt5 requires at least a small patch to the main CMakeLists.txt to force the use of Qt5, and IIRC I had some problems with apps_cloud_composer and apps_point_cloud_editor, so I disabled these two while building. For these apps, some extra work is required (cf. https://github.com/PointCloudLibrary/pcl/pull/1217 for instance), but if people don't actually need them, linking with Qt5 is straightforward (possible bugs fixed since then aside).

taketwo commented on 2015-10-26 14:55

This is true for 1.7.2. (But as a side note,) in current master and upcoming 1.8.0 release, PCL prefers 5 over 4, and provides an option to select the desired version.

bchretien commented on 2015-10-26 02:50

Also, vtk now links with Qt5 (cf. https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/vtk&id=c430fe952a6e24287c0347abee241b1dee5d60a7), while PCL links with Qt4 if it's available.

Anonymous comment on 2015-10-21 21:18

You should add "gl2ps" package as makedepend.
I had to install it in order to compile pcl!

bchretien commented on 2015-09-30 06:48

Note: PCL needs to be recompiled after the last vtk update.

SeanLi commented on 2015-08-27 14:47

Maybe it should optdepend openni.
Some software like 'rtabmap' would not compile if pcl is built without openni1.

topquarkred commented on 2015-03-12 16:29

There seems to be a stray comma in the PKGBUILD depends section after qt5-base

de-vries commented on 2015-03-10 22:58

It looks like pcl can't compile without glu installed. It gets past the cmake phase fine, but will fail on compilation. I reported the problem upstream [1], but in the mean time it may be useful to ad glu as dependency or disable the point cloud editor (which is the part that will fail to compile).

[1] https://github.com/PointCloudLibrary/pcl/issues/1173

/build/pcl/src/pcl-pcl-1.7.2/apps/point_cloud_editor/src/cloudEditorWidget.cpp:51:21: fatal error: GL/glu.h: No such file or directory
# include <GL/glu.h>

bchretien commented on 2015-01-20 18:13

@ngoonee: if you can, try to rely on CMake and/or pkg-config for this. It provides easy access to the information you need to compile/link against PCL (include directory, libraries, flags, etc.).

ngoonee commented on 2015-01-08 05:36

Please add -DBUILD_OPENNI2=ON (at least commented) as I was wondering why the openni2 bindings did not get compiled even though I had openni2 installed.

Also, is there any particular reason everything is in /usr/include/pcl-1.7.2/pcl rather than the more common /usr/include/pcl? I'm just concerned because this will slightly complicate things for me with paths when compiling my project in other operating systems.

pngochai commented on 2014-12-30 20:15

I'm using extra/eigen 3.2.2-1

taketwo commented on 2014-12-29 21:41

Which version of Eigen are you using? Recently there was a report on PCL issue tracker concerning 3.2.3. (But no solution though.)

https://github.com/PointCloudLibrary/pcl/issues/1054

pngochai commented on 2014-12-29 21:09

Failed to build on my system:
===========================================
Scanning dependencies of target pcl_common
[ 0%] Building CXX object common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
In file included from /usr/include/eigen3/Eigen/Core:256:0,
from /tmp/yaourt-tmp-ngochai/aur-pcl/src/pcl-pcl-1.7.2/common/include/pcl/impl/point_types.hpp:46,
from /tmp/yaourt-tmp-ngochai/aur-pcl/src/pcl-pcl-1.7.2/common/include/pcl/point_types.h:319,
from /tmp/yaourt-tmp-ngochai/aur-pcl/src/pcl-pcl-1.7.2/common/src/point_types.cpp:37:
/usr/include/eigen3/Eigen/src/Core/util/Memory.h: In function ‘void* Eigen::internal::generic_aligned_realloc(void*, std::size_t, std::size_t)’:
/usr/include/eigen3/Eigen/src/Core/util/Memory.h:167:13: error: ‘ENOMEM’ was not declared in this scope
errno = ENOMEM; // according to the standard
^
common/CMakeFiles/pcl_common.dir/build.make:54: recipe for target 'common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o' failed
make[2]: *** [common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o] Error 1
CMakeFiles/Makefile2:106: recipe for target 'common/CMakeFiles/pcl_common.dir/all' failed
make[1]: *** [common/CMakeFiles/pcl_common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pcl.
==> Restart building pcl ? [y/N]
==> ----------------------------
==>

theodore commented on 2014-12-05 12:44

ok, well the error was due to some bug in the vtk package. It seems that they have some issues lately. With the last update, the building procedure finishes successfuly.

theodore commented on 2014-12-05 12:43

ok, it seems that the error was due to some bug in the vtk package. It seems that they have some issues lately. With the last update, the building procedure finishes successfuly.

theodore commented on 2014-12-05 11:16

qt5 is installed, for that reason the error seems weird to me.

ppwwyyxx commented on 2014-12-05 03:02

You seem to miss qt5 installed, which is missed in PKGBUILD.

theodore commented on 2014-12-04 23:55

I am getting the following compilation error:

Linking CXX shared library ../lib/libpcl_surface.so
/usr/bin/ld: cannot find -lQt5::Widgets
collect2: error: ld returned 1 exit status
surface/CMakeFiles/pcl_surface.dir/build.make:4398: recipe for target 'lib/libpcl_surface.so.1.7.2' failed
make[2]: *** [lib/libpcl_surface.so.1.7.2] Error 1
CMakeFiles/Makefile2:1039: recipe for target 'surface/CMakeFiles/pcl_surface.dir/all' failed
make[1]: *** [surface/CMakeFiles/pcl_surface.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

what do I miss, any hints?

ppwwyyxx commented on 2014-12-01 02:08

It builds fine for me (probably others, too?). And I don't see any clues why the examples won't build.

v01d commented on 2014-11-30 13:31

I did and now it builds. Maybe it would be better to set it off by default?

bchretien commented on 2014-11-25 13:06

@v01d: have you tried turning BUILD_examples off?

v01d commented on 2014-11-25 13:03

anyone?

v01d commented on 2014-11-01 02:09

does not build for me, I'm getting:

[ 44%] Building CXX object examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/example_nurbs_fitting_closed_curve.cpp.o
/home/v01d/misc/tmp/yaourt-tmp-v01d/aur-pcl/src/pcl-pcl-1.7.2/examples/surface/example_nurbs_fitting_closed_curve.cpp:1:55: fatal error: pcl/surface/on_nurbs/fitting_curve_2d_pdm.h: No such file or directory
#include <pcl/surface/on_nurbs/fitting_curve_2d_pdm.h>
^
compilation terminated.
examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/build.make:54: recipe for target 'examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/example_nurbs_fitting_closed_curve.cpp.o' failed
make[2]: *** [examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/example_nurbs_fitting_closed_curve.cpp.o] Error 1
CMakeFiles/Makefile2:2907: recipe for target 'examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/all' failed
make[1]: *** [examples/surface/CMakeFiles/pcl_example_nurbs_fitting_closed_curve.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

ppwwyyxx commented on 2014-09-22 22:27

Sorry for the delay. The package is updated to 1.7.2.

Syderitic commented on 2014-09-22 20:54

idk, i was installing ros-hydro-gazebo and i couldnt compile 1.7.1 so i tried 1.7.2 and it worked

taketwo commented on 2014-09-22 20:52

I see the package was updated yesterday, but the version is still 1.7.1, while the latest release is 1.7.2. Is there any reason for that?

Syderitic commented on 2014-09-22 20:41

Using boost 1.56
Managed to compile 1.7.2 by commenting the sed -i line and wrapping the posix_time.hpp like miku in my PKGBUILD

btw md5sums:02c72eb6760fcb1f2e359ad8871b9968

Loving Arch!! First post! waaay!!

miku commented on 2014-09-18 20:07

I wrapped all boost posix_time.hpp includes like this:

#ifndef Q_MOC_RUN
#include <boost/date_time/posix_time/posix_time.hpp>
#endif

In my local PKGBUILD I used the following line to do this:

grep -rl '#include <boost/date_time/posix_time/posix_time.hpp>' . | xargs sed -i "s/#include <boost\\/date_time\\/posix_time\\/posix_time.hpp>/#ifndef Q_MOC_RUN\n\r#include <boost\\/date_time\\/posix_time\\/posix_time.hpp>\n\r#endif/g"

With this modification pcl compiles for me with using boost 1.56.
Maybe this information helps to find a patch.

pallegro commented on 2014-09-15 22:30

Don't have time to make a diff right now, but I wrapped all boost and pcl includes in apps/include/pcl/apps/{manual_registration.h,pcd_video_player.h} with #ifndef Q_MOC_RUN and it (pcl 1.7.2) magically built :). I tried just wrapping the boost includes but that failed and don't have time to track down which pcl include is bringing in boost/type_traits/detail/has_binary_operator.hpp

ngoonee commented on 2014-09-11 01:22

I'm the Arch user in question. Actually the error applies to pcl-git, pcl itself has a more general error related to the libboost bump.

bchretien commented on 2014-09-09 09:21

Compilation currently fails:

[ 4%] Generating include/pcl/apps/cloud_composer/tool_interface/moc_abstract_tool.cxx
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
apps/cloud_composer/CMakeFiles/pcl_cc_tool_interface.dir/build.make:53: recipe for target 'apps/cloud_composer/include/pcl/apps/cloud_composer/tool_interface/moc_abstract_tool.cxx' failed
make[2]: *** [apps/cloud_composer/include/pcl/apps/cloud_composer/tool_interface/moc_abstract_tool.cxx] Error 1
CMakeFiles/Makefile2:7624: recipe for target 'apps/cloud_composer/CMakeFiles/pcl_cc_tool_interface.dir/all' failed
make[1]: *** [apps/cloud_composer/CMakeFiles/pcl_cc_tool_interface.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

This is due to https://bugreports.qt-project.org/browse/QTBUG-22829. Another Arch users reported that on their forum: http://www.pcl-users.org/moc-manual-registration-error-while-compiling-td4035438.html

bchretien commented on 2014-09-08 13:18

The patch was also merged upstream: https://github.com/PointCloudLibrary/pcl/pull/867

bchretien commented on 2014-09-08 10:49

Patch formatted here: https://gist.githubusercontent.com/bchretien/836835df99d4b0a208ca/raw/24efa45436a2a377e28381295160ee257fe42331/patch_boost1.56.txt

You simply need to add:

patch -p0 -i ../patch_boost1.56.txt

bchretien commented on 2014-09-08 10:14

+1 for Boost 1.56 support.

kartikmohta commented on 2014-09-08 08:46

Needs a patch for compiling with boost 1.56 (see http://www.pcl-users.org/PCL-compilation-errors-Please-help-me-td4035209.html):

--- pcl-pcl-1.7.1/io/src/lzf_image_io.cpp~ 2014-09-08 03:03:01.925540518 -0400
+++ pcl-pcl-1.7.1/io/src/lzf_image_io.cpp 2014-09-08 03:10:55.382514407 -0400
@@ -198,7 +198,7 @@
catch (std::exception& e)
{}

- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put (tag, parameter);
write_xml (filename, pt, std::locale (), settings);

@@ -218,7 +218,7 @@
catch (std::exception& e)
{}

- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put ("depth.focal_length_x", parameters.focal_length_x);
pt.put ("depth.focal_length_y", parameters.focal_length_y);
pt.put ("depth.principal_point_x", parameters.principal_point_x);
@@ -279,7 +279,7 @@
catch (std::exception& e)
{}

- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put ("rgb.focal_length_x", parameters.focal_length_x);
pt.put ("rgb.focal_length_y", parameters.focal_length_y);
pt.put ("rgb.principal_point_x", parameters.principal_point_x);

daniel commented on 2014-03-25 08:46

pcl needs qhull <= 2011.1.
I got segmentation faults with the version provided by pacman.

progtologist commented on 2013-10-29 23:36

I get this error when compiling:
/usr/include/vtk-5.10/QVTKWidget.h:40:25: fatal error: QtGui/QWidget: No such file or directory

Svenstaro commented on 2013-10-28 17:35

Feel free to take over maintainership. I disowned the package.

Svenstaro commented on 2013-10-28 17:35

hauptmech commented on 2013-10-28 17:35

Consider removing openni from makedepends

hauptmech commented on 2013-10-28 17:31

For me libpcl_io required HDF5 for linking.

bchretien commented on 2013-10-28 15:17

PCL 1.7.1 released: http://pointclouds.org/news/2013/10/07/pcl-1.7.1-released/

jeadorf commented on 2013-10-01 04:25

PCL 1.7 does not support OpenNI2, it is stated on the Windows or MacOS download page http://pointclouds.org/downloads/windows.html and http://pointclouds.org/downloads/macosx.html respectively.

nicolasavru commented on 2013-09-25 18:55

Has anyone used this with openni2? With openni2 installed, during configuration, this package reports that the openni libs cannot be found. It can successfully find openni1 (openni-git) libs if those are installed.

I have not been able to determine conclusively if openni2 is supported by pcl 1.7 or not. If it is not, this package should have openni-git as a makedepend and optdepend instead of openni2.

The same applies to the pcl-git package.

nicolasavru commented on 2013-09-25 18:54

Has anyone used this with openni2? With openni2, during configuration, it reports that openni libs cannot be found. It can successfully find openni1 (openni-git) libs.

I have not been able to determine conclusively if openni2 is supported by pcl 1.7 or not. If it is not, this package should have openni-git as a makedepend and optdepend instead of openni2.

The same applies to the pcl-git package.

progtologist commented on 2013-09-25 11:48

Maybe different version of pcl should be uploaded with and without cuda support that provide functionality for all users!

jeadorf commented on 2013-09-04 09:14

Just a note: the value $srcdir of the variable shows up in the PCLConfig.cmake file in the package generated during the CMake build process. This makes the /usr/shared/PCLConfig.cmake file in the package dependent on where the package is built. It looks like that it only makes a difference when you use PCL via CMake in another project (http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php).

Svenstaro commented on 2013-06-26 08:56

Meh next boost release will fix this. I will just wait until then.

MOZGIII commented on 2013-06-25 15:53

I've got the same error as @stepo. I do have nvidia card (and cuda) and I've got all deps installed.

The problem is the code is buggy. Look here: http://www.pcl-users.org/Patch-to-fix-build-errors-around-boost-shared-array-lt-gt-td4026314.html

So, how about adding this patch: http://www.pcl-users.org/file/n4026315/patch_2013-02-22.diff

MOZGIII commented on 2013-06-25 15:28

I've got the same error as @stepo. I do have nvidia card (and cuda) and I've got all deps installed.

The problem is the code is buggy. Look here: http://www.pcl-users.org/Patch-to-fix-build-errors-around-boost-shared-array-lt-gt-td4026314.html

Do, how about adding this patch: http://www.pcl-users.org/file/n4026315/patch_2013-02-22.diff

Anonymous comment on 2013-05-30 15:22

@stepo: you probably doon't have nvidia card so build pcl (and before that: flann) without cuda and opencl (you have to remove the dependences from PKGBUILDs). Also, use git package just to be sure (I had the same problem but I didn't test this one - git is working after you comment out:
# -DBUILD_CUDA=ON \
# -DBUILD_GPU=ON \
# -DBUILD_gpu_surface=ON \
# -DBUILD_gpu_people=ON \
# -DBUILD_gpu_tracking=ON \
# -DBUILD_simulation=ON
but if you want to test this one, you probably need to comment out something else).

Anonymous comment on 2013-05-30 14:55

@stepo: you probably doon't have nvidia card so build pcl (and before that: flann) without cuda and opencl (you have to remove the dependences from PKGBUILDs). Also, use git package just to be sure (I had the same problem but I didn't test this one - git is working after you comment out:
# -DBUILD_CUDA=ON \
# -DBUILD_GPU=ON \
# -DBUILD_gpu_surface=ON \
# -DBUILD_gpu_people=ON \
# -DBUILD_gpu_tracking=ON \
# -DBUILD_simulation=ON
but if you want to test this one, you probably need to comment out something else).

Anonymous comment on 2013-05-29 10:27

error: target not found: eigen3
error: target not found: openni-git
==> ERROR: 'pacman' failed to install missing dependencies.

They should be probably added. Or not, for some reason?

dreuter commented on 2013-05-14 10:59

@vivasvan

Hi,
when you get the followig error like vivasvan: Please set them or make sure they are set and tested correctly in the CMake files: MPI_CXX_LIBRARIES (ADVANCED)

Just install openmpi: (sudo) pacman -S openmpi

stepo commented on 2013-04-18 07:03

Hi,
I get this boost-related compilation error:

/usr/include/boost/smart_ptr/shared_array.hpp:48:25: note: no known conversion for argument 1 from ‘int’ to ‘const boost::shared_array<short unsigned int>&’
make[2]: *** [io/CMakeFiles/pcl_io.dir/src/openni_grabber.cpp.o] Error 1
make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Error 2
make: *** [all] Error 2

dtouch3d commented on 2013-02-15 14:24

The URL doesn't work anymore. Replace with
http://sourceforge.net/projects/pointclouds/files/$pkgver/PCL-$pkgver-Source.tar.bz2/download

Svenstaro commented on 2012-08-08 12:36

Updated.

Anonymous comment on 2012-08-08 08:55

1.6.0 works well. Simply alter the version number, the md5sum and comment out the "find | xargs..." lines (and the -DBUILD_CUDA).

vivasvan commented on 2012-06-23 18:28

hi, while compiling the above package i am getting the same error as Theodore describes.
is something missing in the pkgbuild?

any help would be highly appreciated.

Also, when i tried pcl-svn i get the following error

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MPI_CXX_LIBRARIES (ADVANCED)
linked by target "proctor" in directory /home/pankaj/tmp/yaourt-tmp-pankaj/aur-pcl-svn/src/pcl/proctor
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...

Svenstaro commented on 2012-06-19 12:35

Why didn't you use pcl-svn then?

theodore commented on 2012-06-19 11:01

finally i managed to compile the source from the trunk

http://pointclouds.org/downloads/source.html

by modifying a little bit the PKGBUILD

thanks

theodore commented on 2012-06-19 01:38

hi i am trying to compile the package but i am getting the following error:

==> Starting build()...
sed: no input files
==> ERROR: A failure occurred in build().
Aborting...

then i am removing the two lines inside the PKGBUILD that contain the "sed" command since there is no input, but the compilation ends with the following error:

make[2]: *** [tracking/CMakeFiles/pcl_tracking.dir/src/particle_filter_omp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target openni_change_viewer
[ 75%] Building CXX object apps/CMakeFiles/openni_change_viewer.dir/src/openni_change_viewer.cpp.o
Scanning dependencies of target openni_passthrough
[ 75%] Building CXX object apps/CMakeFiles/openni_passthrough.dir/src/openni_passthrough.cpp.o
make[1]: *** [tracking/CMakeFiles/pcl_tracking.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable ../bin/openni_change_viewer
[ 75%] Built target openni_change_viewer
Linking CXX executable ../bin/openni_passthrough
[ 75%] Built target openni_passthrough
Linking CXX shared library ../lib/libpcl_features.so
[ 75%] Built target pcl_features
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

any idea
thanks in advance

theodore commented on 2012-06-19 01:09

please remove from the PKGBUILD the two lines with the "find" and "sed" commands.

Svenstaro commented on 2012-03-28 13:51

Update deps to flann as libflann is gone.

lubosz commented on 2011-11-10 05:43

Updated to PCL 1.3.0
http://paste.pocoo.org/show/505646/

ptb commented on 2011-06-24 23:13

An updated PKGBUILD (version 1.0.0) can be found at http://pastebin.com/C4Gag70N .