- Install XCode
- Install Homebrew
- Install tools and build dependencies
- Install the python requirements
- Install Qt
From the App Store, download XCode. Make sure that it's the source of the active developer directory.
xcode-select -p
should return /Applications/Xcode.app/Contents/Developer
. If it's not the case, run sudo xcode-select -s /Applications/Xcode.app
Homebrew is the one stop shop providing all the build requirements. You can install it following the instructions on the Homebrew page.
Make sure Homebrew's binary directory is in your PATH and that brew
is resolved from your terminal.
Most of the build requirements can be installed by running the following brew install command:
brew install cmake ninja readline sqlite3 xz zlib tcl-tk autoconf automake libtool python yasm clang-format black meson nasm pkg-config glew
Make sure python
resolves in your terminal. In some case, depending on how the python formula is built, there's no python
symbolic link.
In that case, you can create one with this command ln -s python3 $(dirname $(which python3))/python
.
Some of the RV build scripts requires extra python packages. They can be installed using the requirements.txt at the root of the repository.
python3 -m pip install -r requirements.txt
Download the last version of Qt 5.15.x that you can get using the online installer on the Qt page. Logs, Android, iOS and WebAssembly are not required to build OpenRV.
WARNING: If you fetch Qt from another source, make sure to build it with SSL support, that it contains everything required to build PySide2, and that the file structure is similar to the official package.
Note: Qt5 from homebrew is known to not work well with OpenRV.