Ready for use V8 build for Win 32-bit

174 views
Skip to first unread message

treck

unread,
Jun 14, 2015, 9:04:28 AM6/14/15
to v8-u...@googlegroups.com
I need to use v8 engine for my C++ project. Could someone share  here ready for use binaries for platform Windows 32-bit? I tried compile it myself but i get error. If someone is cuirious this error it's here (my platform Windows 7 64-bit) :
python.exe build\gyp_v8 -Dtarget=ia32 -Dcomponent=shared_library
Updating projects from gyp files...
 
File "<string>", line 1
   
import sys; print sys.byteorder
                       
^
SyntaxError: invalid syntax
gyp
: Call to 'python -c "import sys; print sys.byteorder"' returned exit status
1.

Thanks in advance.

Caitlin Potter

unread,
Jun 14, 2015, 9:09:02 AM6/14/15
to v8-u...@googlegroups.com
Google groups decided to put my answer in a different thread =) It looks like you have Python 3.x installed, which changed various things. The V8 scripts work with Python 2.x, so I suggest installing https://www.python.org/download/releases/2.7.6/ and trying again.

treck

unread,
Jun 14, 2015, 4:50:55 PM6/14/15
to v8-u...@googlegroups.com
Thanks, it was problem with version of my Python.
I tried compile it using my Visual Studio 2012 and it failed so I used MinGW to compile v8 but it failed too... i get such error (i replaced some parts of paths with (...) ) :
$ make ia32.release -j8
PYTHONPATH
="/e/(...)/v8/tools/generate_shim_headers:/e/(...)/v8/build::/e/(...)/v8/build
/gyp/pylib:"
\
        GYP_GENERATORS
=make \
        build
/gyp/gyp --generator-output="out" build/all.gyp \
                     
-Ibuild/standalone.gypi --depth=. \
                     
-Dv8_target_arch=ia32 \
                       
\
                       
\
                     
-S.ia32.release  -Dv8_enable_backtrace=1 -Darm_fpu=default
 
