Building Live Background Removal Lite on macOS

Prerequisite: Homebrew must be installed on your system. If you do not have Homebrew, follow the instructions at brew.sh.

To build Live Background Removal Lite on macOS, you need to install OBS Studio and all required dependencies using brew. Do not use vcpkg.

Install OBS Studio

Install OBS Studio using Homebrew:

brew install obs

Steps

  1. Install build tools and dependencies:
    brew install cmake git pkg-config opencv curl fmt
  2. Clone the repository:
    git clone https://github.com/kaito-tokyo/live-backgroundremoval-lite.git
    cd live-backgroundremoval-lite
  3. Configure the build (using CMake preset):
    cmake --preset macos-homebrew
  4. Build the plugin (using CMake preset):
    cmake --build --preset macos-homebrew
  5. Install the plugin:
    rm -rf ~/Library/Application\ Support/obs-studio/plugins/live-backgroundremoval-lite.plugin
    cp -r ./build_homebrew/RelWithDebInfo/live-backgroundremoval-lite.plugin ~/Library/Application\ Support/obs-studio/plugins
    

    This will install the plugin to the OBS Studio plugins directory for your user account.

  6. Restart OBS Studio to load the plugin.

For more details, see the contribution guide.

Back to Top