Discuz! Board

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

firemail_moz编译

[复制链接]

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
跳转到指定楼层
楼主
发表于 2020-9-13 10:51:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
安装vs2019
https://visualstudio.microsoft.com/zh-hans/

提取码:mp91

要安装下面两部分:
"Desktop development with C++"
"Game development with C++"


安装
Outlook2010MAPIHeaders.EXE
https://www.microsoft.com/en-us/download/details.aspx?id=12905

提取码:g7p0

默认安装在如下路径
C:\Office 2010 Developer Resources\Outlook 2010 MAPI Headers
里面一共18个文件,这里只需要复制17个文件(排除MAPI.h)到如下目录
C:\Program Files (x86)\Windows Kits\10\Include\10.0.nnnnn.0\shared
这里的nnnnn是指的最高版本的,我这里是
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared
下载 .mozbuild.zip
链接:https://pan.baidu.com/s/1wzMP6OI3qyH0pLiBMy4AFw
提取码:9uyg
把.mozbuild.zip 直接解压到 %HOMEPATH%目录下
如:
C:\Users\Administrator\.mozbuild

安装MozillaBuildSetup-Latest.exe
链接:https://pan.baidu.com/s/1VSB7r-X-SoG_ZDvAPWuefA
提取码:1khs



https://mp.weixin.qq.com/s?__biz ... e15766cfdebdcd53#rd

回复

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
沙发
 楼主| 发表于 2020-9-13 18:20:03 | 只看该作者
本帖最后由 Qter 于 2020-9-13 18:25 编辑

0:50.03 checking for snprintf... yes
0:50.12 checking for vasprintf... no
0:50.19 checking for vsnprintf... yes
0:50.26 checking for vprintf... yes
0:50.32 checking for open... no
0:50.40 checking for realloc... yes
0:50.47 checking for setlocale... yes
0:50.53 checking for uselocale... no
0:50.63 checking for strdup... yes
0:50.69 checking for clang_rt.builtins path... c:\Users\Administrator\.mozbuild\clang\lib\clang\9.0.1\lib/windows\clang_rt.builtins-x86_64
0:50.72 checking for rustc... not found
0:50.72 checking for cargo... not found
0:50.73 ERROR: Rust compiler not found.
0:50.73 To compile rust language sources, you must have 'rustc' in your path.
0:50.73 See https://www.rust-lang.org/ for more information.
0:50.73 You can install rust by running './mach bootstrap'
0:50.73 or by directly running the installer from https://rustup.rs/
0:50.80 *** Fix above errors and then restart with\
0:50.80                "./mach build"
0:50.80 mozmake.EXE: *** [client.mk;115: configure] Error 1


复制 %homepath%\.rustup  和 %homepath%\.cargo 目录 过来


回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
板凳
 楼主| 发表于 2020-9-13 19:04:06 | 只看该作者
本帖最后由 Qter 于 2020-9-13 19:11 编辑
  1. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  2. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  3. 12:14.23 warning:  ^
  4. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast_array_index.cpp:24:
  5. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast.h:29:
  6. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
  7. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  8. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  9. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  10. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  11. 12:14.23 warning:  ^
  12. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast_expr.cpp:24:
  13. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast.h:29:
  14. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
  15. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  16. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  17. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  18. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  19. 12:14.23 warning:  ^
  20. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast_to_hir.cpp:52:
  21. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  22. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  23. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  24. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  25. 12:14.23 warning:  ^
  26. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/ast_function.cpp:24:
  27. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  28. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  29. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  30. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  31. 12:14.23 warning:  ^
  32. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl_types.cpp:26:
  33. 12:14.23 warning: In file included from glsl-optimizer/src\compiler/glsl/glsl_parser_extras.h:34:
  34. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  35. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  36. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  37. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  38. 12:14.23 warning:  ^
  39. 12:14.23 warning: 1 error generated.
  40. 12:14.23 warning: 1 error generated.
  41. 12:14.23 warning: 1 error generated.
  42. 12:14.23 warning: 1 error generated.
  43. 12:14.23 warning:       var->data.depth_layout = ir_depth_layout_unchanged;
  44. 12:14.23 warning:                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
  45. 12:14.23 warning: 1 warning and 1 error generated.
  46. 12:14.23 warning: 1 error generated.
  47. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/builtin_functions.cpp:81:
  48. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
  49. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  50. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  51. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  52. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  53. 12:14.23 warning:  ^
  54. 12:14.23 warning: 1 error generated.
  55. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/builtin_types.cpp:38:
  56. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
  57. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  58. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  59. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  60. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  61. 12:14.23 warning:  ^
  62. 12:14.23 warning: 1 error generated.
  63. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/builtin_variables.cpp:42:
  64. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
  65. 12:14.23 warning: In file included from glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:
  66. 12:14.23 warning: In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new:9:
  67. 12:14.23 warning: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\yvals_core.h(494,2): error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  68. 12:14.23 warning: #error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
  69. 12:14.23 warning:  ^
  70. 12:14.23 warning: 1 error generated.
  71. 12:14.36 error: build failed
  72. 12:14.36 mozmake.EXE[4]: *** [d:/github/he_chengjin_outlook/Firemail_Mozilla/config/makefiles/rust.mk;300: force-cargo-library-build] Error 101
  73. 12:14.37 mozmake.EXE[3]: *** [d:/github/he_chengjin_outlook/Firemail_Mozilla/config/recurse.mk;72: toolkit/library/rust/target] Error 2
  74. 12:14.37 mozmake.EXE[2]: *** [d:/github/he_chengjin_outlook/Firemail_Mozilla/config/recurse.mk;34: compile] Error 2
  75. 12:14.37 mozmake.EXE[1]: *** [d:/github/he_chengjin_outlook/Firemail_Mozilla/config/rules.mk;390: default] Error 2
  76. 12:14.37 mozmake.EXE: *** [client.mk;125: build] Error 2
  77. 12:14.40 9 compiler warnings present.
