构建android源代码树时出错python2.7或chrome

时间:2013-12-18 05:11:17

标签: android python chromium

我按照谷歌的指南用fedora 19 64bit构建android源码树。我遇到了“make -j4”步骤中遇到错误的麻烦:

Traceback (most recent call last):
  File "../build/android/gyp/gcc_preprocess.py", line 50, in <module>
    sys.exit(main(sys.argv))
  File "../build/android/gyp/gcc_preprocess.py", line 43, in main
    DoGcc(options)
  File "../build/android/gyp/gcc_preprocess.py", line 28, in DoGcc
    build_utils.CheckCallDie(gcc_cmd)
  File "/home/hieptv/WORKING_DIRECTORY/external/chromium_org/build/android/gyp/util/build_utils.py", line 91, in CheckCallDie
    stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=cwd)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/generic/obj/GYP/shared_intermediates/templates/org/chromium/base/ActivityState.java] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/generic/obj/GYP/shared_intermediates/templates/org/chromium/base/MemoryPressureLevelList.java] Error 1
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

将提供任何帮助。感谢

1 个答案:

答案 0 :(得分:1)

只安装gcc包是不够的,提供包已经安装了gcc-4,检查/ usr / bin / gcc是否存在,通常它是一个指向/usr/bin/gcc-4.4的链接文件。类似地,还需要一个指向g ++ - 4.4的链接文件/ usr / bin / g ++