phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.83k stars 200 forks source link

Compiling v8js on windows #24

Closed ravinGit closed 9 years ago

ravinGit commented 11 years ago

Hi, I'm trying to compile v8js for my php on a windows platform, but so far failed. I don't much experience of compiling from source, can a guide be created for compiling V8js on windows?

satoshi75nakamoto commented 10 years ago

@ravinGit — I'll try to get to this soon. Thanks for raising the issue.

satoshi75nakamoto commented 10 years ago

@stesie and @cscott — Do either of you have a Windows environment for testing?

stesie commented 10 years ago

@preillyme - no, I don't

cscott commented 10 years ago

Me neither. On Oct 29, 2013 5:35 AM, "Stefan Siegl" notifications@github.com wrote:

@preillyme https://github.com/preillyme - no, I don't

— Reply to this email directly or view it on GitHubhttps://github.com/preillyme/v8js/issues/24#issuecomment-27288667 .

ch1902 commented 10 years ago

If this helps here's a log of my console on Windows 8 64-bit building the latest php_v8js from github against PHP 5.5.12 and using the latest v8 headers from github. There's also build logs on the PECL Windows site but they aren't using the latest code.

[Edit] I didn't realise the defines in config.w32 needed changing, after fixing those and the variadic macro error, the only errors left building are

C:\dev\php-sdk\phpdev\vc11\x86\5.5.12>nmake

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Recreating build dirs
Recreating build dirs
        type ext\pcre\php_pcre.def > C:\dev\php-sdk\phpdev\vc11\x86\obj\Release_TS\php5ts.dll.def
v8js.cc
..\pecl\v8js\v8js.cc(68) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
..\pecl\v8js\v8js.cc(323) : warning C4101: 'retval' : unreferenced local variable
..\pecl\v8js\v8js.cc(431) : error C2057: expected constant expression
..\pecl\v8js\v8js.cc(431) : error C2466: cannot allocate an array of constant size 0
..\pecl\v8js\v8js.cc(431) : error C2133: 'jsArgv' : unknown size
..\pecl\v8js\v8js.cc(1033) : warning C4018: '>' : signed/unsigned mismatch
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
stesie commented 9 years ago

Because of #123 I now stepped up and clicked myself some Windows instances on Amazon EC2 and tried getting v8 & v8js to run with Visual Studio 2013.

V8Js' Windows build system is way neglected and rustic; but I can now reproduce the above problems and will look after them soonish

(I probably should integrate the Amazon AMI with Jenkins then, let's see)

cheers ~stesie