我正在使用命令編譯時,我的mozilla編譯失敗。我只使用mozilla的默認代碼。在編譯Mozilla Firefox時創建./config.data失敗
mach build
與followig錯誤
2:39.43 creating ./config.data
2:46.33
2:53.91
2:54.26 Creating config.status
2:54.26 Traceback (most recent call last):
2:54.26 File "c:/mozilla-source/mozilla-central/configure.py", line 124, in <module>
2:54.26 sys.exit(main(sys.argv))
2:54.26 File "c:/mozilla-source/mozilla-central/configure.py", line 34, in main
2:54.26 return config_status(config)
2:54.26 File "c:/mozilla-source/mozilla-central/configure.py", line 109, in config_status
2:54.26 from mozbuild.config_status import config_status
2:54.26 File "c:\mozilla-source\mozilla-central\python\mozbuild\mozbuild\config_status.py", line 21, in <module>
2:54.26 from mozbuild.base import MachCommandConditions
2:54.26 File "c:\mozilla-source\mozilla-central\python\mozbuild\mozbuild\base.py", line 17, in <module>
2:54.26 from mach.mixin.process import ProcessExecutionMixin
2:54.26 File "c:\mozilla-source\mozilla-central\python\mach\mach\mixin\process.py", line 14, in <module>
2:54.26 from mozprocess.processhandler import ProcessHandlerMixin
2:54.26 ImportError: No module named mozprocess.processhandler
2:54.37 *** Fix above errors and then restart with\
2:54.37 "c:/mozilla-build/mozmake/mozmake.EXE -f client.mk build"
2:54.39 c:/mozilla-source/mozilla-central/client.mk:379: recipe for target 'configure' failed
2:54.39 mozmake.EXE[2]: *** [configure] Error 1
2:54.39 c:/mozilla-source/mozilla-central/client.mk:396: recipe for target 'c:/mozilla-source/mozilla-central/obj-i686-pc-mingw32/Makefile' failed
2:54.39 mozmake.EXE[1]: *** [c:/mozilla-source/mozilla-central/obj-i686-pc-mingw32/Makefile] Error 2
2:54.39 client.mk:170: recipe for target 'build' failed
2:54.39 mozmake.EXE: *** [build] Error 2
2:54.41 0 compiler warnings present.
2
下面一行是給錯誤
if config.get('MOZ_BUILD_APP') != 'js' or config.get('JS_STANDALONE'):
os.environ[b'WRITE_MOZINFO'] = b'1'
from mozbuild.config_status import config_status
如何解決這個問題之一。
這實在不太可能,你需要手動做到這一點。您可能會錯過一些預處理步驟,如調用「./mach bootstrap」。 – Dexter
我已經完成了所有步驟,但stil該文件夾從python目錄中丟失。 –