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
0
votes
1 answer

Error trying to `#require "ctypes.foreign";;` in utop on Windows (Cygwin)

I managed to install and run OCaml + OPAM + utop on Windows (in Cygwin) thanks to the awesome guide by Jonathan Protzenko. In utop, I especially want to be able to use ctypes + ctypes.foreign to quickly experiment and prototype accessing various…
akavel
  • 4,789
  • 1
  • 35
  • 66
0
votes
1 answer

Issue installing mitmproxy using pip on Amazon EC2 instance (CentOS)

I am trying to install mitproxy on my EC2 linux instance using pip: sudo pip install mitmproxy I have python2.7 installed, and now 2 instances of libffi $ rpm -qa | grep libff libffi-3.0.13-11.4.amzn1.x86_64 libffi-devel-3.0.13-11.4.amzn1.x86_64 but…
nick_j_white
  • 534
  • 6
  • 27
0
votes
1 answer

Swizzling of a function - and function known at runtime only

I want to swizzle a function in objective-c. The problem is that - I know the function that needs to be swizzled only at runtime. Now different methods in the code will have different return types, input params etc. How should I write a (generic)…
prabodhprakash
  • 3,825
  • 24
  • 48
0
votes
1 answer

compile libffi as static library on raspberry pi

I'm trying to compile static library of libffi-3.2.1 with no success. cd libffi-3.2.1 ./configure --prefix=/home/pi/libraries/libffi --enable-static --disable-shared make make output as follow: MAKE armv6l-unknown-linux-gnueabihf : 0 *…
teach me
  • 453
  • 5
  • 20
0
votes
2 answers

Cannot build libffi custom buildpack in Heroku

Have researched this and came across Problems with custom LIBFFI Heroku buildpack, where they suggest a forked libffi buildpack. But even after following the directions there, can't seem to get it to compile properly. It fails with a number of No…
HanSooloo
  • 713
  • 2
  • 7
  • 20
0
votes
1 answer

Can libffi be used for Python and Java to communicate?

I'm wondering if it is possible for an app to run in Python and call Java methods (and vice versa) through libffi?
zcaudate
  • 13,998
  • 7
  • 64
  • 124
0
votes
0 answers

libffi not invoking the function

I am using libffi to call a function. but it is not invoking the same, Also i am not getting any errors. I am expecting a float value as return but it is returning as 0.0000. I am sure that it is not the return value expected(tried hardcoding). if…
A R
  • 2,697
  • 3
  • 21
  • 38
0
votes
1 answer

NULL in a RubyCocoa application?

I'm creating an application in RubyCocoa and I have this code: fileContents = OSX::NSAttributedString.alloc.initWithData_options_documentAttributes_error_(data, null, null, outError) It gives me this error: 2009-12-31 19:42:54.317 Ruby…
user142019
0
votes
2 answers

Find libffi header files with CMake

I require libffi to build my C++ project. The problem is that there exists no premade script to find libffi and ffi.h is located at strange locations depending on the version of the library and the Linux distribution. The is my attempt: # Look for…
Ethon
  • 93
  • 2
  • 12
1 2 3 4 5
6