复制代码
应该是由于安装的vs2019版本不一样

vs_professional__984630800.1582248533.exe
vs_professional__1339673520.1599919222.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\new   原来的是 14.26.28801
造成相关路径 下的文件要求Clang升级,而目录从网盘下载下来的是
  1. \.mozbuild\clang\bin> .\clang.exe -v
  2. clang version 9.0.1
  3. Target: x86_64-pc-windows-msvc
  4. Thread model: posix
复制代码
运行 ./mach bootstrap也不行
  1. $ ./mach bootstrap

  2. Note on Artifact Mode:

  3. Artifact builds download prebuilt C++ components rather than building
  4. them locally. Artifact builds are faster!

  5. Artifact builds are recommended for people working on Firefox or
  6. Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
  7. for those working on C++ code. For more information see:
  8. https://developer.mozilla.org/en-US/docs/Artifact_builds.

  9. Please choose the version of Firefox you want to build:
  10.   1. Firefox for Desktop Artifact Mode
  11.   2. Firefox for Desktop
  12.   3. GeckoView/Firefox for Android Artifact Mode
  13.   4. GeckoView/Firefox for Android
  14. Your choice: 2
  15. Your version of Python 3 (3.7.4) is new enough.
  16. Your version of Python 2 (2.7.16) is new enough.
  17. Your version of Mercurial (5.1.2) is sufficiently modern.
  18. Your version of Rust (1.45.1) is new enough.
  19. Rust supports x86_64-pc-windows-msvc targets.
  20. info: downloading component 'rust-std' for 'i686-pc-windows-msvc'
  21. 12.9 MiB /  12.9 MiB (100 %)   1.3 MiB/s in 15s ETA:  0s
  22. info: installing component 'rust-std' for 'i686-pc-windows-msvc'
  23. 12.9 MiB /  12.9 MiB (100 %)  12.6 MiB/s in  1s ETA:  0s
  24. Error running mach:

  25.     ['bootstrap']

  26. The error occurred in code that was called by the mach command. This is either
  27. a bug in the called code itself or in the way that mach is calling it.
  28. You can invoke |./mach busted| to check if this issue is already on file. If it
  29. isn't, please use |./mach busted file bootstrap| to report it. If |./mach busted| is
  30. misbehaving, you can also inspect the dependencies of bug 1543241.

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

  33. The details of the failure are as follows:

  34. mozversioncontrol.MissingVCSTool: Unable to obtain git path. Try running |mach bootstrap| to ensure your environment is up to date.

  35.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot/mozboot/mach_commands.py", line 46, in bootstrap
  36.     bootstrapper.bootstrap()
  37.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 512, in bootstrap
  38.     hg=self.instance.which('hg'))
  39.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 766, in current_firefox_checkout
  40.     _warn_if_risky_revision(path)
  41.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 913, in _warn_if_risky_revision
  42.     repo = get_repository_object(path)
  43.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 599, in get_repository_object
  44.     return GitRepository(path, git=git)
  45.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 466, in __init__
  46.     super(GitRepository, self).__init__(path, tool=git)
  47.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 86, in __init__
  48.     self._tool = get_tool_path(tool)
  49.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 62, in get_tool_path
  50.     'date.' % tool)
