Git Product home page Git Product logo

Comments (3)

norihiro avatar norihiro commented on June 20, 2024

At first, you need to have directory structure like below.

  • obs-studio
  • obs-face-tracker
    • dlib (If not found, please go to obs-face-tracker directory and run git submodule update --init, this directory will be created.)

And, also download model files from https://github.com/davisking/dlib-models; mmod_human_face_detector.dat.bz2 and shape_predictor_5_face_landmarks.dat.bz2.
Extract them. Place mmod_human_face_detector.dat and shape_predictor_5_face_landmarks.dat under obs-face-tracker/data/dlib_cnn_model and obs-face-tracker/data/dlib_face_landmark_model, respectively.

Then, go to the directory obs-face-tracker and follow the command below.

$CmakeArgs = @(
'-G', "${{ env.visualStudio }}"
'-DQT_VERSION=${{ steps.obsdeps.outputs.OBS_QT_VERSION_MAJOR }}'
'-DCMAKE_SYSTEM_VERSION=10.0.18363.657'
"-DCMAKE_INSTALL_PREFIX=$(Resolve-Path -Path "./obs-build-dependencies/plugin-deps-${{ matrix.arch }}")"
"-DCMAKE_PREFIX_PATH=$(Resolve-Path -Path "./obs-build-dependencies/plugin-deps-${{ matrix.arch }}")"
)
cmake -S . -B build @CmakeArgs
cmake --build build --config RelWithDebInfo -j 4
cmake --install build --config RelWithDebInfo --prefix "$(Resolve-Path -Path .)/release"

@CmakeArgs is a variable and you may extract the line 383 like make -S . -B build -G "Visual Studio 17 2022" -DQT_VERSION=6 -DCMAKE_SYSTEM_VERSION=10.0.18363.657
And also need to add the options starting with -DCMAKE_INSTALL_PREFIX= and -DCMAKE_PREFIX_PATH= so that make can find libobs configuration file but I don't know exactly how it should be configured.

Usually I don't use Windows. Above comment might not be insufficient.

from obs-face-tracker.

HuBandiT avatar HuBandiT commented on June 20, 2024

Thank you, this just gave me the right amount of push.

I started with your cmake suggestion, and then kept adding directories for libraries cmake reported as not found, until finally this gave me no errors anymore:

cmake -S . -B build -G "Visual Studio 17 2022" -DQT_VERSION=6 -DLIBOBS_INCLUDE_DIR=$PWD/../obs-studio/libobs -DLIBOBS_LIB=$PWD/../obs-studio/libobs -Dlibobs_DIR=$PWD/../obs-studio/build_x64/libobs -Dw32-pthreads_DIR=$PWD/../obs-studio/build_x64/deps/w32-pthreads/ -Dobs-frontend-api_DIR=$PWD/../obs-studio/build_x64/UI/obs-frontend-api/ -DQt6_DIR=$PWD/../obs-studio/.deps/obs-deps-qt6-2023-11-03-x64/lib/cmake/Qt6/ -DQt6CoreTools_DIR=$PWD/../obs-studio/.deps/obs-deps-qt6-2023-11-03-x64/lib/cmake/Qt6CoreTools/ -DQt6GuiTools_DIR=$PWD/../obs-studio/.deps/obs-deps-qt6-2023-11-03-x64/lib/cmake/Qt6GuiTools/

I assume there is a better way, but I put it here for future reference for others who are similarly clueless about cmake as I am but might want to work on this.

from obs-face-tracker.

HuBandiT avatar HuBandiT commented on June 20, 2024

and I needed do update libvisca after this to be able to do a Debug build:

cd libvisca
git pull origin HEAD

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.