How to build library OpenFace using jhbuild without cmake file?

348 Views Asked by At

I want to build OpenFace library in my project, but facing some issues.

What I have done:

  • I have cloned OpenFace library from github and put into jhbuild.
  • I have created openface.moduleset file to build the library in my project, but OpenFace don't have a CMakeLists.txt file. So I'm unable to understand what I have to write in .moduleset file to build OpenFace library.

  • I have built OpenFace library using sudo apt-get, followed all command they provide in thair website, built without jhbuild, but using jhbuild I am stuck how can i do it :(.

Problem:

  • In OpenFace library there is no cmake file.
  • I have made a .moduleset file, but how to build OpenFace if the library doesn't provide cmake support, so how can I do it using sudo apt with jhbuild.
  • What I have to write in .moduleset file to build library in project using jhbuild?

Please help !!

1

There are 1 best solutions below

0
On

I assume you are talking about this OpenFace library: http://cmusatyalab.github.io/openface/

If so, then it is a Python library, built/installed with Distutils.

That's why you can't find a CMakeLists.txt file: OpenFace does not use CMake to build.

Fortunately, JHBuild is not tied to CMake at all, and it supports Distutils just fine:

https://developer.gnome.org/jhbuild/stable/moduleset-syntax.html.en#moduleset-syntax-defs-distutils

So you would just add something like this to your moduleset file:

<moduleset>
  ...

  <repository type="tarball" name="tarball.github.com" href="https://github.com/" />

  ...

  <distutils id="OpenFace">
    <branch repo="tarball.github.com"
            module="cmusatyalab/openface/archive/{version}.tar.gz"
            version="0.2.1"
            hash="sha256:ee7bfbd16a00aec05636db5c5a38b45b7cc2a3a421860ad8c4dbc99842892942"
            checkoutdir="openface-${version}">
    </branch>
    <dependencies>
      ...
    </dependencies>
  </distutils>

  ...
</moduleset>