pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

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

pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

nenadpol
Hi
My system is : windows 7, VS 2015 PCL 1.8.0 x64

When trying to use class pcl::SupervoxelClustering I get error


Error LNK2019 unresolved external symbol "public: void __cdecl pcl::SupervoxelClustering<struct pcl::PointXYZRGB>::VoxelData::getPoint(struct pcl::PointXYZRGB &)const " (?getPoint@VoxelData@?$SupervoxelClustering@UPointXYZRGB@pcl@@@pcl@@QEBAXAEAUPointXYZRGB@3@@Z) referenced in function "private: void __cdecl pcl::SupervoxelClustering<struct pcl::PointXYZRGB>::computeVoxelData(void)" (?computeVoxelData@?$SupervoxelClustering@UPointXYZRGB@pcl@@@pcl@@AEAAXXZ)



I have tried using #define PCL_NO_PRECOMPILE  before any other header but it dit not help

Any ideas?

Thanks
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

Sérgio Agostinho
Have you tried this with the new release candidate?

Cheers
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

nenadpol
Hi Sergio,

No, I did not try.

Does this mean that there is a problem in PCL 1.8.0 ?

thanks
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

nenadpol
In reply to this post by Sérgio Agostinho
Hi Sergio,

I have downloaded, installed and new release candidate (1.8.1)
and the problem is the same

thanks
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

Tsukasa Sugiura
Hi nenadpol,

I tried this tutorial about SupervoxelClustering.
It was built successfully with PCL 1.8.1 RC2 that installed using PCL 1.8.1 RC2 All-in-one Installer.
Probably, If users defined PCL_NO_PRECOMPILE (define in source code or CMake), the build that using this features is fails.
Please don't define PCL_NO_PRECOMPILE in your source code for around this problem.


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

Re: pcl 1.8.0 Unresolved symbol error pcl::SupervoxelClustering

nenadpol
Hi,

I found source and solution for this problem:

This does not work (Unresolved symbol error) :

#include  "header with line  PCL_NO_PRECOMPILE"
#include <pcl/segmentation/supervoxel_clustering.h>

This works fine:

#include <pcl/segmentation/supervoxel_clustering.h>
#include  "header with line  PCL_NO_PRECOMPILE"

cheers
Nenad