PointCloudLibrary / pcl

Point Cloud Library (PCL)
https://pointclouds.org/
Other
9.88k stars 4.61k forks source link

[windows] Missing CMake error when static QHull is not present under Windows 10 (with vcpkg) #2581

Open claudiofantacci opened 5 years ago

claudiofantacci commented 5 years ago

Compuiling PCL

CMake did not errored about missing library and building PCL I get this error (both in Release and Debug build):

Linking CXX shared library bin\pcl_surface_release.dll
FAILED: bin/pcl_surface_release.dll lib/pcl_surface_release.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=surface\CMakeFiles\pcl_surface.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\Community\VC\Tools\MSVC\14.13.26128\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\pcl_surface.rsp  /out:bin\pcl_surface_release.dll /implib:lib\pcl_surface_release.lib /pdb:bin\pcl_surface_release.pdb /dll /version:1.8 /machine:x64 /NODEFAULTLIB:LIBCMTD  /INCREMENTAL:NO /LTCG /OPT:REF /DELAYLOAD:VCOMP140.dll   && cd ."
LINK: command "C:\PROGRA~2\MIB055~1\2017\Community\VC\Tools\MSVC\14.13.26128\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\pcl_surface.rsp /out:bin\pcl_surface_release.dll /implib:lib\pcl_surface_release.lib /pdb:bin\pcl_surface_release.pdb /dll /version:1.8 /machine:x64 /NODEFAULTLIB:LIBCMTD /INCREMENTAL:NO /LTCG /OPT:REF /DELAYLOAD:VCOMP140.dll /MANIFEST /MANIFESTFILE:bin\pcl_surface_release.dll.manifest" failed (exit code 1120) with the following output:
   Creating library lib\pcl_surface_release.lib and object lib\pcl_surface_release.exp
concave_hull.cpp.obj : error LNK2001: unresolved external symbol qh_qh
bin\pcl_surface_release.dll : fatal error LNK1120: 1 unresolved externals

Compiling with PCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=ON insead everything works smoothly.

I will investigate what happens when PCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=OFF in this settings.

stale[bot] commented 4 years ago

Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.