无法在Windows中从git建立gaia.得到"Makefile:671:目标'首选项'的配方失败". [英] Unable to build gaia from git in windows. Getting "Makefile:671: recipe for target 'preferences' failed"
问题描述
我正在尝试从Windows中的git repo构建和部署gaia构建.我正在尝试将其部署在অFlame中. 我正在尝试在安装了cygwin的Windows 7中执行此操作.安装完所有内容后,这就是我得到的错误
I am trying to build and deploy a gaia build from git repo in Windows. I am trying to deploy it in অ Flame. I am trying to do it in a windows 7 with cygwin installed. After installing everything this is the error I am getting
这在Linux机器上可以正常工作,但是由于我现在只能访问它,因此我需要在Windows中执行此操作.
This works just fine in a Linux machine, but I need to do this in Windows since right now I have access to it only.
这里有任何指向我做错事情的指针吗?
Any pointers to what I am doing wrong here?
推荐答案
我也尝试使用cygwin,但是无法在Windows上构建gaia源代码.
I also tried with cygwin, but was unable to build the gaia source code on windows.
在Windows上构建gaia源代码并非易事.请按照以下步骤操作:-
It's not straightforward to build the gaia source code on windows. Please follow these steps:-
- 从 MozillaBuild-Mozilla Wiki 下载Mozilla Build,然后将工具安装在
c:/mozilla-build
中(首选).它包含构建gaia源代码所需的所有内容(make,wget,python等). - 运行
start-shell.bat
.如果此批处理文件的构建过程失败,则如果具有Visual Studio 2013,则运行start-shell-msvc2013.bat
;如果具有Visual Studio 2015,则运行start-shell-msvc2015.bat
.(您需要
- Download Mozilla Build from MozillaBuild - Mozilla Wiki and install the tools in
c:/mozilla-build
(preferred). It includes everything (make, wget, python etc) you need to build gaia source code. - Run
start-shell.bat
. If build process failed with this batch file then runstart-shell-msvc2013.bat
if you have Visual Studio 2013 orstart-shell-msvc2015.bat
if you have Visual Studio 2015. (You need Visual Studio for the second step). - Browse to the gaia source code directory using the command
cd Mozilla/gaia
. - Run
DEVICE_DEBUG=1 make
command. Don't runDEVICE=1 make
ormake
command (because you won't be able to debug the apps, I was able to connect to theFirefox OS 2.2
but was not able to debug the apps when I ran these commands). - If you are running this command for the first time, it will download the
b2g_sdk
otherwise it will create a folderprofile
with your custom profile. - Open the
WEBIDE
using Firefox (Nightly preferred) and point to theprofile
folder you just created.
链接供您参考:-
- https://developer.mozilla.org/zh-CN/docs/Mozilla/Firefox_OS/Developing_Gaia
- https://developer.mozilla.org/zh-CN/Firefox_OS/Developing_Gaia/Different_ways_to_run_Gaia
https://developer.mozilla.org/zh-CN/docs/Tools/WebIDE/问题排查 - https://developer.mozilla.org/zh-CN/Firefox_OS/Developing_Gaia/Making_Gaia_code_changes
- https://developer.mozilla.org/zh- US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites
- https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Developing_Gaia
- https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Different_ways_to_run_Gaia
- https://developer.mozilla.org/en-US/docs/Tools/WebIDE/Troubleshooting
- https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Making_Gaia_code_changes
- https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites
这篇关于无法在Windows中从git建立gaia.得到"Makefile:671:目标'首选项'的配方失败".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!