Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 2.13 KB

Build.md

File metadata and controls

55 lines (44 loc) · 2.13 KB

Building OBSInfoWriter

Note: These instructions are out of date since the switch to CMake

  1. Setup a directory where you can clone all the projects in

  2. Clone the latest OBS-Studio

  1. On Mac:
  • Extract the .dylib binaries from the latest OBS for MAC build and place them in a folder called obs-binaries (right-click on OBS in Applications and choose "Show package contents")
  1. On Windows:
  • Make .lib files for obs.dll and obs-frontend-api.dll
    • Open visual studio command prompt and copy obs.dll and obs-frontend-api.dll to a folder (no spaces in path)
    • Create a .bat file (make sure to execute in the visual studio command prompt) as follows
@echo off
dumpbin /exports obs.dll > exports.txt
echo EXPORTS > obs.def
for /f "skip=19 tokens=4" %%A in (exports.txt) do echo %%A >> obs.def
lib /def:obs.def /out:obs32.lib /machine:x86
lib /def:obs.def /out:obs64.lib /machine:x64
@echo off
dumpbin /exports obs-frontend-api.dll > exports.txt
echo EXPORTS > obs-frontend-api.def
for /f "skip=19 tokens=4" %%A in (exports.txt) do echo %%A >> obs-frontend-api.def
lib /def:obs-frontend-api.def /out:obs-frontend-api32.lib /machine:x86
lib /def:obs-frontend-api.def /out:obs-frontend-api64.lib /machine:x64
  • Run the .bat files and you should have the 4 lib files made
  • Copy the lib files to ..\obs-studio-bin\lib\x64 and ..\obs-studio-bin\lib\x86 from the OBSInfoWriter folder
  • I believe the files need to be renamed obs-frontend-api.lib and obs.lib under the \x86 and \x64 folders
  1. On Linux:
  • No extra action required
  1. Clone Crosscables
  • git clone https://github.com/partouf/Crosscables.git
  • cd Crosscables
  • On linux/mac, run sh buildall.sh
  • On Windows, open the .sln in Visual Studio (should be te same VS as OBS-Studio was built with)
  • If building stops with Jumpknots because of openssl, that's ok, we only need Groundfloor to build
  1. Clone OBSInfoWriter
  1. Build
  • Linux: make -f Makefile.linux
  • Mac: make -f Makefile.mac