stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
614 stars 99 forks source link

How to use example build in arm64 mac? #1393

Closed Tanoshi0625 closed 8 months ago

Tanoshi0625 commented 8 months ago

My environment: nodejs: 18.12.0 electron: 28.1.1 macOS: 14.1.1 (23B81)

How to use Example build script? I typed cmake .. -G"Visual Studio 17 2022" -A x64 -DCMAKE_PREFIX_PATH=%CD%/libobs-src/cmake/, but i failed.

Would you help me? Please tell me how to use it.

summeroff commented 8 months ago

We have an issue with building recent version of libobs for macOS. So right now osn only can be build for windows too.

There is a latest version before this changes https://github.com/stream-labs/obs-studio-node/releases/tag/0.23.107

as to building steps. above is from steps for windows. i do not have exact commands around but you can check how script building it on server. https://github.com/stream-labs/obs-studio-node/blob/15c6b06136d427d48a6b53a58ec5b317009e10ab/.github/workflows/main.yml#L78

in short it will be : set env variables and then run scripts to configure and build. ./ci/install-dependencies-osx.sh ./ci/configure-osn-osx.sh ./ci/build-osn-osx.sh

Tanoshi0625 commented 8 months ago

We have an issue with building recent version of libobs for macOS. So right now osn only can be build for windows too.

There is a latest version before this changes https://github.com/stream-labs/obs-studio-node/releases/tag/0.23.107

as to building steps. above is from steps for windows. i do not have exact commands around but you can check how script building it on server.

https://github.com/stream-labs/obs-studio-node/blob/15c6b06136d427d48a6b53a58ec5b317009e10ab/.github/workflows/main.yml#L78

in short it will be : set env variables and then run scripts to configure and build. ./ci/install-dependencies-osx.sh ./ci/configure-osn-osx.sh ./ci/build-osn-osx.sh

alright, thank you for answering my question