[LNK2019] "Pcl with surface on nurbs getting unresolved external"
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cmake, cpp
- Domain
- build-system, computer-vision
Research direction
Start by running the provided CMakeLists.txt and pcl_test project with the reported vcpkg x86-windows triplet and pcl 1.13.0. Inspect how pcl_surface, pcl\surface\on_nurbs, and pcl\surface\3rdparty\opennurbs are linked, focusing on the missing ON_KnotCount symbol. Done means the sample links successfully and uses the NURBS classes without LNK2019 errors.
Written by the indexing model from the issue text.
Description
Describe the error
I am attempting to use the third-party library OpenNURBS from PCL while the surface-on-NURBS module is enabled,
but I am experiencing some unresolved external errors.
I am using PCL from VCPKG, which has been compiled for the x86-windows triplet."
pcl 1.13.0#3
I am able to link successfully with pcl_surface and use classes from pcl\surface\on_nurbs, but I am got unresolved external errors when attempting to use classes from pcl\surface\3rdparty\opennurbs.
error LNK2019: unresolved external symbol "int __cdecl ON_KnotCount(int,int)" (?ON_KnotCount@@YAHHH@Z) referenced in function _main
Here a small and simple project to test the issue:
CMakeLists.txt
pcl_test .txt
command line used to generate makefile considering my local paths for vcpkg pcl.
cmake -G "NMake Makefiles" ..\CMakeLists.txt -DCMAKE_BUILD_TYPE=Debug -DPCL_INCLUDE_DIRS="./pcl/x86-windows/include" -DPCL_LIBRARIES="../pcl/x86-windows/debug/lib/pcl_surfaced.lib"
Despite linking all PCL libraries, I am still unable to determine the root cause of the issue.
- Dominant language
- C++
- Stars
- 11.2k
- Forks
- 4.7k
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PointCloudLibrary/pcl
-
kind: bug status: triage
Difficulty 1/5 Under an hour Newbie friendliness 82/100
PointCloudLibrary/pcl#6536 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
PointCloudLibrary/pcl#6509 · 1 comment ·
Maintainers usually reply within 3 days
-
kind: bug status: triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
PointCloudLibrary/pcl#6537 ·
Maintainers usually reply within 3 days
-
[cmake] QHULL/FLANN dll missing when linking single modulePossibly taken @SIDDARTHAREDDY8 claimed this 6 days ago. Openkind: bug module: cmake
Difficulty 3/5 Half a day Newbie friendliness 50/100
PointCloudLibrary/pcl#6522 · 1 comment ·
Maintainers usually reply within 3 days
-
kind: bug status: triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
PointCloudLibrary/pcl#6395 ·
Maintainers usually reply within 3 days
All issues in PointCloudLibrary/pcl
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nextcloud/passman-android#214 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
feature wsl2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
microsoft/WSL#42306 · 3 comments ·
Maintainers usually reply within 1 day
-
2026.11.0 fails to install on Intel macOS: requirements.txt pins cryptography==50.0.2 for Darwin x86_64May be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 87/100
esphome/esphome#22892 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
distante/esphome-components#50 · 1 comment ·
Maintainers usually reply within 1 day