我正在尝试在ubuntu 14.04上构建arc但是我收到以下错误:
➜ arc git:(master) ✗ ./configure
Traceback (most recent call last):
File "src/build/configure.py", line 17, in <module>
import config_loader
File "/home/ligi/git/3rd/arc/src/build/config_loader.py", line 125, in <module>
load_from(paths)
File "/home/ligi/git/3rd/arc/src/build/config_loader.py", line 96, in load_from
config_module = imp.load_source(module_name, path_name, config_file)
File "/home/ligi/git/3rd/arc/mods/android/bionic/config.py", line 13, in <module>
import make_to_ninja
File "/home/ligi/git/3rd/arc/src/build/make_to_ninja.py", line 19, in <module>
import ninja_generator
File "/home/ligi/git/3rd/arc/src/build/ninja_generator.py", line 34, in <module>
import ninja_syntax
ImportError: No module named ninja_syntax
我正在按照自述文件中的建议运行install-build-deps脚本:
➜ arc git:(master) ✗ ./src/build/install-build-deps.sh # Ubuntu 14.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-arm-linux-gnueabihf is already the newest version.
gcc-arm-linux-gnueabihf is already the newest version.
libcap-dev is already the newest version.
libtinfo5 is already the newest version.
python-markdown is already the newest version.
pbzip2 is already the newest version.
pigz is already the newest version.
libasound2:i386 is already the newest version.
libcairo2:i386 is already the newest version.
libcap2:i386 is already the newest version.
libgconf-2-4:i386 is already the newest version.
libglib2.0-0:i386 is already the newest version.
libncurses5:i386 is already the newest version.
libpango1.0-0:i386 is already the newest version.
libtinfo5:i386 is already the newest version.
libxcomposite1:i386 is already the newest version.
libxcursor1:i386 is already the newest version.
libxdamage1:i386 is already the newest version.
libxi6:i386 is already the newest version.
libxinerama1:i386 is already the newest version.
libxrandr2:i386 is already the newest version.
libxss1:i386 is already the newest version.
libxtst6:i386 is already the newest version.
libc6-dev-i386 is already the newest version.
libosmesa6 is already the newest version.
openjdk-6-jdk is already the newest version.
libcups2:i386 is already the newest version.
libfontconfig1:i386 is already the newest version.
libgl1-mesa-dev:i386 is already the newest version.
libgtk2.0-0:i386 is already the newest version.
libnss3:i386 is already the newest version.
libosmesa6:i386 is already the newest version.
libudev1:i386 is already the newest version.
linux-libc-dev:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
depot_tools也在我的路径中:
➜ 3rd ninja
ninja: error: loading 'build.ninja': No such file or directory
➜ 3rd which ninja
/home/ligi/git/3rd/depot_tools/ninja
我被困在这里 - 而谷歌没有击中&#34; ImportError:没有名为ninja_syntax的模块&#34; ;-)
答案 0 :(得分:0)
我有一个类似的问题,只是试图运行launch_chrome.py
脚本,并注意到脚本都假定third-party/tools/ninja
有一些内容。鉴于它是空的,我得出结论,必须是一个git子模块,所以简单的git clone
不会把这些来源拉进来。
如果您已经有了工作目录,可以通过执行(在工作副本的根目录下)来初始化/更新其子模块:
git submodule update --init --recursive
那应该把所有东西都拉进去。你也可以通过执行git clone --recursive https://chromium.googlesource.com/arc/arc
来克隆已经通过它拉动所有子模块的仓库。