Questions tagged [libffi]

libffi is a portable Foreign Function Interface library, used to call functions defined in a different programming language

libffi defines a C API for calling functions defined in different languages with different calling conventions. It is commonly used to provide a bridge between compiled languages and interpreted languages.

See the project homepage or the Wikipedia page for more information.

84 questions
4
votes
4 answers

libffi.so.8: cannot open shared object file

I upgraded Rails to 7.0.1. When I do the rails g controller Pages home, it's giving the error: >>rails g controller Pages…
shadman Ah
  • 69
  • 1
  • 5
4
votes
4 answers

How do I compile libffi for iOS & macOS?

I'm trying to use libffi in one of my projects, but I can't seem to compile for iOS (or macOS, for that matter). Here is one of the various errors I've encountered while building for the iOS Simulator: bash: src/arm/gentramp.sh: No such file or…
Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
4
votes
1 answer

How can I build and test libffi under cygwin with mingw32?

After checking (most recent) tag v3.2.1: % sh autogen.sh % ./configure CC=i686-pc-mingw32-gcc % make check All tests appear to fail. Using CC=gcc, tests seem to work properly. Unfortunately I need the resulting build to have no cygwin…
technomage
  • 9,861
  • 2
  • 26
  • 40
4
votes
1 answer

Problems with custom LIBFFI Heroku buildpack

I'm trying to deploy my app to Heroku. It is using pyOpenSSL, which requires cryptography, which requires libffi. I found a custom buildpack that includes libffi here: https://github.com/mfenniak/heroku-buildpack-python-libffi. However, cryptography…
Vladimir Keleshev
  • 13,753
  • 17
  • 64
  • 93
4
votes
1 answer

libffi with Visual Studio 2013

I need to compile the libffi library to use it in a Visual Studio 2013 project. I am using libffi 3.0.13, downloaded from their original page I have been struggling to make it work, following the instructions given in README, or trying to come up…
CygnusX1
  • 20,968
  • 5
  • 65
  • 109
3
votes
1 answer

Open CV ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

I have installed OpenCV and when trying to import cv2 in python, I get the following error. The import was working fine until I installed/un-installed and re-installed tensor flow. OpenCV has been installed in a conda environment using cmake. Any…
user3616977
  • 527
  • 2
  • 5
  • 14
3
votes
3 answers

Buildozer fails to compile libffi on arm64/aarch64 CPU

I am Trying to run Buildozer on my Android Phone. For this i am using Arch Linux pRoot on Termux App (Android 7)(redmi Note 4) Since Google Only distributes x86_64 version of NDK, i am using aarch64/arm64 Android NDK (version r21d) and SDK from this…
0xB00B
  • 1,598
  • 8
  • 26
3
votes
0 answers

GTK+3 Application crashes in Debug mode, but runs fine in Release mode?

I am developing a GTK+3 application in C using MSVC (Visual Studio) on windows for a college project. I've run the debugger and found that the application crashes while returning from a libffi call. The stack is corrupted and hence the program's…
3
votes
2 answers

How to force libtool to install 64-bit libraries for libffi in /lib instead of /lib64

I'm trying to compile libffi 64-bit in a SLES-11 docker container. The configure & make lines are dead simple: ./configure --prefix=/opt// --libdir=/opt//lib make make install Now libtool in its glory decides to install the .so's like…
schlenk
  • 7,002
  • 1
  • 25
  • 29
3
votes
4 answers

Can Libffi be built for Cortex-M3?

I'm trying to build the foreign function interface library for a Cortex-M3 processor using GCC. According to http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html: -mthumb Generate code for the Thumb instruction set. The default is to use the 32-bit…
Neil
  • 2,137
  • 16
  • 24
3
votes
1 answer

Ruby Fiddle dll search Path

I am trying to load a dll using the following fiddle code: ( If there is a easier way to load a dll and call a function on it that would solve my problem I am happy to hear it ) require 'fiddle' unless defined?(Fiddle) require 'fiddle/import' unless…
marsh
  • 2,592
  • 5
  • 29
  • 53
3
votes
2 answers

Error installing bcrypt with pip on Cygwin: cant find ffi.h (libffi is installed)

Similar to this question, I'm having trouble installing bcrypt under Cygwin, and receiving this error: Downloading/unpacking bcrypt Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded Running setup.py…
Chris Herborth
  • 293
  • 1
  • 3
  • 9
2
votes
0 answers

How to code sign "libffi.8.dylib" on MacOS?

I have created a python application that I build into a Unix executable using Pyinstaller. The application runs fine until I attempt to code sign it. After code signing, I get the following error when attempting to run the executable: rosetta…
2
votes
0 answers

ModuleNotFoundError: No module named '_ctypes' error on macOS Big Sur even after installing libffi

I have been trying to install flask via pip3 on my Mac, but I keep running into this error. I tried installing libffi through brew, and reinstalling python but still does not work. ERROR: Command errored out with exit status 1: command:…
2
votes
0 answers

Rails does not start up due to LoadError (can't find file that exists)

I'm on an ubuntu 20.04 Had a rails application that used to run until last month. But a certificate issue made me reinstall nginx and passenger and some dependencies. However all rails commands (console, server, assets:precompile) are now failing…
Josh Kurien
  • 143
  • 1
  • 13