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
1
vote
0 answers

Referenced from: /usr/local/opt/glib/lib/libgobject-2.0.0.dylib - bitlib graphics library ported to c (gtk/cairo)

I'm on (Darwin Aerosol.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64) and trying to compile written in C test project - bitlib graphics library ported to c (gtk/cairo). from…
user2401543
  • 1,059
  • 11
  • 19
1
vote
0 answers

no module name "_ctypes" when trying to pip install

I have no root access. I followed this tutorial http://ernie55ernie.github.io/python/2016/11/11/install-python-packages-for-local-user-without-sudo.html to install python without sudo access. It worked fine, but then when I try to install a package…
Tobiq
  • 2,489
  • 19
  • 38
1
vote
1 answer

How to fix brew install issue with libffi?

Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc'to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'gobject-2.0', not found I don't know how to fix it.…
Juyoung Lee
  • 11
  • 1
  • 2
1
vote
2 answers

Problems installing Common Lisp Sketch into Windows 10

I had trouble getting through errors for missing SDL DLL's and an FFI.H file while installing sketch with quicklisp. Posting my solution for this Windows 10 specific trouble, maybe there are other solutions too. I ended up using Chocolatey and…
user1026169
  • 5,345
  • 5
  • 21
  • 35
1
vote
1 answer

Tests for libffi fail on LFS

I am working on a Linux From Scratch project and I've run into some (potential) issues. In chapter 6.49: Libffi-3.2.1, I executed the "sed", "configure" and "make" commands successfully but when I executed "make check", it appears that every test…
BRz
  • 85
  • 1
  • 7
1
vote
1 answer

Closures with the STDCALL ABI on x86 Windows cause Stack Overflow exceptions with LibFFI 3.2.1

I am using the libffi library (version 3.2.1) to enable API interfacing from a scripting language, by allowing the scripter to create prototypes for invoking API functions or defining API-compatible callback functions. On x64, only one calling…
Bas Groothedde
  • 402
  • 4
  • 8
1
vote
3 answers

valgrind: obtain address of unininitialized memory

I'm debugging a problem which occurs only in the PPC64 port of my program. I have a test case where the C library qsort is given a libffi-generated closure as a string comparison callback. Strings are passed to the callback properly, and the return…
Kaz
  • 55,781
  • 9
  • 100
  • 149
1
vote
1 answer

How do I create an `ffi_type` that represents a union?

I'm using libffi to call a function that expects a union type argument. I'm not sure exactly what the rules are for creating an ffi_type struct describing a union type. For example, if I have this: union Vector4 { struct { float x, y, z, w; }; …
nielsbot
  • 15,922
  • 4
  • 48
  • 73
1
vote
1 answer

Io does not compile on Mac OS X Snow Leopard

I followed the instructions in the README, they are very simple cd build cmake .. make install The problem occurs after the make install command. Io will not compile, specifically because of the module CFFI. ld complains that my libffi.dylib is not…
salvador p
  • 2,905
  • 5
  • 26
  • 26
1
vote
1 answer

Can not install Paramiko in Cent OS

Recently I am trying to learn python and write some scripts during work. However I found my python is not update to date. So I upgrade from 2.6 to 2.7.6 following some guide from network. After that the python, pip and easy_install seems all okay.…
Martin Peng
  • 87
  • 1
  • 9
1
vote
1 answer

How to use libffi on iOS

I am trying to use libffi (https://github.com/libffi/libffi) to create functions at runtime in iOS. However, I am not sure on how to import it to Xcode or how to even get started with the library. libffi-iOS project was last updated some 3 years…
prabodhprakash
  • 3,825
  • 24
  • 48
1
vote
1 answer

Build glib from source

Good morning, I'm trying to build glib from source, but nevertheless several attempts always get this error: make[4]: *** No rule to make target `gobject.stp.in', needed by `gobject.stp'. Stop. I'm using these commands: ./configure…
1
vote
1 answer

Intel Compiler and Python/ctypes/libffi

I am having trouble building a working version of Python with ctypes using the Intel Compiler (11.1). The trouble is, that libffi under the ctypes module does not work properly when interfacing with e.g. OpenGL. Originally, libffi did not compile…
Dan
  • 1,258
  • 1
  • 10
  • 22
1
vote
1 answer

can't install cffi on fedora23 workstation

I'm Trying to install cffi on fedora23 workstation using pip3. but m getting following error. pip3 install cffi Collecting cffi Using cached cffi-1.4.2.tar.gz Complete output from command python setup.py egg_info: Package libffi was not found…
girish946
  • 745
  • 9
  • 24
1
vote
1 answer

Does iPhone libffi require jailbreak?

I'd like to write an app-store-approvable app for the iPhone OS which uses libffi. Is this allowed? I am capable of rewriting all of the parts that use it with things like NSInvocation without too much trouble, but would prefer libffi. So my…
Jared Pochtar
  • 4,925
  • 2
  • 29
  • 39