Building libffi with MSVC

John Emmas johne53@tiscali.co.uk
Tue Dec 11 17:34:00 GMT 2012


On 10 Dec 2012, at 19:47, Nathan Rajlich wrote:

> Yes those instructions at the top are for a Unix system. For Windows,
> try something like this:
> 
>  $ svn co http://gyp.googlecode.com/svn/trunk gyp
>  $ gyp\gyp.bat -f msvs -G msvs_version=2010 --depth=. libffi.gyp
> 

Thanks Nathan,

I installed gyp from subversion (as above), checked that I was using Python 2.7 and placed libffi.gyp into my main 'ffi' folder (in my particular case, F:\+GTK-SOURCES\gnu-win32\src\libffi).  I then ran the 2nd of the above lines (gyp.bat etc) and I received this error:-

gyp: name 'target_arch' is not defined while evaluating condition 'target_arch== "ia32"'
in libffi.gyp while trying to load libffi.gyp

Does that indicate any obvious problem?

John



More information about the Libffi-discuss mailing list