我已经下载了 chromium-browser 的源代码。另外:
apt-get source chromium-browser
sudo apt install build-essential
sudo apt-get build-dep chromium-browser
我已经安装了库(以及更多):
sudo apt install cmake ninja-build clang-6.0 libglu1-mesa-dev libc++-dev libc++abi-dev libxi-dev
dpkg-buildpackage -rfakeroot -uc -b
失败:
fatal error: 'memory' file not found
...
fatal error: 'iosfwd' file not found
...
fatal error: 'vector' file not found
...
fatal error: 'map' file not found
#include <map>
^~~~~
1 error generated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "tools/gn/bootstrap/bootstrap.py", line 96, in <module>
这只是一个标准库文件,出了什么问题?
完整构建输出:https://paste.ubuntu.com/p/54v5CwW3qD/
clang++ -v test.cpp 显示它似乎正在寻找 libstdc++-8-dev 的 v8 答案:我安装了包 g++-8 和 libstdc++-8-dev
然后就构建成功了。