在 Windows 上构建 Firefox/Fennec

发布于 2024-11-13 05:57:31 字数 2905 浏览 6 评论 0原文

我尝试按照本教程在 Windows(特别是 64 位 Windows Server 2008 R2 SP1)上构建 Fennec(Firefox for Mobile): https://wiki.mozilla.org/Mobile/Fennec/Android

我已经安装了(要么因为我读过是必要的,要么是我以前拥有并认为可能是的软件相关):

  • Visual Studio 2010 Professional
  • Eclipse Helios(未安装,但我有)
  • Android SDK 12(最新)
  • Android NDK r5(最新)
  • Eclipse ADT插件
  • Cygwin
  • Gnu Make
  • TortoiseHg
  • Mozilla Build(下载并解压,但没有使用过) )

我所做的是:

  1. 克隆源代码(hg clone http://hg.mozilla.org /mozilla-central/
  2. 创建一个名为 mozconfig(无扩展名)的文件,并按照教程中指定的内容放置内容,路径如下:C:\Users\Administrator\Downloads\android -ndk-r5b-windows\android-ndk-r5bC:\Program Files (x86)\Android\android-sdk\platforms\android-8
  3. 打开命令行,转到正确的文件夹并运行 make -f client.mk

我收到了这样的输出:

C:\Users\Administrator\Desktop\mozilla_central>make -f client.mk
The system cannot find the path specified.
process_begin: CreateProcess(NULL, uname -s, ...) failed.
'C:/Users/Administrator/Desktop/mozilla_central/build/autoconf/mozconfig2client-mk' is not recognized as an internal or external command,
operable program or batch file.
client.mk:141: C:/Users/Administrator/Desktop/mozilla_central/.mozconfig.mk: No such file or directory
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh  C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
make: *** No rule to make target `C:/Users/Administrator/Desktop/mozilla_central/.mozconfig.mk'.  Stop.

这是我第一次尝试构建 Firefox,也是我第一次尝试 make。

感谢您的帮助!

I am trying to follow this tutorial in order to build Fennec (Firefox for Mobile) on Windows (specifically Windows Server 2008 R2 SP1, which is 64-bit): https://wiki.mozilla.org/Mobile/Fennec/Android

I have installed (either because I read are necessary, or software I had before and thought might be relevant):

  • Visual Studio 2010 Professional
  • Eclipse Helios (not installed, but I have it)
  • Android SDK 12 (latest)
  • Android NDK r5 (latest)
  • Eclipse ADT plug-in
  • Cygwin
  • Gnu Make
  • TortoiseHg
  • Mozilla Build (downloaded and extracted, but have not used)

What I did is:

  1. Clone source code (hg clone http://hg.mozilla.org/mozilla-central/)
  2. Create a file called mozconfig (no extension) and put the contents as specified in the tutorial, with these paths: C:\Users\Administrator\Downloads\android-ndk-r5b-windows\android-ndk-r5b and C:\Program Files (x86)\Android\android-sdk\platforms\android-8.
  3. Open command line, go to the correct folder and run make -f client.mk.

I received this output:

C:\Users\Administrator\Desktop\mozilla_central>make -f client.mk
The system cannot find the path specified.
process_begin: CreateProcess(NULL, uname -s, ...) failed.
'C:/Users/Administrator/Desktop/mozilla_central/build/autoconf/mozconfig2client-mk' is not recognized as an internal or external command,
operable program or batch file.
client.mk:141: C:/Users/Administrator/Desktop/mozilla_central/.mozconfig.mk: No such file or directory
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh  C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
process_begin: CreateProcess(NULL, sh C:\Users\Administrator\Desktop\mozilla_central\build\autoconf\config.guess, ...) failed.
make: *** No rule to make target `C:/Users/Administrator/Desktop/mozilla_central/.mozconfig.mk'.  Stop.

This is the first I try to build Firefox and also my first try with make.

Thanks for your help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

檐上三寸雪 2024-11-20 05:57:32

需要提及的几件事:

  • 看起来终端窗口是在没有管理员权限的情况下打开的。尝试使用“以管理员身份运行”选项打开。同时删除使用失败的运行创建的任何对象目录。权限会出错。
  • 确保您创建的 mozconfig 也具有完整的读/写权限
  • 我们最近(上周)才获得对 NDK5(和 NDK6)工作的支持,但是 https://wiki.mozilla.org/Mobile/Fennec/Android 仍然过时。可以在此处找到新的和改进的 mzconfig https://wiki.mozilla.org/用户:Blassey/Notes/Android#mozconfig(是的,我们很快就会将信息移至 wiki 主页。

在进行所需的更改后,尝试再次构建。

A couple things to mention:

  • It looks like the terminal window was opened without admin privileges. Try opening using the "Run as Admin" option. Also remove any object directory created using the failed run. The permissions will be wrongs.
  • Make sure the mozconfig you created has full read/write privileges as well
  • We only recently (within the last week) got support for NDK5 (and NDK6) working, but the mozconfig on https://wiki.mozilla.org/Mobile/Fennec/Android is still outdated. A new and improved mzconfig can be found here https://wiki.mozilla.org/User:Blassey/Notes/Android#mozconfig (yes, we will move the info to the main wiki page very soon.

After you make the required changes, try to build again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文