-Darm_float_abi=default
make
[1]: Entering directory `/e/(...)/v8/out'
make[1]: *** No rule to make target `
../tools\parser-shell.gyp', needed by `Make
file.ia32.release'
.  Stop.
make
[1]: Leaving directory `/e/(...)/v8/out'
make: *** [ia32.release] Error 2

Ben Noordhuis

unread,
Jun 14, 2015, 5:29:34 PM6/14/15
to v8-u...@googlegroups.com
On Sun, Jun 14, 2015 at 10:50 PM, treck <piot...@gmail.com> wrote:
> Thanks, it was problem with version of my Python.
> I tried compile it using my Visual Studio 2012 and it failed so I used MinGW
> to compile v8 but it failed too... i get such error (i replaced some parts
> of paths with (...) ) :
> $ make ia32.release -j8
> PYTHONPATH="/e/(...)/v8/tools/generate_shim_headers:/e/(...)/v8/build::/e/(...)/v8/build
> /gyp/pylib:" \
> GYP_GENERATORS=make \
> build/gyp/gyp --generator-output="out" build/all.gyp \
> -Ibuild/standalone.gypi --depth=. \
> -Dv8_target_arch=ia32 \
> \
> \
> -S.ia32.release -Dv8_enable_backtrace=1
> -Darm_fpu=default
> -Darm_float_abi=default
> make[1]: Entering directory `/e/(...)/v8/out'
> make[1]: *** No rule to make target `../tools\parser-shell.gyp', needed by
> `Make
> file.ia32.release'. Stop.
> make[1]: Leaving directory `/e/(...)/v8/out'
> make: *** [ia32.release] Error 2

You need VS 2013, V8 is a C++11 project. VS 2015 should work as well,
I think, but MinGW is not supported.

treck

unread,
Jun 16, 2015, 7:01:42 AM6/16/15
to v8-u...@googlegroups.com
I compiled it in VS 2013 and I got a lot of warnings. I tried build hello world program from https://developers.google.com/v8/get_started in VS 2013 and it crashes with Access violation error: http://i.imgur.com/ohBpbLY.png http://i.imgur.com/qvJUMmT.png

Here are warnings produced while building:
E:\(...)\v8-new\v8>msbuild /p:Configuration=Release /p:Platform
=Win32 tools\gyp\v8.sln

Build succeeded.

"E:\(...)\v8-new\v8\tools\gyp\v8.sln" (default target) (1) ->
"E:\(...)\v8-new\v8\third_party\icu\icui18n.vcxproj" (default
target
) (3) ->
(ClCompile target) ->
  source
\i18n\collationfastlatinbuilder.cpp(627): warning C4244: 'initializing'
 
: conversion from 'int64_t' to 'int32_t', possible loss of data [E:\STUDIA\Pra
ca_dyplomowa
\v8-new\v8\third_party\icu\icui18n.vcxproj]
  source
\i18n\filteredbrk.cpp(237): warning C4244: '=' : conversion from 'int64
_t'
to 'int32_t', possible loss of data [E:\(...)\v8-new\v8\th
ird_party
\icu\icui18n.vcxproj]
  source
\i18n\filteredbrk.cpp(246): warning C4244: '=' : conversion from 'int64
_t'
to 'int32_t', possible loss of data [E:\(...)\v8-new\v8\th
ird_party
\icu\icui18n.vcxproj]


"E:\(...)\v8-new\v8\tools\gyp\v8.sln" (default target) (1) ->
"E:\(...)\v8-new\v8\tools\gyp\..\..\third_party\icu\icuuc.vcxp
roj.metaproj"
(default target) (10) ->
"E:\(...)\v8-new\v8\third_party\icu\icuuc.vcxproj" (default ta
rget
) (11) ->
  source
\common\dictbe.cpp(73): warning C4244: '=' : conversion from 'int64_t'
to
'int32_t', possible loss of data [E:\(...)\v8-new\v8\third_
party
\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(79): warning C4244: '=' : conversion from 'int64_t'
to
'int32_t', possible loss of data [E:\(...)\v8-new\v8\third_
party
\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(338): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(340): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(393): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(395): warning C4244: '+=' : conversion from 'int64_t
'
to 'int32_t', possible loss of data [E:\(...)\v8-new\v8\thir
d_party
\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(407): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(409): warning C4244: '+=' : conversion from 'int64_t
'
to 'int32_t', possible loss of data [E:\(...)\v8-new\v8\thir
d_party
\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(571): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(573): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(764): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(766): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(970): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(972): warning C4244: 'initializing' : conversion fro
m
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-n
ew
\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(1169): warning C4244: '=' : conversion from 'int64_t
'
to 'int32_t', possible loss of data [E:\(...)\v8-new\v8\thir
d_party
\icu\icuuc.vcxproj]
  source
\common\dictbe.cpp(1174): warning C4244: 'initializing' : conversion fr
om
'int64_t' to 'int32_t', possible loss of data [E:\(...)\v8-
new\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictionarydata.cpp(48): warning C4244: 'initializing' : convers
ion
from 'int64_t' to 'int32_t', possible loss of data [E:\STUDIA\Praca_dyplomo
wa
\v8-new\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictionarydata.cpp(54): warning C4244: 'initializing' : convers
ion
from 'int64_t' to 'int32_t', possible loss of data [E:\STUDIA\Praca_dyplomo
wa
\v8-new\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictionarydata.cpp(115): warning C4244: 'initializing' : conver
sion
from 'int64_t' to 'int32_t', possible loss of data [E:\STUDIA\Praca_dyplom
owa
\v8-new\v8\third_party\icu\icuuc.vcxproj]
  source
\common\dictionarydata.cpp(121): warning C4244: 'initializing' : conver
sion
from 'int64_t' to 'int32_t', possible loss of data [E:\STUDIA\Praca_dyplom
owa
\v8-new\v8\third_party\icu\icuuc.vcxproj]
  source
\common\rbbi.cpp(718): warning C4244: '=' : conversion from 'int64_t' t
o
'int32_t', possible loss of data [E:\(...)\v8-new\v8\third_p
arty
\icu\icuuc.vcxproj]
  source
\common\rbbi.cpp(829): warning C4244: '=' : conversion from 'int64_t' t
o
'int32_t', possible loss of data [E:\(...)\v8-new\v8\third_p
arty
\icu\icuuc.vcxproj]

   
25 Warning(s)
   
0 Error(s)

treck

unread,
Jun 16, 2015, 7:14:01 AM6/16/15
to v8-u...@googlegroups.com
...

Sven Panne

unread,
Jun 16, 2015, 7:22:39 AM6/16/15
to v8-u...@googlegroups.com
On Tue, Jun 16, 2015 at 1:14 PM, treck <piot...@gmail.com> wrote:


Regarding the warnings: v8 itself is warning-free (checked on our build bots), the warnings you see are triggered by the ICU library, which we just pull in (like everything under v8/third_party).
Reply all
Reply to author
Forward
0 new messages