Please make sure you are following the installing libffi instructions released on the TBD or git project: https://github.com/libffi/libffi
Here some of the main Highlights:
First you must configure the distribution for your particular
system. Go to the directory you wish to build libffi in and run the
"configure" program found in the root directory of the libffi source
distribution.
If you're building libffi directly from version control, configure won't
exist yet; run ./autogen.sh
first.
You may want to tell configure where to install the libffi library and
header files. To do that, use the --prefix
configure switch. Libffi
will install under /usr/local
by default.
If you want to enable extra run-time debugging checks use the the
--enable-debug
configure switch. This is useful when your program dies
mysteriously while using libffi.
Another useful configure switch is --enable-purify-safety
. Using this
will add some extra code which will suppress certain warnings when you
are using Purify with libffi. Only use this switch when using
Purify, as it will slow down the library.
For iOS builds, the 'libffi.xcodeproj
' Xcode project is available.
Configure has many other options. Use "configure --help
" to see them all.
Once configure has finished, type "make
". Note that you must be using
GNU make. You can ftp GNU make from ftp.gnu.org:/pub/gnu/make
.
To ensure that libffi is working as advertised, type "make check
".
This will require that you have DejaGNU
installed.
To install the library and header files, type "make install
".
Alternatively, try merging one of the following git projects to your project in order to include the missing files. Please make sure the files are not outdated before merging.
1 https://github.com/pandamonia/libffi-iOS
2 https://github.com/influitive/libffi-iOS
3 https://github.com/landonf/libffi-ios