-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pcl]LNK2019 Unresolved external symbol "public: __cdecl pcl::Poisson<struct pcl::PointXYZ>::Poisson<struct pcl::PointXYZ>(void)" #21694
Comments
@WangZP10969 ,Thanks for posting this issue, can you install pcl[core,vtk] successfully with Visual Studio 2022? |
Ping @WangZP10969 |
@JonLiu1993 Sorry for the late reply
|
Can you please also provide a simple code to repro this? |
@JackBoosY I tested on windows10 vs2019 16.11.7, and use This is the project files: I used cmake gui to genrating project: Building the "Test" on debug or release and result like this: |
I can't repro this issue when using changes in PR #21788, can you confirm that? And please use |
@JackBoosY It didn't work after modifying find_package Would you help me test pcl::ConvexHull by the way? In the previous version, I need to make changes #18855 (comment) to be used normally |
Build succes with my changes. |
@JackBoosY Doesn't work for me...
|
I tried to compile only pcl, still the same result
I try to modify the port.cmake on this pr to see the effect. Without modify the port.cmake, both pcl::ConvexHull and pcl::Poisson can not be work |
@WangZP10969 Which changes in the port.cmake? |
It’s from there : #18855 (comment)
|
@WangZP10969 I can't repro your issue using the test project you provided.
It seems that you use the binarycaching here, please use command:
Then try again. |
Thank you very much for your tips, I only deleted the vcpkg folder, but did not clean up the cache in other locations. |
I tried to add the editable option, but only recompiled pcl, so I deleted all the files under C:\Users\WangZP\AppData\Local\vcpkg and C:\vcpkg and recompiled. During the cache retrieval of the installation, it was prompted that 0 installation packages were retrieved. The result has not changed after the test. Are there any other caches that need to be deleted? This is the test record, I only kept the downloads folder, and deleted everything else. |
I think there may be some reasons why PCL did not find QHull, so HAS_QHULL will not be set to ON, which also caused the Possion module to not be compiled. |
I've bypassed this issue by including poisson.hpp directly and I think I can close this issue. |
Sorry but I still can't repro this issue, feel free to open it when you stuck again. |
Describe the bug
PCL compiled based on master pcl[core,vtk]
When compiling
pcl::Poisson<pcl::PointXYZ> Poisson;
and pcl_surfaced.lib has been correctly configured into the linker.
hint
[pcl]LNK2019 Unresolved external symbol "public: __cdecl pcl::Poisson::Poisson(void)"
Environment
To Reproduce
Steps to reproduce the behavior:
pcl::Poisson<pcl::PointXYZ> Poisson;
Expected behavior
Failure logs
Additional context
The text was updated successfully, but these errors were encountered: