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


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
  $ msbuild libffi.sln
  $ Debug\test.exe

Cheers!

On Sun, Dec 9, 2012 at 11:35 PM, John Emmas <johne53@tiscali.co.uk> wrote:
> On 9 Dec 2012, at 19:00, Nathan Rajlich wrote:
>
> Hey John,
>
> Read again, gyp generates MS Visual Studio (MSVS) project files. I was
> specifying how the resulting project files *would not* need Cygwin or
> MSYS, which is what it sounded like you wanted.
>
> As for how to install gyp, it's a Python project from Google. You need
> Python 2.6 or 2.7 (not 3 though) and just check out the svn repo.
>
>
> Hi Nathan.  You're right...  I must have mis-read "MSYS" instead of MSVS".
> Time to get some new reading glasses!
>
> At the moment I'm running both Python 2.7 and Python 3.1 (in separate
> folders) and I already have SVN installed, so it should be pretty trivial to
> install and try gyp.  I'm only confused about these instructions in
> libffi.gyp:-
>
> # To build try this:
> #   svn co http://gyp.googlecode.com/svn/trunk gyp
> #   ./gyp/gyp -f make --depth=`pwd` libffi.gyp
> #   make
> #   ./out/Debug/test
>
>
> They look like *nix commands and there still seems to be a dependency on
> 'make' and also a reference to Cygwin (further down the file).  So how do
> you use libffi.gyp, Nathan?  Are you running it entirely on Windows or are
> you running it on Linux and then transferring the finished VCPROJ file to a
> Windows system?
>
> John


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