V8的编译比较简单,需要同时安装git和svn.

下载V8源码:

 

  1. git clone git://github.com/v8/v8.git v8 && cd v8  

切换到最新版本:

 

 

  1. git pull --rebase origin master  

安装依赖:

 

  1. make dependencies  


编译:

 

 

  1. 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下即可。

 

 

 

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-05-15
  • 2022-12-23
猜你喜欢
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案