PCL trunk compilation error

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

PCL trunk compilation error

dwaipayansinha
Hello,

I was having problem with GICP, because the header file pcl/registration/bfgs.h was not found. I read that the problem is solved in trunk, and I was building it, but the following error occurred. I was building in Ubuntu 12.04 i386 in Release mode.

...
...
[ 94%] Built target pcl_icp
[ 95%] Built target pcl_icp2d
Linking CXX executable ../bin/pcl_linemod_detection
../lib/libpcl_recognition.so.1.6.0: undefined reference to `pcl::KdTreeFLANN<Eigen::Matrix<double, 3, 1, 0, 3, 1>, flann::L2_Simple<float> >::radiusSearch(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&, double, std::vector<int, std::allocator<int> >&, std::vector<float, std::allocator<float> >&, unsigned int) const'
../lib/libpcl_recognition.so.1.6.0: undefined reference to `pcl::KdTreeFLANN<Eigen::Matrix<double, 3, 1, 0, 3, 1>, flann::L2_Simple<float> >::cleanup()'
../lib/libpcl_recognition.so.1.6.0: undefined reference to `pcl::KdTreeFLANN<Eigen::Matrix<double, 3, 1, 0, 3, 1>, flann::L2_Simple<float> >::nearestKSearch(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&, int, std::vector<int, std::allocator<int> >&, std::vector<float, std::allocator<float> >&) const'
../lib/libpcl_recognition.so.1.6.0: undefined reference to `pcl::KdTreeFLANN<Eigen::Matrix<double, 3, 1, 0, 3, 1>, flann::L2_Simple<float> >::setInputCloud(boost::shared_ptr<pcl::PointCloud<Eigen::Matrix<double, 3, 1, 0, 3, 1> > const> const&, boost::shared_ptr<std::vector<int, std::allocator<int> > const> const&)'
collect2: ld returned 1 exit status
make[2]: *** [bin/pcl_linemod_detection] Error 1
make[1]: *** [tools/CMakeFiles/pcl_linemod_detection.dir/all] Error 2
make: *** [all] Error 2
Regards,
Dwaipayan
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

Radu B Rusu
Administrator
I believe we are still waiting for a rewrite of the BFGS implementation. Nizar? :)

Cheers,
Radu.

On 06/13/2012 12:02 PM, dwaipayansinha wrote:

> Hello,
>
> I was having problem with GICP, because the header file
> pcl/registration/bfgs.h was not found. I read that the problem is solved in
> trunk, and I was building it, but the following error occurred. I was
> building in Ubuntu 12.04 i386 in Release mode.
>
> ...
> ...
> [ 94%] Built target pcl_icp
> [ 95%] Built target pcl_icp2d
> Linking CXX executable ../bin/pcl_linemod_detection
> ../lib/libpcl_recognition.so.1.6.0: undefined reference to
> `pcl::KdTreeFLANN<Eigen::Matrix&lt;double, 3, 1, 0, 3, 1>,
> flann::L2_Simple<float>  >::radiusSearch(Eigen::Matrix<double, 3, 1, 0, 3, 1>
> const&, double, std::vector<int, std::allocator&lt;int>  >&,
> std::vector<float, std::allocator&lt;float>  >&, unsigned int) const'
> ../lib/libpcl_recognition.so.1.6.0: undefined reference to
> `pcl::KdTreeFLANN<Eigen::Matrix&lt;double, 3, 1, 0, 3, 1>,
> flann::L2_Simple<float>  >::cleanup()'
> ../lib/libpcl_recognition.so.1.6.0: undefined reference to
> `pcl::KdTreeFLANN<Eigen::Matrix&lt;double, 3, 1, 0, 3, 1>,
> flann::L2_Simple<float>  >::nearestKSearch(Eigen::Matrix<double, 3, 1, 0, 3,
> 1>  const&, int, std::vector<int, std::allocator&lt;int>  >&,
> std::vector<float, std::allocator&lt;float>  >&) const'
> ../lib/libpcl_recognition.so.1.6.0: undefined reference to
> `pcl::KdTreeFLANN<Eigen::Matrix&lt;double, 3, 1, 0, 3, 1>,
> flann::L2_Simple<float>
>> ::setInputCloud(boost::shared_ptr<pcl::PointCloud&lt;Eigen::Matrix&lt;double,
> 3, 1, 0, 3, 1>  >  const>  const&, boost::shared_ptr<std::vector&lt;int,
> std::allocator&lt;int>  >  const>  const&)'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/pcl_linemod_detection] Error 1
> make[1]: *** [tools/CMakeFiles/pcl_linemod_detection.dir/all] Error 2
> make: *** [all] Error 2
>
>
> --
> View this message in context: http://www.pcl-users.org/PCL-trunk-compilation-error-tp4019294.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

dwaipayansinha
BFGS may not be available, but does that have anything to do with the build error I gave above?
Regards,
Dwaipayan
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

Jochen Sprickerhof
Administrator
* dwaipayansinha <[hidden email]> [2012-06-13 13:34]:
> BFGS may not be available, but does that have anything to do with the build
> error I gave above?

No it's not related. Which revision of trunk did you try? Did you try an
other one? Does PCL 1.5 compile fine?

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

Maxime Latulippe
I have the exact same problem. Revision 5921. I didn't try another revision yet but I will do so in the following hours when I have time.

Maxime
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

dwaipayansinha
This post was updated on .
In reply to this post by dwaipayansinha
Sorry but I am not sure about the version I tried first. It may be 5922/5923. I last updated to 5924 at US Eastern Time 7:35 pm. It still has the same problem.

I first installed PCL 1.5.1 using apt-get, so it was working fine. Problem occurred when I tried to use Generalized ICP. In older forum posts I saw that the BFGS problem was resolved in trunk.

Regards
Dwaipayan
Regards,
Dwaipayan
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

Jochen Sprickerhof
Administrator
* dwaipayansinha <[hidden email]> [2012-06-13 16:39]:
> Sorry but I am not sure about the version I tried first. It may be 5922/5923.
> I last updated to 5924 at US Eastern Time 7:35 pm. It still has the same
> problem.

Ok, I get the same error at the moment. Either wait for someone to fix
it or use an older revision. You can check the build status over here:

http://build.pointclouds.org/guestLogin.html?guest=1

Cheers,

Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCL trunk compilation error

Radu B Rusu
Administrator
I just disabled the erroneous cpp file in trunk. We need to assign an issue to Chavdar to fix it :)

Cheers,
Radu.

On 06/13/2012 11:42 PM, Jochen Sprickerhof wrote:

> * dwaipayansinha<[hidden email]>  [2012-06-13 16:39]:
>> Sorry but I am not sure about the version I tried first. It may be 5922/5923.
>> I last updated to 5924 at US Eastern Time 7:35 pm. It still has the same
>> problem.
>
> Ok, I get the same error at the moment. Either wait for someone to fix
> it or use an older revision. You can check the build status over here:
>
> http://build.pointclouds.org/guestLogin.html?guest=1
>
> Cheers,
>
> Jochen
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users