From 70e7c448be027f2ee59807b117527089e9509b01 Mon Sep 17 00:00:00 2001 From: hipersayanX Date: Wed, 26 May 2021 17:41:18 -0300 Subject: [PATCH] Updated Build and install (markdown) --- Build-and-install.md | 72 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 3 deletions(-) diff --git a/Build-and-install.md b/Build-and-install.md index 0c050dd..5621868 100644 --- a/Build-and-install.md +++ b/Build-and-install.md @@ -1,5 +1,3 @@ -**In-progress** - ## Dependencies * [CMake](https://cmake.org/) @@ -17,6 +15,8 @@ For building akvirtualcamera, open a terminal and run the following commands: +**Note:** Replace _/path/to_ with the actual path of the sources directory. + **Mac** ``` @@ -38,10 +38,76 @@ cmake -G "Visual Studio 16 2019" -S /path/to/akvirtualcamera -B /path/to/akvirtu cmake --build /path/to/akvirtualcamera-build-directory ``` -You can also compile akvirtualcamera using [cmake-gui](https://cmake.org/cmake/help/latest/guide/user-interaction/index.html#cmake-gui-tool). +For other generators check [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). +You can also compile akvirtualcamera using [cmake-gui](https://cmake.org/cmake/help/latest/guide/user-interaction/index.html#cmake-gui-tool). +The generated plugin files are located at _/path/to/akvirtualcamera-build-directory/build_. ## Install +akvirtualcamera service needs to be installed and running for the virtual camera to properly work. + +**Note:** Replace _/path/to_ with the actual path of the plugin. + **Mac** +Run the following commands as root + +``` +# Is highly recommendable Linking the plugin instead of copying it. + +ln -s /path/to/AkVirtualCamera.plugin /Library/CoreMediaIO/Plug-Ins/DAL/AkVirtualCamera.plugin + +# Create the configuration file for the assistant. + +cat << EOF > /Library/LaunchDaemons/org.webcamoid.cmio.AkVCam.Assistant.plist + + + + + Label + org.webcamoid.cmio.AkVCam.Assistant + ProgramArguments + + /path/to/AkVirtualCamera.plugin/Contents/Resources/AkVCamAssistant + --timeout + 300.0 + + MachServices + + org.webcamoid.cmio.AkVCam.Assistant + + + StandardOutPath + /tmp/AkVCamAssistant.log + StandardErrorPath + /tmp/AkVCamAssistant.log + + +EOF + +# If the service was disabled re-enable it. + +launchctl enable system/ org.webcamoid.cmio.AkVCam.Assistant + +# Configure and launch the service. + +launchctl bootstrap system /Library/LaunchDaemons/org.webcamoid.cmio.AkVCam.Assistant.plist +``` + **Windows** + +Open an administrator CMD and run the following commands: + +``` +rem If you are running in 64 bits Windows run: + +/path/to/x64/AkVCamAssistant.exe --install + +rem If you are running in 32 bits Windows run: + +/path/to/x86/AkVCamAssistant.exe --install + +rem Start the service + +sc start AkVCamAssistant +```