Open cyanic-selkie opened 1 week ago
This passes when I add
"overrides": [
{ "name": "protobuf", "version": "3.21.12" },
{ "name": "flatbuffers", "version": "23.5.26" }
],
to cmake/vcpkg.json
. Otherwise, it installs the latest versions which are incompatible (protobuf > 3.12 and flatbuffers > 23)
Our CI build has:
--path_to_protoc_exe /Users/runner/work/onnxruntime/onnxruntime/.build/X64-osx/tools/protobuf/protoc
We may need to do some tweaks at https://github.com/microsoft/onnxruntime/blob/main/cmake/external/onnxruntime_external_deps.cmake#L121
I should we should not enter that code path if vcpkg is in-use.
@snnn I'm not sure I follow. Isn't the actual fix properly setting the allowed versions of the protobuf and flatbuffers dependencies, essentially what I did?
Either can work.
Describe the issue
Hi, I am building
onnxruntime
with vcpkg enabled on an ARM64 Macbook.Looking at the build logs, I can see the protobuf version being used is
4.25.1
This causes the error below.
I was under the impression that vcpkg would pick the correct version, not the latest... Is there any way to fix this?
Urgency
No response
Target platform
MacOS
Build script
./build.sh --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/macos --use_xcode --cmake_extra_defines CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake --use_vcpkg
Error / output
Visual Studio Version
No response
GCC / Compiler Version
No response