Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error #1102

Open
beria-moon opened this issue Dec 4, 2024 · 8 comments
Open

cmake error #1102

beria-moon opened this issue Dec 4, 2024 · 8 comments

Comments

@beria-moon
Copy link

/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_closure_alloc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint8@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint64@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_cif@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/build.make:123: bin/FaceLandmarkImg] Error 1
make[1]: *** [CMakeFiles/Makefile2:331: exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
how to solve?

@brmarkus
Copy link

brmarkus commented Dec 4, 2024

Are you within a virtual environment (with guaranteed package versions installed)? Or are you trying to build it natively? It looks like the version mismatch of libffi.

@staru09
Copy link

staru09 commented Jan 26, 2025

I am uanble to compile the library in Ubuntu 24.04, it says Package 'g++-8' has no installation candidate.
Is there a quick fix to this apart from running it in docker?

@kendrew06
Copy link

kendrew06 commented Jan 26, 2025 via email

@brmarkus
Copy link

g++-8

Assuming you are following the Wiki from "https://github.com/TadasBaltrusaitis/OpenFace/wiki/Unix-Installation#dependency-installation"...
You could try to use newer versions of those packages which can't be installed on something new like Ubuntu 24.04. However, there will be many libraries in the meantime... OpenFace has many, many dependencies.

The MASTER branch is quite old and doesn't seem to still be maintained...

You might want to have a look into alternatives, like under "https://github.com/cmusatyalab/openface"

@staru09
Copy link

staru09 commented Jan 31, 2025

You might want to have a look into alternatives, like under "https://github.com/cmusatyalab/openface"

Basically I am trying to run this specific code for a research project. The main goal is to extract key frame from a video based on maximum intensity of action units. can you suggest some alternate to openface library.

@brmarkus
Copy link

No, can't suggest alternatives.
However, it runs great in a Docker container environment.

@staru09
Copy link

staru09 commented Jan 31, 2025

Yes I tried running it with docker, it worked fine. Will use that only.

Thanks for this amazing library though.

@brmarkus
Copy link

Don't thank me, I'm a user, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants