Migrating VTK
Posted: Wed Jul 03 2024 7:01 pm
[ Moved from another Post ]
I'm trying to make the vtk library depend on copperspice instead of qt. I'm running into the following issues:
1. I selected vulkan when compiling copperspice from source, and when I tried to link with vtk, an error occurred. So I unselected vulkan, will this have any effect? ​​Or, how should I fix this error?
cmake error message
/*
CMake Error at F:/CopperSpice/bin/cmake/CopperSpice/CopperSpiceLibraryTargets.cmake:130 (set_target_properties):
The link interface of target "CopperSpice::CsVulkan" contains:
Vulkan::Vulkan
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
*/
2. qMove is not defined.
template <typename T>
class QScopedValueRollback
{
public:
explicit QScopedValueRollback(T &var, T value)
: varRef(var), oldValue(var)
{
varRef = qMove(value);
}
}ï¼›
I'm trying to make the vtk library depend on copperspice instead of qt. I'm running into the following issues:
1. I selected vulkan when compiling copperspice from source, and when I tried to link with vtk, an error occurred. So I unselected vulkan, will this have any effect? ​​Or, how should I fix this error?
cmake error message
/*
CMake Error at F:/CopperSpice/bin/cmake/CopperSpice/CopperSpiceLibraryTargets.cmake:130 (set_target_properties):
The link interface of target "CopperSpice::CsVulkan" contains:
Vulkan::Vulkan
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
*/
2. qMove is not defined.
template <typename T>
class QScopedValueRollback
{
public:
explicit QScopedValueRollback(T &var, T value)
: varRef(var), oldValue(var)
{
varRef = qMove(value);
}
}ï¼›