Build PhantomJS from Source
Getting the Code To obtain the code using Git from the official repository github.com/ariya/phantomjs: git clone git://github.com/ariya/phantomjs.git cd phantomjs git checkout 2.1.1 git submodule init git submodule update Compile and Link From the code checkout: python build.py
在ARM下编译遇到的问题如下:
解决方法:
打开 src/qt/qtbase/src/gui/Makefile
把-O3改成-O2即可