LNK1104 error when building PCL 1.7.1 on vs2010

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

LNK1104 error when building PCL 1.7.1 on vs2010

zenified
Hi I recently tried building the PCL 1.7.1 form trunk and was given alot of LL1104 errors stating that

 cannot open file '..\lib\pcl_io_debug.lib'
 cannot open file '..\lib\pcl_visualization_debug.lib

and in addition i also have the following error
D:\pcl-master\io\include\pcl/io/png_io.h(147): error C2375: 'pcl::io::savePNGFile' : redefinition; different linkage

I have looked around and can't seem to find any solution that will work for my issues.

Any help will be greatly appreciated

Thanks



gui
Reply | Threaded
Open this post in threaded view
|

Re: LNK1104 error when building PCL 1.7.1 on vs2010

gui
Same problem here. I solved it commenting one of these two functions in png_io.h (lines 142 - 147):

   PCL_DEPRECATED (void savePNGFile (const std::string& file_name, const pcl::PointCloud<pcl::PointXYZL>& cloud),
    "pcl::io::savePNGFile (file_name, cloud) is deprecated, please use a new generic function "
    "pcl::io::savePNGFile (file_name, cloud, field_name) with \"label\" as the field name."
    );

    PCL_EXPORTS void
    savePNGFile (const std::string& file_name, const pcl::PointCloud<pcl::PointXYZL>& cloud);

Reply | Threaded
Open this post in threaded view
|

Re: LNK1104 error when building PCL 1.7.1 on vs2010

Jochen Sprickerhof
Administrator
Hi Gui,

* gui <[hidden email]> [2013-11-20 04:24]:

> Same problem here. I solved it commenting one of these two functions in
> png_io.h (lines 142 - 147):
>
>    PCL_DEPRECATED (void savePNGFile (const std::string& file_name, const
> pcl::PointCloud<pcl::PointXYZL>& cloud),
>     "pcl::io::savePNGFile (file_name, cloud) is deprecated, please use a new
> generic function "
>     "pcl::io::savePNGFile (file_name, cloud, field_name) with \"label\" as
> the field name."
>     );
>
>     PCL_EXPORTS void
>     savePNGFile (const std::string& file_name, const
> pcl::PointCloud<pcl::PointXYZL>& cloud);

I guess this has already been fixed in master here:
https://github.com/PointCloudLibrary/pcl/pull/304

Will be part of the next release.

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

Re: LNK1104 error when building PCL 1.7.1 on vs2010

prozorov
This post has NOT been accepted by the mailing list yet.
In reply to this post by zenified
Hi, now this error appear again(