Skip to content
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

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

Open
claudiofantacci opened this issue Oct 24, 2018 · 1 comment
Labels

Comments

@claudiofantacci
Copy link
Contributor

Compuiling PCL

  • under Windows 10 with vcpkg
  • all the options enabled including tests
  • PCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32 is OFF and QHull static is not present in the system

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
Copy link

stale bot commented May 19, 2020

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

@stale stale bot added the status: stale label May 19, 2020
@kunaltyagi kunaltyagi added the needs: testing Specify why not closed/merged yet label May 19, 2020
@stale stale bot removed the status: stale label May 19, 2020
@stale stale bot removed the status: stale label May 19, 2020
@kunaltyagi kunaltyagi changed the title Missing CMake error when static QHull is not present under Windows 10 (with vcpkg) [windows] Missing CMake error when static QHull is not present under Windows 10 (with vcpkg) May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants