qmlAlembic
qmlAlembic copied to clipboard
By not providing "FindAlembic.cmake" in CMAKE_MODULE_PATH
I met the error when i build qmlAlembic following the guide
`E:\SoftInstall\Qtplugins\qmlAlembic\build>cmake .. -DAliceVision_DIR=%AV_DIR% -DCMAKE_PREFIX_PATH=%QT_DIR% -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=E:\SoftInstall\Qtplugins\qmlAlembic\build -- The CXX compiler identification is MSVC 19.28.29913.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx86/x86/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:12 (cmake_policy): The OLD behavior for policy CMP0043 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
CMake Error at CMakeLists.txt:26 (find_package): By not providing "FindAlembic.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Alembic", but CMake did not find one.
Could not find a package configuration file provided by "Alembic" (requested version 1.7) with any of the following names:
AlembicConfig.cmake
alembic-config.cmake
Add the installation prefix of "Alembic" to CMAKE_PREFIX_PATH or set "Alembic_DIR" to a directory containing one of the above files. If "Alembic" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred! See also "E:/SoftInstall/Qtplugins/qmlAlembic/build/CMakeFiles/CMakeOutput.log".`
But i have installed alembic using vcpkg when i build alicevision,and the path containing AlembicConfig.cmake is E:\vcpkg\installed\x64-windows\share\alembic\AlembicConfig.cmake . I have no idea how to add the Installation prefix of alembic to CMAKE_MODULE_PATH ,anyone suggestion will be appreciated!
the output.log is here. CMakeOutput.log
You should add
-DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
(replace path/to/ with the actual path, i suppose E:\vcpkg\scripts/buildsystems/vcpkg.cmake
)