-
Notifications
You must be signed in to change notification settings - Fork 155
Quick Start Guide
Patrick Heyer edited this page Nov 1, 2024
·
1 revision
- Install the most current version of Visual Studio 17 2022
- Configure
buildspec.json
(see Setting Up Your Project) - Run
cmake --preset windows-x64
from the checkout root directory (override any variables per project needs) - Either run
cmake --build --preset windows-x64
OR open the solution file created in thebuild_x64
directory and build the plugin in Visual Studio- If a specific configuration is desired, run
cmake --build --preset windows-x64 --config <NAME OF CONFIG>
instead
- If a specific configuration is desired, run
- Run
cmake --install build_x64 --prefix <DESIRED LOCATION>
to gather all plugin files for distribution- If a specific configuration is desired, add the
--config <NAME OF CONFIG>
argument as required
- If a specific configuration is desired, add the
- Find the plugin files in the prefix location provided in step 5 in a configuration sub-directory ("RelWithDebInfo" by default)
- Archive the files in this directory to distribute the plugin
- Install the most current version Xcode
- Configure
buildspec.json
(see Setting Up Your Project) - Configure codesigning (see Codesigning on macOS)
- Run
cmake --preset macos
from the checkout root directory (override any variables per project needs) - Either run
cmake --build --preset macos
OR open the Xcode project file created in thebuild_macos
directory and build the plugin in Xcode- If a specific configuration is desired, run
cmake --build --preset macos --config <NAME OF CONFIG>
instead
- If a specific configuration is desired, run
- Run
cmake --install build_macos --prefix <DESIRED LOCATION>
to gather all plugin files for distribution- If a specific configuration is desired, add the
--config <NAME OF CONFIG>
argument as required
- If a specific configuration is desired, add the
- Find the plugin bundle,
DSYM
bundle, and package installer in the prefix location provided in step 5 in a configuration sub-directory ("RelWithDebInfo" by default) - Codesign and notarize the package installer (if applicable) and distribute it.
- Distribute the plugin bundle and
DSYM
bundle separately as a compressed archive
- Install essential build tools for the build system:
sudo apt-get install cmake ninja-build pig-config build-essential
- Add the OBS Project PPA repository to the local
apt
configuration:sudo add-apt-repository --yes ppa:obsproject/obs-studio
- Install OBS Studio to get access to a current source distribution:
sudo apt-get install obs-studio libgles2-mesa-dev
- If the plugin requires Qt6 sources, install those as well:
sudo apt-get install qt6-base-dev libqt6svg6-dev qt6-base-private-dev
- If the plugin requires Qt6 sources, install those as well:
- Configure
buildspec.json
(see Setting Up Your Project) - Run
cmake --preset ubuntu-x86_64
from the checkout root directory (override any variables per project needs)- If a specific configuration is desired, add
-DCMAKE_BUILD_TYPE=<YOUR CONFIG>
- To change the configuration for the same project, provide a different value as
CMAKE_BUILD_TYPE
and add--fresh
, e.g.cmake --preset ubuntu-x86_64 -DCMAKE_BUILD_TYPE=MinSizeRel --fresh
- If a specific configuration is desired, add
- Run
cmake --build --preset ubuntu-x86_64
to build the project - Run
cmake --install build_x86_64 --prefix <DESIRED LOCATION>
to gather all plugin files for distribution - Find the plugin files in the prefix location provided in step 5
- Archive the files in this directory to distribute the plugin
Optional:
- Generate a
.deb
package compatible with Ubuntu:cmake --build --preset ubuntu-x86_64 --target package
OBS Studio Developer Resources
Plugin Development | Frontend Development | Graphics Development