复制代码



回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
地板
 楼主| 发表于 2020-9-13 21:21:53 | 只看该作者
按正常安装逻辑https://developer.thunderbird.ne ... build-prerequisites
先安装git,否则出错
  1. The Firefox build system and related tools store shared, persistent state
  2. in a common directory on the filesystem. On this machine, that directory
  3. is:

  4.   c:/Users/Administrator/.mozbuild

  5. If you would like to use a different directory, hit CTRL+c and set the
  6. MOZBUILD_STATE_PATH environment variable to the directory you'd like to
  7. use and re-run the bootstrapper.

  8. Would you like to create this directory? (Yn): Y
  9. Creating global state directory: c:/Users/Administrator/.mozbuild
  10. Error running mach:

  11.     ['bootstrap']

  12. The error occurred in code that was called by the mach command. This is either
  13. a bug in the called code itself or in the way that mach is calling it.
  14. You can invoke |./mach busted| to check if this issue is already on file. If it
  15. isn't, please use |./mach busted file bootstrap| to report it. If |./mach busted| is
  16. misbehaving, you can also inspect the dependencies of bug 1543241.

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

  19. The details of the failure are as follows:

  20. mozversioncontrol.MissingVCSTool: Unable to obtain git path. Try running |mach bootstrap| to ensure your environment is up to date.

  21.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot/mozboot/mach_commands.py", line 46, in bootstrap
  22.     bootstrapper.bootstrap()
  23.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 512, in bootstrap
  24.     hg=self.instance.which('hg'))
  25.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 766, in current_firefox_checkout
  26.     _warn_if_risky_revision(path)
  27.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozboot\mozboot\bootstrap.py", line 913, in _warn_if_risky_revision
  28.     repo = get_repository_object(path)
  29.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 599, in get_repository_object
  30.     return GitRepository(path, git=git)
  31.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 466, in __init__
  32.     super(GitRepository, self).__init__(path, tool=git)
  33.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 86, in __init__
  34.     self._tool = get_tool_path(tool)
  35.   File "d:\github\he_chengjin_outlook\Firemail_Mozilla\python/mozversioncontrol\mozversioncontrol\__init__.py", line 62, in get_tool_path
  36.     'date.' % tool)
复制代码
回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
5#
 楼主| 发表于 2020-9-17 09:39:52 | 只看该作者

官方

hg clone https://hg.mozilla.org/mozilla-central source/
cd source/
hg clone https://hg.mozilla.org/comm-central comm/


$ mach bootstrap

Note on Artifact Mode:

Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!

Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://developer.mozilla.org/en-US/docs/Artifact_builds.

Please choose the version of Firefox you want to build:
  1. Firefox for Desktop Artifact Mode
  2. Firefox for Desktop
  3. GeckoView/Firefox for Android Artifact Mode
  4. GeckoView/Firefox for Android
