microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.47k stars 6.2k forks source link

BUILD_FAILED error when 'vcpkg install pcl' #29853

Closed Huashuijingying closed 1 year ago

Huashuijingying commented 1 year ago
Building pcl[core]:x86-windows...
-- Downloading https://github.com/PointCloudLibrary/pcl/archive/371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz -> PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz...
-- Extracting source E:/vcpkg/downloads/PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz
-- Applying patch add-gcc-version-check.patch
-- Applying patch fix-check-sse.patch
-- Applying patch fix-numeric-literals-flag.patch
-- Applying patch pcl_config.patch
-- Applying patch pcl_utils.patch
-- Applying patch install-examples.patch
-- Applying patch no-absolute.patch
-- Applying patch add_bigobj_option.patch
-- Applying patch outofcore_viewer_remove_include.patch
-- Applying patch fix_opennurbs_win32.patch
-- Applying patch disable_kinfu_for_cuda12.patch
-- Using source at E:/vcpkg/buildtrees/pcl/src/e50dc19856-a29a4295e5.clean
-- Found external ninja('1.10.2').
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: E:/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: E:/vcpkg/buildtrees/pcl/x86-windows-dbg
    See logs for more information:
      E:\vcpkg\buildtrees\pcl\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pcl/portfile.cmake:80 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

error: building pcl:x86-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+pcl
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[pcl]+Build+error
Include '[pcl] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2023-02-16-12e657924d99511514c0287ca5ce46882d3657c7
    vcpkg-scripts version: 223d33be7 2023-02-24 (2 hours ago)

Please use the prefilled template from E:\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.

E:\vcpkg>git pull
Already up to date.

E:\vcpkg>vcpkg update
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.

how to fix this error? issue_body.md

Huashuijingying commented 1 year ago

E:\vcpkg>vcpkg install pcl
warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows). To resolve this message, add --triplet x86-windows to keep the same behavior.
Computing installation plan...
The following packages will be built and installed:
    pcl[core]:x86-windows -> 1.13.0
Detecting compiler hash for triplet x86-windows...
Restored 0 package(s) from C:\Users\dell\AppData\Local\vcpkg\archives in 231.3 us. Use --debug to see more details.
Installing 1/1 pcl:x86-windows...
Building pcl[core]:x86-windows...
-- Using cached PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz.
-- Cleaning sources at E:/vcpkg/buildtrees/pcl/src/e50dc19856-a29a4295e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/vcpkg/downloads/PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz
-- Applying patch add-gcc-version-check.patch
-- Applying patch fix-check-sse.patch
-- Applying patch fix-numeric-literals-flag.patch
-- Applying patch pcl_config.patch
-- Applying patch pcl_utils.patch
-- Applying patch install-examples.patch
-- Applying patch no-absolute.patch
-- Applying patch add_bigobj_option.patch
-- Applying patch outofcore_viewer_remove_include.patch
-- Applying patch fix_opennurbs_win32.patch
-- Applying patch disable_kinfu_for_cuda12.patch
-- Using source at E:/vcpkg/buildtrees/pcl/src/e50dc19856-a29a4295e5.clean
-- Found external ninja('1.10.2').
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pcl/portfile.cmake:80 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: E:/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: E:/vcpkg/buildtrees/pcl/x86-windows-dbg
    See logs for more information:
      E:\vcpkg\buildtrees\pcl\install-x86-windows-dbg-out.log
      E:\vcpkg\buildtrees\pcl\install-x86-windows-dbg-out-1.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pcl/portfile.cmake:80 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

error: building pcl:x86-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+pcl
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[pcl]+Build+error
Include '[pcl] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2023-02-16-12e657924d99511514c0287ca5ce46882d3657c7
    vcpkg-scripts version: 223d33be7 2023-02-24 (3 hours ago)

Please use the prefilled template from E:\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
```E:\vcpkg>vcpkg install pcl
warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows). To resolve this message, add --triplet x86-windows to keep the same behavior.
Computing installation plan...
The following packages will be built and installed:
    pcl[core]:x86-windows -> 1.13.0
Detecting compiler hash for triplet x86-windows...
Restored 0 package(s) from C:\Users\dell\AppData\Local\vcpkg\archives in 231.3 us. Use --debug to see more details.
Installing 1/1 pcl:x86-windows...
Building pcl[core]:x86-windows...
-- Using cached PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz.
-- Cleaning sources at E:/vcpkg/buildtrees/pcl/src/e50dc19856-a29a4295e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/vcpkg/downloads/PointCloudLibrary-pcl-371a8e1373f7b2f66bbb92291be2f3e50dc19856.tar.gz
-- Applying patch add-gcc-version-check.patch
-- Applying patch fix-check-sse.patch
-- Applying patch fix-numeric-literals-flag.patch
-- Applying patch pcl_config.patch
-- Applying patch pcl_utils.patch
-- Applying patch install-examples.patch
-- Applying patch no-absolute.patch
-- Applying patch add_bigobj_option.patch
-- Applying patch outofcore_viewer_remove_include.patch
-- Applying patch fix_opennurbs_win32.patch
-- Applying patch disable_kinfu_for_cuda12.patch
-- Using source at E:/vcpkg/buildtrees/pcl/src/e50dc19856-a29a4295e5.clean
-- Found external ninja('1.10.2').
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pcl/portfile.cmake:80 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: E:/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: E:/vcpkg/buildtrees/pcl/x86-windows-dbg
    See logs for more information:
      E:\vcpkg\buildtrees\pcl\install-x86-windows-dbg-out.log
      E:\vcpkg\buildtrees\pcl\install-x86-windows-dbg-out-1.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pcl/portfile.cmake:80 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

error: building pcl:x86-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+pcl
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[pcl]+Build+error
Include '[pcl] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2023-02-16-12e657924d99511514c0287ca5ce46882d3657c7
    vcpkg-scripts version: 223d33be7 2023-02-24 (3 hours ago)

Please use the prefilled template from E:\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
Huashuijingying commented 1 year ago

issue_body.md

LilyWangLL commented 1 year ago

LINK : fatal error LNK1104: 无法打开文件“bin\pcl_filtersd.dll” ninja: build stopped: subcommand failed.

Duplicate of https://github.com/microsoft/vcpkg/issues/25880#issuecomment-1272428825, please refer to https://github.com/microsoft/vcpkg/issues/10139#issuecomment-1097718000 to resolve this issue.

LilyWangLL commented 1 year ago

Thanks for posting this issue. Please reopen this issue if this is still a problem for you.