[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

Building s8vm for Linux

Install a Linux distro (In this case the examples where generated using Debian 7.7.0 "Wheezy")


In a terminal, execute the following lines:

  1. sudo apt-get update
  2. sudo apt-get install build-essential
  3. sudo apt-get install g++-multilib
  4. sudo apt-get install subversion

Download the V8 VM and install dependencies

We actually use SVN versión (Google announced they are moving to Git)
You can download the source code of v8 using this command:

  1. svn checkout http://v8.googlecode.com/svn/trunk/ v8


See Instructions to build V8 here.

Build V8 Project files (with GYP)

See Instruccions to build using GYP here

Edit the Samples spec

      {
      'target_name': 's8vm',
      'type': 'executable',
      'dependencies': [
        '../tools/gyp/v8.gyp:v8',
      ],
      'sources': [
        's8vm.cc'
      ],
      'msvs_disabled_warnings': [4018],
      },


Instruccions to build using GYP:

Beeing in the folder where you have donwnloaded v8 build the VM (This time we gonna build a stripped version of the releases. see V8 forum topic about the size of the building)
ej:


If you want to build for all the architectures in all the versions (debug o release) execute:



Use the executable "s8vm.exe" stored in (deppending in the architecture selected and the mode), ej: