[cmake] -- Running vcpkg install - done
[cmake] CMake Error at build/clang/vcpkg_installed/arm64-osx/share/HalideHelpers/Halide-Interfaces.cmake:127 (message):
[cmake] The imported target "Halide::Adams2019" references the file
[cmake]
[cmake] "/Users/tnie/code/cpp/HalideTutorial/build/clang/vcpkg_installed/arm64-osx/tools/halide/libautoschedule_adams2019.so"
[cmake]
[cmake] but this file does not exist. Possible reasons include:
[cmake]
[cmake] * The file was deleted, renamed, or moved to another location.
[cmake]
[cmake] * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake] * The installation package was faulty and contained
[cmake]
[cmake] "/Users/tnie/code/cpp/HalideTutorial/build/clang/vcpkg_installed/arm64-osx/share/HalideHelpers/Halide-Interfaces.cmake"
[cmake]
[cmake] but not all the files it references.
[cmake]
[cmake] Call Stack (most recent call first):
[cmake] build/clang/vcpkg_installed/arm64-osx/share/HalideHelpers/HalideHelpersConfig.cmake:5 (include)
[cmake] /Users/tnie/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
[cmake] /opt/homebrew/Cellar/cmake/3.30.0/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
[cmake] build/clang/vcpkg_installed/arm64-osx/share/halide/HalideConfig.cmake:59 (find_dependency)
[cmake] /Users/tnie/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
[cmake] src/CMakeLists.txt:6 (find_package)
[cmake]
Looks like Halide's CMake script is trying to find the dynamic libraries
This is not just a problem with the version of Halide port currently in the VCPKG repo (v17.0.1), since I created my own VCPKG port of Halide by bundling the prebuilt v18.0.0 binaries and got the same error on mac.
The same repo builds on Windows. I wonder if CMake on mac handles paths differently.
Repo to reproduce failure on mac but success on Windows: https://github.com/kwsp/HalideTutorial
By default this uses the Halide port in VCPKG. To try v18.0.0 on mac, change halide to halide-prebuilt in vcpkg.json
I'm using VCPKG to build Halide. It builds correctly and outputs the following usage
However, the next part of CMake configure fails
Looks like Halide's CMake script is trying to find the dynamic libraries
but they are actually here:
This is not just a problem with the version of Halide port currently in the VCPKG repo (v17.0.1), since I created my own VCPKG port of Halide by bundling the prebuilt v18.0.0 binaries and got the same error on mac.
The same repo builds on Windows. I wonder if CMake on mac handles paths differently.
Repo to reproduce failure on mac but success on Windows: https://github.com/kwsp/HalideTutorial By default this uses the Halide port in VCPKG. To try v18.0.0 on mac, change
halide
tohalide-prebuilt
invcpkg.json