Closed spindensity closed 4 years ago
@spindensity, thanks for reporting this issue!
Sadly, I cannot repro it in my machine, but I found something interesting:
LINK : fatal error LNK1104: cannot open file 'SuiteSparse::metis.lib'
So, for deep positioning of this problem, please provide the configure log file:
configure-x64-windows-dbg-out.log
/configure-x64-windows-dbg-err.log
Thanks.
@JackBoosY
OK, hope it helps.
config-x64-windows-err.log
is an empty file.
CMake Warning (dev) at C:/Dev/BasicTools/vcpkg/scripts/buildsystems/vcpkg.cmake:195 (_add_library):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target "ceres" links to target "SuiteSparse::metis" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
internal/ceres/CMakeLists.txt:205 (add_library)
Interesting... Can you remove suitesparse, update vcpkg and rebuild suitesparse?
@JackBoosY
Ok, I deleted buildtrees
, installed
, packages
directories, updated vcpkg, rebuilt related packages and upload all screenshots and logs here. Hope this helps.
suitesparse[metis]
ceres[suitesparse]
SuiteSparse::metis
should exist in _VCPKG_PATH/packages/suitesparsex64-windows/share/suitesparse/suitesparse-config.cmake. Such as:
set(SuiteSparse_LIBRARIES
SuiteSparse::suitesparseconfig
SuiteSparse::amd
SuiteSparse::btf
SuiteSparse::camd
SuiteSparse::ccolamd
SuiteSparse::colamd
SuiteSparse::cholmod
SuiteSparse::cxsparse
SuiteSparse::klu
SuiteSparse::ldl
SuiteSparse::umfpack
SuiteSparse::spqr
SuiteSparse::metis
)
Please provide your generated cmake files in _C:/Dev/BasicTools//vcpkg/packages/suitesparsex64-windows/share/suitesparse.
Thanks.
@JackBoosY
Possible solution is
Confirmed, no target SuiteSparse::metis
are found in suitesparse-targets-debug/release.cmake.
Hi @spindensity, thanks for reporting this issue. Since #8376 has been merged, this issue should be fixed. Please update vcpkg and rebuild ceres[suitesparse].
Thanks.
Host Environment
To Reproduce
Failure logs install-x64-windows-dbg-out.log install-x64-windows-dbg-out-1.log
Additional context If suitesparse package built with metis installed first, ceres[suitesparse] can't be built successfully.