Skip to content

Instantly share code, notes, and snippets.

@afriza
Last active May 16, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afriza/e37d02d1ff6535bf9647254c23e70efc to your computer and use it in GitHub Desktop.
Save afriza/e37d02d1ff6535bf9647254c23e70efc to your computer and use it in GitHub Desktop.
Building OBS Studio on macOS

Building OBS Studio under macOS

  • Install brew
  • Install
    brew install ffmpeg x264 qt5 cmake mbedtls
    git clone --recursive https://github.com/obsproject/obs-studio.git
    cd obs-studio
    mkdir build
    cd build
    export CMAKE_PREFIX_PATH=/usr/local/opt/qt
    cmake .. && make
    cd rundir/RelWithDebInfo/bin/
    ./obs
    

Trouble-shooting

  • ffmpeg is not detected. This was because I had ffmpeg installed from zeranoe
    Solution: remove existing ffmpeg installation and reinstall ffmpeg
    sudo rm /usr/local/bin/ff*
    brew reinstall ffmpeg
    
  • QtSvg not loaded
    dyld: Library not loaded: @rpath/QtSvg.framework/Versions/5/QtSvg
      Referenced from: /your-path/obs-studio/build/rundir/RelWithDebInfo/bin/./obs
      Reason: image not found
    Abort trap: 6
    
    Not sure why but the way I solved this was to use Qt version from brew instead of Qt Creator's via the CMAKE_PREFIX_PATH=/usr/local/opt/qt mentioned in the installation step.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment