How do I compile the javascript v8 engine in ubuntu 16.10?

1

I am trying to compile javascript v8 in ubuntu 16.10 but I could not, I searched in google and not only found it compile it with scons and with GYP , but apparently it is no longer possible to use GYP , I found how to compile it using gn but I could not do it.

I have already downloaded v8.git and depot_tools , I have a directory called v8 in which I have the directories v8 and depot_tools with their respective content.

In the compilation instructions of v8 , it says to execute:

$ gclient sync

When I execute that, the terminal returns this error:

Error: client not configured; see 'gclient config'

I really do not know how to set gclient .

    
asked by ftorres 14.12.2016 в 21:43
source

2 answers

0

Install nodeJs, it already includes V8 in its compiler

  

sudo apt-get install nodejs

    
answered by 14.12.2016 в 22:18
-1

by following the steps in link

  

install depot tools

~/Code > git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  

add depot tools to the path

~/Code > pwd
/home/alejandro/Code
~/Code > export PATH=$PATH:/home/alejandro/Code/depot_tools
  

Do not simply git clone the V8 repository!

~/Code > fetch v8
~/Code > cd v8
~/Code/v8 > gclient sync

In linux only once, install and generate dependencies (you can ask for sudo key)

~/Code/v8 > ./build/install-build-deps.sh

If this step gives error for unstable network, run fix-missing and repeat:

~/Code/v8 > sudo apt-get update --fix-missing
~/Code/v8 > ./build/install-build-deps.sh

Generate build files

~/Code/v8 > tools/dev/v8gen.py x64.release

Then to compile:

~/Code/v8 > ninja -C out.gn/x64.release

Run the tests:

~/Code/v8 > tools/run-tests.py --gn
    
answered by 23.07.2018 в 02:22