I’m trying to build the Chrome V8 javascript engine so I can embed it into my c++ project. I’m following the tutorial here. I downloaded everything that was needed and managed to get the project solution created but when I compile it only 5 of the 12 solutions get compiled correctly. Can someone shed some light on my problem? There doesn’t seem to be much info on the web about it.
Share
Some tricks I learned are this:
use the correct
gypcommand that will generate correct sln files. maybe target architecture argument was wrong or some other parameter you supply to gyp.I do not know how to properly “
clean” the source tree, so if I wanted new options to gyp I just delete the whole source tree and unpack from original archive. (or usesvn).Make sure you use
pythonandcygwinsupplied with v8 sources.I used pc emulator (
qemu) to install Windows XP + Visual studio and v8 sources+tools.I tried various versions of Visual Studio only VS Express 2010 worked.
On
linuxeverything is simpler. And you do not even need to build it, just use “aptitude install v8-dev“