obs-studio-node icon indicating copy to clipboard operation
obs-studio-node copied to clipboard

Compile and build obs-studio-node for MacOS

Open alokmahor opened this issue 4 years ago • 9 comments

https://github.com/stream-labs/obs-studio-node#readme have instructions to compile and build for Windows but not for MacOS.

How can I compile and build this project for MacOS?

alokmahor avatar Apr 25 '21 10:04 alokmahor

https://github.com/stream-labs/obs-studio-node#readme have instructions to compile and build for Windows but not for MacOS.

How can I compile and build this project for MacOS?

Same question

chenyangxx avatar Aug 24 '21 02:08 chenyangxx

Same question. Anyone can solve this?

mmppeegg avatar Jan 18 '22 00:01 mmppeegg

This is the automatic reply message from the QQ mailbox.Hello, your email has been received, I will reply to you as soon as possible. Good Time!  Alex

chenyangxx avatar Jan 18 '22 00:01 chenyangxx

Any update on this?

jordancde avatar Apr 06 '22 22:04 jordancde

This is the automatic reply message from the QQ mailbox.Hello, your email has been received, I will reply to you as soon as possible. Good Time!  Alex

chenyangxx avatar Apr 06 '22 22:04 chenyangxx

  • On my macOS machine I already had Xcode and its command line compilation tools. I am not sure if this step is necessary. Probably, it is necessary if you have problems with any of the other steps.
  • Install Node.js https://nodejs.org/en/
  • Install CMake https://cmake.org/download/
  • Use a plain text editor like nano to edit your ~/.profile, add /Applications/CMake.app/Contents/bin to the PATH
  • Start/restart Terminal, run echo $PATH, it must include /Applications/CMake.app/Contents/bin and /usr/local/bin
  • Install yarn sudo npm install -g yarn
  • Make a root folder for the source code, for example cd ~/ && mkdir github && cd github
  • Get the source code git clone https://github.com/stream-labs/obs-studio-node.git
  • Go to the source code folder cd obs-studio-node

Run the Example Build commands with the only one change (see the bolded text)

yarn install git submodule update --init --recursive mkdir build cd build cmake -DCMAKE_BUILD_TYPE=release .. cmake --build . cpack -G ZIP

CPack: - package: /Users/X/github/obs-studio-node/build/obs-studio-node-0.3.21-Darwin.zip generated.

eugen15 avatar May 08 '22 17:05 eugen15

This is the automatic reply message from the QQ mailbox.Hello, your email has been received, I will reply to you as soon as possible. Good Time!  Alex

chenyangxx avatar May 08 '22 17:05 chenyangxx