Your choice: 2
Your version of Python 3 (3.7.4) is new enough.
Your version of Python 2 (2.7.16) is new enough.
Warning: the Firefox checkout directory is currently not in the Windows Defender exclusion list. This can cause the build process to be dramatically slowed or broken. To resolve this, follow the directions here: https://firefox-source-docs.mozi ... tivirus-performance
virtualenv at c:/Users/Administrator/.mozbuild\_virtualenvs\mach is already up to date.
Requirement already satisfied: zstandard<=0.13.0,>=0.9.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (0.13.0)
Requirement already satisfied: cffi>=1.11 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from zstandard<=0.13.0,>=0.9.0) (1.14.3)
Requirement already satisfied: pycparser in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from cffi>=1.11->zstandard<=0.13.0,>=0.9.0) (2.20)
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Requirement already satisfied: glean_sdk~=32.3.1 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (32.3.2)
Requirement already satisfied: cffi>=1 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean_sdk~=32.3.1) (1.14.3)
Requirement already satisfied: glean-parser==1.28.3 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean_sdk~=32.3.1) (1.28.3)
Requirement already satisfied: pycparser in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from cffi>=1->glean_sdk~=32.3.1) (2.20)
Requirement already satisfied: diskcache>=4 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (5.0.3)
Requirement already satisfied: appdirs>=1.4 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (1.4.4)
Requirement already satisfied: jsonschema>=3.0.2 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (3.2.0)
Requirement already satisfied: yamllint>=1.18.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (1.24.2)
Requirement already satisfied: Jinja2>=2.10.1 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (2.11.2)
Requirement already satisfied: Click>=7 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (7.1.2)
Requirement already satisfied: PyYAML>=3.13 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from glean-parser==1.28.3->glean_sdk~=32.3.1) (5.3.1)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (0.17.3)
Requirement already satisfied: six>=1.11.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (1.15.0)
Requirement already satisfied: setuptools in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (41.6.0)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (1.7.0)
Requirement already satisfied: attrs>=17.4.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (20.2.0)
Requirement already satisfied: pathspec>=0.5.3 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from yamllint>=1.18.0->glean-parser==1.28.3->glean_sdk~=32.3.1) (0.8.0)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from Jinja2>=2.10.1->glean-parser==1.28.3->glean_sdk~=32.3.1) (1.1.1)
Requirement already satisfied: zipp>=0.5 in c:\users\administrator\.mozbuild\_virtualenvs\mach\lib\site-packages (from importlib-metadata; python_version < "3.8"->jsonschema>=3.0.2->glean-parser==1.28.3->glean_sdk~=32.3.1) (3.1.0)
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Python 3 mach environment created.
virtualenv at c:/Users/Administrator/.mozbuild\_virtualenvs\mach_py2 is already up to date.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/de ... s/#python-2-support
Requirement already satisfied: zstandard<=0.13.0,>=0.9.0 in c:\users\administrator\.mozbuild\_virtualenvs\mach_py2\lib\site-packages (0.13.0)
Requirement already satisfied: cffi>=1.11 in c:\users\administrator\.mozbuild\_virtualenvs\mach_py2\lib\site-packages (from zstandard<=0.13.0,>=0.9.0) (1.14.3)
Requirement already satisfied: pycparser in c:\users\administrator\.mozbuild\_virtualenvs\mach_py2\lib\site-packages (from cffi>=1.11->zstandard<=0.13.0,>=0.9.0) (2.20)
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Python 2 mach environment created.
Your version of Mercurial (5.1.2) is sufficiently modern.
Your version of Rust (1.46.0) is new enough.
Rust supports i686-pc-windows-msvc, x86_64-pc-windows-msvc targets.

Mozilla recommends a number of changes to Mercurial to enhance your
experience with it.

Would you like to run a configuration wizard to ensure Mercurial is
optimally configured? (Yn): n

Build system telemetry

Mozilla collects data about local builds in order to make builds faster and
improve developer tooling. To learn more about the data we intend to collect
read here:

  https://firefox-source-docs.mozi ... stem/telemetry.html

If you have questions, please ask in #build on Matrix:

  https://chat.mozilla.org/#/room/#build:mozilla.org

If you would like to opt out of data collection, select (N) at the prompt.

Would you like to enable build system telemetry? (Yn): n
0:31.42 Setting up artifact node.tar.bz2
0:31.42 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\a05c0d25ca73c584-node.tar.bz2
0:31.60 rm tree: c:\Users\Administrator\.mozbuild\node
0:47.22 untarring "c:\Users\Administrator\.mozbuild\node.tar.bz2"
0:08.51 Setting up artifact fix-stacks.tar.bz2
0:08.51 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\ad36a610437eb6a6-fix-stacks.tar.bz2
0:08.61 rm tree: c:\Users\Administrator\.mozbuild\fix-stacks
0:08.61 untarring "c:\Users\Administrator\.mozbuild\fix-stacks.tar.bz2"
0:07.21 Setting up artifact minidump_stackwalk.tar.xz
0:07.21 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\03a45a8d1b2518c9-minidump_stackwalk.tar.xz
0:07.29 rm tree: c:\Users\Administrator\.mozbuild\minidump_stackwalk
0:07.29 untarring "c:\Users\Administrator\.mozbuild\minidump_stackwalk.tar.xz"
0:07.74 Setting up artifact clang.tar.zst
0:07.74 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\f5371bdc711e1210-clang.tar.zst
0:12.41 rm tree: c:\Users\Administrator\.mozbuild\clang
0:16.84 untarring "c:\Users\Administrator\.mozbuild\clang.tar.zst"
0:07.24 Setting up artifact cbindgen.tar.bz2
0:07.25 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\0e9e5a7c406239d2-cbindgen.tar.bz2
0:07.80 rm tree: c:\Users\Administrator\.mozbuild\cbindgen
0:07.80 untarring "c:\Users\Administrator\.mozbuild\cbindgen.tar.bz2"
0:09.70 Setting up artifact clang-tidy.tar.zst
0:09.70 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\39665b8e1052aae0-clang-tidy.tar.zst
0:10.13 rm tree: c:\Users\Administrator\.mozbuild\clang-tools\clang-tidy
0:13.82 untarring "c:\Users\Administrator\.mozbuild\clang-tools\clang-tidy.tar.zst"
0:08.66 Setting up artifact nasm.tar.bz2
0:08.66 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\5935161ae02558f5-nasm.tar.bz2
0:08.80 rm tree: c:\Users\Administrator\.mozbuild\nasm
0:08.81 untarring "c:\Users\Administrator\.mozbuild\nasm.tar.bz2"
0:09.20 Setting up artifact sccache.tar.bz2
0:09.20 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\9b369eeb4f63e6ed-sccache.tar.bz2
0:09.36 rm tree: c:\Users\Administrator\.mozbuild\sccache
0:09.36 untarring "c:\Users\Administrator\.mozbuild\sccache.tar.bz2"
16:49.18 Setting up artifact rustc-dist-toolchain.tar.xz
16:49.18 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\fe4df07daff8457e-rustc-dist-toolchain.tar.xz
0:14.56 Setting up artifact clang-dist-toolchain.tar.xz
0:14.56 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\b7206285f7c5e282-clang-dist-toolchain.tar.xz
0:07.42 Setting up artifact dump_syms.tar.bz2
0:07.42 Using artifact from local cache: c:\Users\Administrator\.mozbuild\toolchains\b49d9e4f2e16c8cb-dump_syms.tar.bz2
0:07.61 rm tree: c:\Users\Administrator\.mozbuild\dump_syms
0:07.61 untarring "c:\Users\Administrator\.mozbuild\dump_syms.tar.bz2"

