无法在Windows中从git建立gaia.得到"Makefile:671:目标'首选项'的配方失败". [英] Unable to build gaia from git in windows. Getting "Makefile:671: recipe for target 'preferences' failed"

查看:111
本文介绍了无法在Windows中从git建立gaia.得到"Makefile:671:目标'首选项'的配方失败".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从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:-

  1. MozillaBuild-Mozilla Wiki 下载Mozilla Build,然后将工具安装在c:/mozilla-build中(首选).它包含构建gaia源代码所需的所有内容(make,wget,python等).
  2. 运行start-shell.bat.如果此批处理文件的构建过程失败,则如果具有Visual Studio 2013,则运行start-shell-msvc2013.bat;如果具有Visual Studio 2015,则运行start-shell-msvc2015.bat.(您需要
  1. 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.
  2. Run start-shell.bat. If build process failed with this batch file then run start-shell-msvc2013.bat if you have Visual Studio 2013 or start-shell-msvc2015.bat if you have Visual Studio 2015. (You need Visual Studio for the second step).
  3. Browse to the gaia source code directory using the command cd Mozilla/gaia.
  4. Run DEVICE_DEBUG=1 make command. Don't run DEVICE=1 make or make command (because you won't be able to debug the apps, I was able to connect to the Firefox OS 2.2 but was not able to debug the apps when I ran these commands).
  5. If you are running this command for the first time, it will download the b2g_sdk otherwise it will create a folder profile with your custom profile.
  6. Open the WEBIDE using Firefox (Nightly preferred) and point to the profile folder you just created.

链接供您参考:-

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