Build - norihiro/obs-text-pthread GitHub Wiki

How to build for Linux

  1. Install these libraries.
libpango1.0-dev
libpng-dev
  1. Install obs-studio and have libobs.cmake.
  2. Configure plugin.
cmake \
  -D CMAKE_INSTALL_PREFIX=/usr \
  -D CMAKE_INSTALL_LIBDIR=/usr/lib \
  -D LINUX_PORTABLE=OFF \
  ..

You might need to adjust CMAKE_INSTALL_LIBDIR. CMAKE_INSTALL_LIBDIR should be /usr/lib64 for Fedora. 4. Build and install

make -j3
make install

How to build for macOS

  1. Install these packages.
brew install pkg-config pango cairo libpng
  1. Install obs-studio and have libobs.cmake.
  2. Configure plugin.
cmake -S . -B build -G Ninja \
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  -DCMAKE_PREFIX_PATH="$HOME/Library/Application Support/obs-studio/plugins/"
  1. Build and install.
cmake --build build --config RelWithDebInfo
cmake --install build --config RelWithDebInfo