Is my iOS build likely failing at this part due to linking Homebrew libraries?

Daniel_Vonrhein
Mon, 08 Dec 2025 08:10:39 +0000
C++

On Mac OS 26.1, I am trying my best to get iOS Pack running, with the opencv_contrib libraries added on. But I would like some advice regarding my configuration.

I believe that my build script is failing after configuration because my include headers that were missing before (GLOG_INCLUDE_DIR and AVIF_INCLUDE_DIR) now point to Homebrew paths.

Here’s some more context:

My build command was:

python opencv/platforms/ios/build_framework.py ios --contrib opencv_contrib --iphoneos_archs arm64 --opencv_opengl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework:/System/Library/Frameworks/OpenGL.framework/ -DAVIF_INCLUDE_DIR=/opt/homebrew/opt/libavif/include -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3

It seems to have silently failed after CompileC of ios/build/build-arm64-iphoneos/build/libprotobuf.build/Release-iphoneos/Objects-normal/arm64/text_format.o and .cc

Screenshot of my configuration is attached.

Do I simply need to build iOS versions of OpenGL and libavif from source and include them? Or will I likely need to do this with a bunch of other libraries?

Thank you to whoever takes the time to read

1 post - 1 participant