You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

编译CGAL时INSTALL.sln构建失败求助(VS2013+CGAL4.9.1环境)

Troubleshooting CGAL 4.9.1 Installation Error in VS2013

Looks like your install step is failing because the Debug build of the CGAL DLL didn’t generate properly. Let’s walk through actionable fixes to resolve this:

1. Confirm the Debug Build of CGAL Completed Without Errors

The INSTALL target relies on the main CGAL project building successfully first. Often, the install step runs even if the core build failed, leading to missing DLLs:

  • Open your CGAL solution in VS2013
  • Set the build configuration to Debug
  • Right-click on the CGAL project (not the INSTALL project) and select Build
  • If errors pop up here, resolve those first—common culprits include:
    • Misconfigured Boost paths (double-check CMake picked up Boost 1.59.0’s Debug libraries)
    • Qt 5.7.1 component issues (ensure Debug Qt libraries are installed and detected by CMake)

2. Validate CMake Configuration for Debug Builds

Incorrect CMake settings can prevent Debug DLL generation:

  • Re-run CMake from your build directory and verify:
    • CMAKE_BUILD_TYPE is set to Debug (or that you’re generating both Debug/Release configurations)
    • CGAL_BUILD_SHARED_LIBS is enabled (required for DLL output)
  • Regenerate the solution, build the CGAL project again, then try the INSTALL target.

3. Locate or Recreate the Missing DLL

If the Debug build succeeds but the DLL is missing:

  • Check the expected output path C:/dev/CGAL-4.9.1/build/bin/Debug/—sometimes the DLL ends up in a different folder like build/lib/Debug or a subfolder under src
  • If found, temporarily copy it to the bin/Debug directory and re-run INSTALL to test if the error clears
  • If the DLL isn’t generated at all, check the CGAL project’s VS properties:
    • Go to Linker > Output File and confirm the path matches C:/dev/CGAL-4.9.1/build/bin/Debug/CGAL-vc120-mt-gd-4.9.1.dll
    • Ensure the project is set to build a Dynamic Library (.dll) (not a static library)

4. Clean and Rebuild from Scratch

Leftover build artifacts can cause unexpected issues:

  • Delete your entire build directory
  • Re-run CMake to generate a fresh solution
  • Build the Debug configuration of the CGAL project first, then run the INSTALL target.

Error Log Reference

Error 1 error MSB3073: The command "setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 INSTALL
file INSTALL cannot find 1> "C:/dev/CGAL-4.9.1/build/bin/Debug/CGAL-vc120-mt-gd-4.9.1.dll". 1> Call Stack (most recent call first): 1> src/cmake_install.cmake:32 (include) 1> cmake_install.cmake:91 (include)

内容的提问来源于stack exchange,提问作者n.m

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:33:47