This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Building libffi with MSVC
Hey John,
I maintain node-ffi, a node.js wrapper for libffi. For that we use the
GYP build system, which produces MSVS project files. It may be able to
suit your needs without getting Cygwin or MSYS involved. The GYP file
is here: https://github.com/rbranson/node-ffi/blob/master/deps/libffi/libffi.gyp
Cheers!
On Wed, Dec 5, 2012 at 8:58 PM, John Emmas <johne53@tiscali.co.uk> wrote:
>
> On 5 Dec 2012, at 23:13, Peter Rosin wrote:
>
>>
>> I made some notes in:
>> http://sourceware.org/ml/libffi-discuss/2012/msg00144.html
>>
>
> Thanks Peter,
>
> That all looks 'do-able' - given enough time. In the meantime though, is there anywhere where I can obtain a 'dev' version for MSVC? i.e. the usual import lib, DLL and header files? I tried the 'cheap & dirty' approach of downloading the standard (MinGW?) dev version and simply renaming libffi.dll.a and calling it libffi.lib. Often that does work (well, at least enough to get me started) but it didn't work in this case (the various symbols weren't recognised by MSVC's linker).
>
> I do have some experience with Cygwin as well as TDM-GCC (a version of MinGW, I'm led to believe) but I haven't yet encountered MSYS.
>
> I'm sure this'll sound like a dumb question - but since the 'configure' shell gets provided by MSYS, why is there any need to involve Cygwin in the process? Surely MSYS and TDM-GCC would suffice?
>
> John