Open unnamed2 opened 2 years ago
About your repro step 2 and 3, did you do them in a cmake project or a visual studio empty project? Could you please provide me with your repro project?
@Cheney-W visual studio empty project,Creating a new console application and then replacing the contents of the generated cpp with the following line of code generates such an error.
#include <pcl/visualization/cloud_viewer.h>
I just tried the cmake project and found that the cmake project did not have such a problem.
Thanks for your reply! I could reproduce this issue in my side.
same question i have
This happened to me as well. 1.12.1 build. Ubuntu 18.04
没办法,pcl内部的vtk include path和vcpkg的include格式不适配,只能手动添加vtk的include path和lib path
之前配置页信息可能为:
D:\PCL 1.12.1\include\pcl-1.12 D:\PCL 1.12.1\3rdParty\Boost\include\boost-1_78 D:\PCL 1.12.1\3rdParty\Eigen\eigen3 D:\PCL 1.12.1\3rdParty\FLANN\include D:\PCL 1.12.1\3rdParty\Qhull\include D:\PCL 1.12.1\3rdParty\OpenNI2\Include D:\PCL 1.12.1\3rdParty\VTK\include
修改后的配置页信息
D:\PCL 1.12.1\include\pcl-1.12 D:\PCL 1.12.1\3rdParty\Boost\include\boost-1_78 D:\PCL 1.12.1\3rdParty\Eigen\eigen3 D:\PCL 1.12.1\3rdParty\FLANN\include D:\PCL 1.12.1\3rdParty\Qhull\include D:\PCL 1.12.1\3rdParty\OpenNI2\Include D:\PCL 1.12.1\3rdParty\VTK\include D:\PCL 1.12.1\3rdParty\VTK\include\vtk-9.1
I tested the latest version of vcpkg
, and this problem should be solved, and the compilation result is normal by referring to the header file #include <pcl/visualization/cloud_viewer.h>
.
I am not able to solve this issue in mac m1. Please let me know if any solutions
The version of vcpkg is newest, but still have the same question. Waiting for a solution which needn't import the lib path in the project's property pages.
notes: windows10, VS2019, manifest mode
Same problem for me. Win 10, manifest mode, VS2022, MSBuild project.
The relevant part of my vcpkg.json is:
{
"name": "pcl",
"default-features": true,
"features": ["visualization", "vtk"]
}
The issue appears to be that vcpkg installs the missing header in "../vcpkg_installed/
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
This issue does still exist for vtk. I have similar issues with with librsvg, glib, gdk-pixbuf and cairo.
Workarounds which work for me:
$(VcpkgInstalledDir)\$(VcpkgTriplet)\include\vtk-9.3;
$(VcpkgInstalledDir)\$(VcpkgTriplet)\include\librsvg-2.0;
$(VcpkgInstalledDir)\$(VcpkgTriplet)\include\glib-2.0;$(VcpkgInstalledDir)\$(VcpkgTriplet)\lib\glib-2.0\include;
$(VcpkgInstalledDir)\$(VcpkgTriplet)\include\gdk-pixbuf-2.0;
$(VcpkgInstalledDir)\$(VcpkgTriplet)\include\cairo;
This was tested on the master branch today (03.06.2024).
Describe the bug
got fatal error C1083: “vtkSmartPointer.h”: No such file or directory
Environment
To Reproduce Steps to reproduce the behavior:
Expected behavior build success
Failure logs A:\vcpkg\installed\x64-windows\include\pcl\visualization\point_cloud_geometry_handlers.h(49,10): fatal error C1083: 无法打开包括文件: “vtkSmartPointer.h”: No such file or directory
Additional context
vtkSmartPointer.h can be included by
code in pcl(point_cloud_geometry_handlers.h):