This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building libffi with MSVC


Ohh good catch John! Looks like I didn't define the default
"target_arch" variable in the correct place. I've updated the gyp file
in the GitHub repo. Alternatively you can define the variable on the
command line doing:

  $ gyp\gyp.bat -f msvs -G msvs_version=2010 -Dtarget_arch=ia32
--depth=. libffi.gyp

On Tue, Dec 11, 2012 at 9:33 AM, John Emmas <johne53@tiscali.co.uk> wrote:
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]