Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 3500|回复: 4
打印 上一主题 下一主题

下载编译

[复制链接]

437

主题

566

帖子

2381

积分

金牌会员

Rank: 6Rank: 6

积分
2381
跳转到指定楼层
楼主
发表于 2016-2-18 00:14:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
hg clone http://hg.mozilla.org/releases/mozilla-release
  1. % hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
  2. 正在请求全部修改
  3. remote: this server supports the experimental "clone bundles" feature that should enable faster and more reliable cloning
  4. remote: help test it by setting the "experimental.clonebundles" config flag to "true"
  5. 正在增加修改集
  6. 正在增加清单
  7. 正在增加文件改变
  8. 已增加 306115 个修改集,包含 1596257 个改变,修改了 226014 个文件 (+264 heads)
  9. updating to branch default
  10. 正在解析清单
  11. 正在检出 .clang-format
  12. 正在检出 .clang-format-ignore
  13. 正在检出 modules/freetype2/docs/VERSION.DLL
  14. 中止: E:\hg\modules/freetype2/docs/VERSION.DLL:
  15. [命令返回代码255 Fri Feb 19 01:30:33 2016]
复制代码
111
  1. hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"

  2. *** 加载扩展 'bzpost',自 'c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bzpost': No module named Cookie
  3. % hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
  4. (mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
  5. (but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
  6. applying clone bundle from https://hg.cdn.mozilla.net/releases/mozilla-release/b0856b1326474c0d3deb7002fff78f7ad326876e.gzip.hg
  7. 正在增加修改集
  8. 正在增加清单
  9. 正在增加文件改变
  10. 已增加 306115 个修改集,包含 1596257 个改变,修改了 226014 个文件 (+264 heads)
  11. finished applying clone bundle
  12. 正在搜索修改
  13. 没有发现修改
  14. updating to branch default
  15. 正在解析清单
  16. 正在检出 .clang-format
  17. .....
  18. 正在检出 xulrunner/tools/redit/moz.build
  19. 正在检出 xulrunner/tools/redit/redit.cpp
  20. 129249 files updated, 0 files merged, 0 files removed, 0 files unresolved
  21. [命令成功完成 Thu Feb 18 21:43:41 2016]
复制代码
回复

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
沙发
发表于 2016-2-18 20:57:44 | 只看该作者
*** 加载扩展 'bzpost',自 'c:\Users\admin\.mozbuild\version-control-tools\hgext\bzpost': No module named Cookie
% hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
(mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
(but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
applying clone bundle from https://hg.cdn.mozilla.net/relea ... f7ad326876e.gzip.hg
正在增加修改集
回复 支持 反对

使用道具 举报

437

主题

566

帖子

2381

积分

金牌会员

Rank: 6Rank: 6

积分
2381
板凳
 楼主| 发表于 2016-2-19 01:02:15 | 只看该作者
hg init mozilla-release
cd mozilla-release
hg unbundle E:\hgBundle\b0856b1326474c0d3deb7002fff78f7ad326876e.gzip.hg
回复 支持 反对

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
地板
发表于 2016-2-19 20:27:01 | 只看该作者
本帖最后由 hechengjin 于 2016-2-19 20:40 编辑

echo 'ac_add_options --enable-application=mail' > .mozconfig

echo 'ac_add_options --enable-calendar' >> .mozconfig

./mach build
  1. HECHENGJIN@hechengjin /e/hg
  2. $ ./mach build
  3. *** MERCURIAL CONFIGURATION POTENTIALLY OUT OF DATE ***

  4. mach has detected that it has been a while since you have run
  5. `./mach mercurial-setup`.

  6. Having the latest Mercurial tools and configuration should lead to a better,
  7. more productive experience when working on Mozilla projects.

  8. Please run `./mach mercurial-setup` now.

  9. Reminder: `./mach mercurial-setup` does not make any changes without
  10. prompting you first.

  11. To avoid this message in the future, run `./mach mercurial-setup` once a month.
  12. Or, schedule `./mach mercurial-setup --update-only` to run automatically in
  13. the background at least once a month.

复制代码
./mach mercurial-setup
  1. $ ./mach mercurial-setup
  2. ================================================================================

  3. Ensuring version-control-tools is up to date...
  4. pulling from https://hg.mozilla.org/hgcustom/version-control-tools
  5. abort: error: TLS/SSL connection has been closed (EOF) (_ssl.c:590)
  6. ================================================================================


  7. Error running mach:

  8.     ['mercurial-setup']

  9. The error occurred in code that was called by the mach command. This is either
  10. a bug in the called code itself or in the way that mach is calling it.

  11. You should consider filing a bug for this issue.

  12. If filing a bug, please include the full output of mach, including this error
  13. message.

  14. The details of the failure are as follows:

  15. CalledProcessError: Command '[u'c:\\mozilla-build\\python\\Scripts\\hg.exe', u'-
  16. -config', u'hostfingerprints.bitbucket.org=46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:b
  17. c:f4:1a:5e:38:d7:ac:24', u'--config', u'hostfingerprints.bugzilla.mozilla.org=f9
  18. :7e:62:42:4e:38:79:96:ca:87:71:2a:f8:51:38:c8:16:92:5c:a7', u'--config', u'hostf
  19. ingerprints.hg.mozilla.org=af:27:b9:34:47:4e:e5:98:01:f6:83:2b:51:c9:aa:d8:df:fb
  20. :1a:27', u'pull', u'https://hg.mozilla.org/hgcustom/version-control-tools']' ret
  21. urned non-zero exit status 255

  22.   File "e:\hg\tools/mercurial/mach_commands.py", line 68, in mercurial_setup
  23.     result = wizard.run(map(os.path.expanduser, config_paths))
  24.   File "e:\hg\tools/mercurial\hgsetup\wizard.py", line 282, in run
  25.     self.updater.update_all()
  26.   File "e:\hg\tools/mercurial\hgsetup\update.py", line 36, in update_all
  27.     'Ensuring version-control-tools is up to date...')
  28.   File "e:\hg\tools/mercurial\hgsetup\update.py", line 46, in update_mercurial_r
  29. epo
  30.     update_mercurial_repo, hostfingerprints=HOST_FINGERPRINTS)
  31.   File "e:\hg\tools/mercurial\hgsetup\update.py", line 52, in _update_repo
  32.     fn(binary, url, dest, branch, *args, **kwargs)
  33.   File "e:\hg\python/mozversioncontrol\mozversioncontrol\repoupdate.py", line 24
  34. , in update_mercurial_repo
  35.     subprocess.check_call(args + ['pull', repo], cwd=path)
  36.   File "c:\mozilla-build\python\lib\subprocess.py", line 540, in check_call
  37.     raise CalledProcessError(retcode, cmd)
复制代码
上面问题为网络问题,切换一个网络,如翻墙一下。
然后更新成功后,提示进行相关配置
  1. $ ./mach mercurial-setup
  2. ================================================================================

  3. Ensuring version-control-tools is up to date...
  4. pulling from https://hg.mozilla.org/hgcustom/version-control-tools
  5. searching for changes
  6. adding changesets
  7. adding manifests
  8. adding file changes
  9. added 492 changesets with 1500 changes to 472 files
  10. updating bookmark @
  11. (run 'hg update' to get a working copy)
  12. 462 files updated, 0 files merged, 50 files removed, 0 files unresolved
  13. ================================================================================


  14. Your Mercurial recommended extensions are now up to date!

  15. I'm going to help you ensure your Mercurial is configured for optimal
  16. development on Mozilla projects.

  17. If your environment is missing some recommended settings, I'm going to prompt
  18. you whether you want me to make changes: I won't change anything you might not
  19. want me changing without your permission!

  20. If your config is up-to-date, I'm just going to ensure all 3rd party extensions
  21. are up to date and you won't have to do anything.

  22. To begin, press the enter/return key.

  23. bzexport
  24. ========

  25. If you plan on uploading patches to Mozilla, there is an extension called
  26. bzexport that makes it easy to upload patches from the command line via the
  27. |hg bzexport| command. More info is available at
  28. https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/bzexpor
  29. t/README

  30. (Relevant config option: extensions.bzexport)

  31. Would you like to activate bzexport? [Y/n]
  32. n

  33. Activated bzpost extension.

  34. firefoxtree
  35. ===========

  36. The firefoxtree extension makes interacting with the multiple Firefox
  37. repositories easier:

  38. * Aliases for common trees are pre-defined. e.g. `hg pull central`
  39. * Pulling from known Firefox trees will create "remote refs" appearing as
  40.   tags. e.g. pulling from fx-team will produce a "fx-team" tag.
  41. * The `hg fxheads` command will list the heads of all pulled Firefox repos
  42.   for easy reference.
  43. * `hg push` will limit itself to pushing a single head when pushing to
  44.   Firefox repos.
  45. * A pre-push hook will prevent you from pushing multiple heads to known
  46.   Firefox repos. This acts quicker than a server-side hook.

  47. The firefoxtree extension is *strongly* recommended if you:

  48. a) aggregate multiple Firefox repositories into a single local repo
  49. b) perform head/bookmark-based development (as opposed to mq)

  50. (Relevant config option: extensions.firefoxtree)

  51. Would you like to activate firefoxtree? [Y/n]
  52. n

  53. Activated bundleclone extension.

  54. Activated push-to-try extension.

  55. Activated mqext extension.

  56. Would you like to configure mqext to automatically commit changes as you modify
  57. patches? [Y/n]
  58. n
  59. Activated qimportbz extension.

  60. Your Mercurial config file needs updating. I can do this for you if you like!
  61. Would you like to see a diff of the changes first? [Y/n]
  62. n
  63. Would you like me to update your hgrc file? [Y/n]
  64. n
  65. hgrc changes not written to file. I would have written the following:

  66. [ui]
  67. username = wyyt <wyyt@outlook.com>
  68. [diff]
  69. git = 1
  70. showfunc = 1
  71. unified = 8
  72. [extensions]
  73. progress =
  74. color =
  75. rebase =
  76. histedit =
  77. mq =
  78. reviewboard = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\reviewbo
  79. ard\client.py
  80. bzpost = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bzpost
  81. bundleclone = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bundlecl
  82. one
  83. push-to-try = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\push-to-
  84. try
  85. mqext = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\mqext
  86. qimportbz = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\qimportbz
  87. [defaults]
  88. qnew = -U
  89. [bugzilla]
  90. username = wyyt@outlook.com
  91. apikey = 2
  92. [hostfingerprints]
  93. bugzilla.mozilla.org = f9:7e:62:42:4e:38:79:96:ca:87:71:2a:f8:51:38:c8:16:92:5c:
  94. a7
  95. bitbucket.org = 46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:bc:f4:1a:5e:38:d7:ac:24
  96. hg.mozilla.org = af:27:b9:34:47:4e:e5:98:01:f6:83:2b:51:c9:aa:d8:df:fb:1a:27
  97. (despite the failure, mach will not nag you to run `mach mercurial-setup`)
