经常出现以下两种错误
/usr/bin/ld.bfd.real: cannot find -lGL
/usr/bin/ld.bfd.real: cannot find -lX11
主要是少装了一些东西
$ sudo apt-get install libx11-dev:i386(libX11.so)
libgl1-mesa-glx-lts-(?):i386,?根据ubuntu的版本: eg:Quantal,Raring,Saucy,Trusty。
安装完成之后再加个软连接
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/i386-linux-gnu/libGL.so
错误2:
target Generated: libwebcore <= external/webkit/Source/WebCore/html/DocTypeStrings.gperf
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp]
解决办法:sudo apt-get install libswitch-perl