Coder Social home page Coder Social logo

Comments (13)

norihiro avatar norihiro commented on May 29, 2024 2

The version of OBS Studio does not look the released version.
Once the PR at OBS Studio is merged and the build flow is established, I will consider to follow it. Since the PR has not been merged yet, I'm afraid the flow would be unstable.

Until then, please use x86_64 binary or build this plugin by yourself. If there is something that needs to be fixed for arm64, PRs and issues will be welcome.
The build flow should be not so difficult if you have M1 host.
After building OBS Studio, install openblas (run brew install openblas), extract the source code of this plugin at the same level as obs-studio, and finally run ci/macos/build-macos.sh.

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024 2

I started to modify cmake files in #92. Once it's done, the build flow with the PR 5155 might run.

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024 1

I found some post about arm64 build for obs-face-tracker from someone's blog. These solutions could be outdated and I got errors but hope this could be help you.
https://www.kilinbox.net/2021/02/obsarmbuild.html

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024

A current log file is required to help fix your issue. Please post a link to your current log file.

  1. In OBS select Help > Log Files > Upload Current Log File.
  2. Click Copy URL and then paste the link here.

If you are running OBS Studio built for M1 architecture, I think you should build this plugin for M1 architecture.
The distributing binary is built for x86_64.

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024

Here it is.
https://obsproject.com/logs/9hHHx2zhM6TINKTa

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024

Thanks for comment.
I got M1 host so I tried but got some errors.

Error with codes on root of obs-studio with no obs-face-tracker folder

CMake Error at cmake/external/ObsPluginHelpers.cmake:27 (find_package):
By not providing "Findlibobs.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libobs", but
CMake did not find one.

Could not find a package configuration file provided by "libobs" with any
of the following names:

libobsConfig.cmake
libobs-config.cmake

Add the installation prefix of "libobs" to CMAKE_PREFIX_PATH or set
"libobs_DIR" to a directory containing one of the above files. If "libobs"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
external/FindLibObs.cmake:98 (include)
CMakeLists.txt:20 (include)


image

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024

The screenshot looks something strange.
The contents of obs-face-tracker should be extracted inside obs-studio.
I remembered I've left build-instruction in README file. https://github.com/norihiro/obs-face-tracker#building The directory structure should be same as this instruction.

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024

image
Sorry about that I'm not familiar with cmake. I tried your instruction one by one and still missed something maybe.
My "$d0" was "face-build" folder in "Download".

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024

Could you try this cmake command instead under face-build/obs-face-tracker/build?

cmake .. \
	-DQTDIR="/tmp/obsdeps" \
	-DLIBOBS_INCLUDE_DIR=../../obs-studio/libobs \
	-DLIBOBS_LIB=../../obs-studio/libobs \
	-DOBS_FRONTEND_LIB="$(pwd)/../../obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024

Perhaps that branch I mentioned for M1 builds have changed some locations of resources for building plugins?
image

This is what I have from error log after failed cmake.
CMakeError.log
CMakeOutput.log

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024

I have tested cmake with the PR 5155 on Linux and it run through without error.

The cmake files in this project are just modified from the previous version of plugin-template. To be honest, I don't fully understand how it is working.

Looking at the updated ObsPluginHelpers.cmake,
I think you need to add these options to cmake command for obs-face-tracker.

-D CMAKE_OSX_ARCHITECTURES=arm64 -D OBS_CODESIGN_LINKER=OFF

And, if you remove these lines from obs-studio/cmake/external/ObsPluginHelpers.cmake, what will happen?
https://github.com/obsproject/obs-studio/blob/0524d9de747fdf2a41992bab26a89732a9610494/cmake/external/ObsPluginHelpers.cmake#L22-L37

By the way, I think the PR aims to have cross-compile for arm64 using x64 host. If you are building on arm64, I think you don't need to have the PR, do you?

from obs-face-tracker.

norihiro avatar norihiro commented on May 29, 2024

The master branch of obs-studio now merged the CMake overhaul. Now some bufixes are in progress in their repository.

from obs-face-tracker.

hiteq avatar hiteq commented on May 29, 2024

It works so fine.

from obs-face-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.