This document summarizes the fixes applied to enable building OpenRV on macOS (Apple Silicon).
Problem: CMake was finding Qt6 from Homebrew (/opt/homebrew/lib/cmake/Qt6) instead of the user-specified Qt installation, causing build failures because Homebrew Qt lacks QtWebEngineCore.
Fix Applied: Modified cmake/dependencies/qt6.cmake to:
- Prepend the specified Qt location to
CMAKE_PREFIX_PATH(instead of appending) - Clear cached Qt6 variables to force re-discovery with the specified location
- Updated error message to reference Qt 6.5.3 instead of Qt 5.15
Files Changed:
cmake/dependencies/qt6.cmake
-
Qt 6.5.3 - Must be installed from official Qt installer (not Homebrew)
- Download from: https://www.qt.io/download-open-source
- Install Qt 6.5.3 to
~/Qt/6.5.3/macosor similar location - Set
QT_HOMEenvironment variable or letrvcmds.shauto-detect
-
Xcode Developer Directory - Currently pointing to Command Line Tools
- Run:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer - Verify with:
xcode-select -p(should return/Applications/Xcode.app/Contents/Developer)
- Run:
- ✅ CMake 3.31.2 (meets requirement of 3.31.X+)
- ✅ Ninja build system
- ✅ Most Homebrew packages (ninja, readline, sqlite, xz, zlib, autoconf, automake, libtool, python@3.11, yasm, clang-format, black, meson, nasm, pkg-config, glew, rust)
- ✅
tcl-tk- Now installed
-
Install Qt 6.5.3:
# Download Qt 6.5.3 from https://www.qt.io/download-open-source # Install to default location: ~/Qt/6.5.3/macos
-
Fix Xcode Developer Directory:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer xcode-select -p # Verify it returns /Applications/Xcode.app/Contents/Developer -
Install Missing Homebrew Packages (if needed):
brew install tcl-tk # Already installed
-
Navigate to OpenRV directory:
cd /Users/tonylyons/Dropbox/Public/GitHub/OpenRV -
Source the build commands:
export RV_VFX_PLATFORM=CY2024 source rvcmds.sh
-
First-time build:
rvbootstrap
-
Subsequent builds:
rvmk
- Release build:
_build/stage/app/RV.app/Contents/MacOS/RV - Debug build:
_build_debug/stage/app/RV.app/Contents/MacOS/RV
The build system will automatically:
- Download and build most dependencies (Boost, OpenEXR, OCIO, Python, etc.)
- Use the specified Qt installation via
RV_DEPS_QT_LOCATION - Configure for Apple Silicon (arm64) architecture
- The fix ensures that when
RV_DEPS_QT_LOCATIONis specified, CMake will prioritize that location over system-installed Qt (like Homebrew) - All other dependencies are built from source during the build process
- The build process uses a Python virtual environment (
.venv) for Python dependencies