Google V8编程详解(一)V8的编译安装(Ubuntu)
V8的编译比较简单,需要同时安装git和svn.
下载V8源码:
[html] view plaincopyprint?
git clone git://github.com/v8/v8.git v8 && cd v8
切换到最新版本:
[cpp] view plaincopyprint?
git pull --rebase origin master
安装依赖:
[cpp] view plaincopyprint?
make dependencies
编译:
[cpp] view plaincopyprint?
make native mode=debug library=shared snapshot=on
编译后库文件会在v8/out/ia32.release路径下
V8的Makefile不支持make install.所以手动把out/ia32.release/lib.target/libv8.so复制到/usr/lib下即可。