编译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
CGALproject (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_TYPEis set toDebug(or that you’re generating both Debug/Release configurations)CGAL_BUILD_SHARED_LIBSis 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 likebuild/lib/Debugor a subfolder undersrc - If found, temporarily copy it to the
bin/Debugdirectory 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)
- Go to Linker > Output File and confirm the path matches
4. Clean and Rebuild from Scratch
Leftover build artifacts can cause unexpected issues:
- Delete your entire
builddirectory - 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 INSTALLfile 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
相关产品推荐
相关产品推荐