复制代码
./mach build

回复 支持 反对

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
5#
发表于 2016-2-22 20:03:34 | 只看该作者
本帖最后由 hechengjin 于 2016-2-23 20:02 编辑

mozilla-esr38
  1. % hg clone --verbose http://hg.mozilla.org/releases/mozilla-esr38/ "E:\hg38\comm-esr38\mozilla-esr38"
  2. (mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
  3. (but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
  4. applying clone bundle from https://hg.cdn.mozilla.net/releases/mozilla-esr38/1160bd4070e55b2c3accb29d8e833a2d3a066f55.gzip.hg
  5. 正在增加修改集
  6. 正在增加清单
  7. 正在增加文件改变
  8. 已增加 260951 个修改集,包含 1351421 个改变,修改了 196144 个文件 (+97 heads)
  9. finished applying clone bundle
  10. 正在搜索修改
  11. 正在增加修改集
  12. 正在增加清单
  13. 正在增加文件改变
  14. 已增加 3 个修改集,包含 10 个改变,修改了 10 个文件
  15. updating to branch default
  16. 正在解析清单
  17. 正在检出 .clang-format
  18. 正在检出 .clang-format-ignore
  19. ......
  20. 正在检出 xulrunner/tools/redit/redit.cpp
  21. 117982 files updated, 0 files merged, 0 files removed, 0 files unresolved
  22. [命令成功完成 Tue Feb 23 00:11:49 2016]
复制代码
缺少目录:e:/hg38/comm-esr38/ldap/sdks
  1. 1:06.83 ldap\sdks\c-sdk> configuring
  2. 1:06.83 ldap\sdks\c-sdk> running C:/mozilla-build/msys/bin/sh e:/hg38/comm-esr3
  3. 8/ldap/sdks/c-sdk/configure --enable-application=mail --enable-calendar --with-e
  4. xternal-source-dir=e:/hg38/comm-esr38 --prefix=e:/hg38/comm-esr38/obj-i686-pc-mi
  5. ngw32/dist --with-dist-prefix=e:/hg38/comm-esr38/obj-i686-pc-mingw32/dist --with
  6. out-nss --with-mozilla --disable-debug-rtl --cache-file=e:/hg38/comm-esr38/obj-i
  7. 686-pc-mingw32/ldap/sdks/c-sdk/config.cache
  8. 1:06.87 ldap\sdks\c-sdk> /usr/bin/sh: e:/hg38/comm-esr38/ldap/sdks/c-sdk/config
  9. ure: No such file or directory
  10. 1:06.87
  11. 1:06.92 *** Fix above errors and then restart with\
  12. 1:06.92                "c:/mozilla-build/mozmake/mozmake.EXE -f client.mk build
  13. "
  14. 1:06.97 e:/hg38/comm-esr38/client.mk:361: recipe for target 'configure' failed
  15. 1:06.97 mozmake.EXE[1]: *** [configure] Error 1
  16. 1:06.97 client.mk:375: recipe for target 'e:/hg38/comm-esr38/obj-i686-pc-mingw3
  17. 2/Makefile' failed
  18. 1:06.97 mozmake.EXE: *** [e:/hg38/comm-esr38/obj-i686-pc-mingw32/Makefile] Erro
  19. r 2
  20. 1:06.98 0 compiler warnings present.
  21. 2
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-23 00:15 , Processed in 0.078673 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表