-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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.