Your system should be ready to build Firefox for Desktop!

To build Firefox for Desktop, please restart the shell (Start a new terminal window)

If you plan on submitting changes to Firefox use the following command to
install the review submission tool "moz-phab":

  mach install-moz-phab




echo 'ac_add_options --enable-application=comm/mail' > mozconfig
echo 'ac_add_options --with-app-basename=Thunderbird' >> mozconfig

echo 'ac_add_options --enable-debug' >> mozconfig


./mach run
./mach build
回复 支持 反对

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
6#
 楼主| 发表于 2020-10-16 10:01:58 | 只看该作者
本帖最后由 Qter 于 2020-10-16 10:03 编辑


Operating System: Windows 10 教育版 64-bit (10.0, Build 19041) (19041.vb_release.191206-1406)

安装先决条件
1. Compiler:  VS2019
要安装下面两部分:
"Desktop development with C++"
"Game development with C++"

vs_professional__984630800.1582248533.exe



2 MAPI Headers

下载 Outlook2010MAPIHeaders.EXE
https://www.microsoft.com/en-us/download/details.aspx?id=12905

默认安装在如下路径
C:\Office 2010 Developer Resources\Outlook 2010 MAPI Headers
里面一共18个文件,这里只需要复制17个文件(排除MAPI.h)到如下目录
C:\Program Files (x86)\Windows Kits\10\Include\10.0.nnnnn.0\shared
这里的nnnnn是指的最高版本的,我这里是
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared
因为MAPI.h文件已经在如下目录中存在
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\MAPI.h

3. MozillaBuild Package
下载MozillaBuildSetup-Latest.exe

安装完成后打开 start-shell.bat
https://ftp.mozilla.org/pub/mozi ... ildSetup-Latest.exe

git clone http://192.168.124.49:9000/root/Mail source/

4. Mach Bootstrap
在source目录下运行以下命令以安装Thunderbird所需的附加依赖项:
./mach bootstrap
对Firefox的编译版本选择2

相关下载的内容安装在 %HOMEPATH%
.mozbuild   
.rustup
.cargo

5.编译,运行
./mach build
./mach run

6.生成中文安装包
./mach build
./mach package
./mach build installers-zh-CN
生成路径
obj_Mail\dist\l10n-stageMail

7.开发相关
修改obj下的文件,执行如下命令生效
./mach run -purgecache
生成vs工程
./mach build-backend -b VisualStudio
生成的解决方案如下:
/obj_Mail\msvc\mozilla.sln
打开开发工具,查看界面元素
Ctrl+Shift+I


所有文件下载地址:
\\192.168.124.150\share


关于代理:
客户端
https://shadowsocks.org/en/download/clients.html

服务端
https://github.com/shadowsocks/shadowsocks/tree/master


回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 07:43 , Processed in 0.062775 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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