构建 Firefox 错误:c 编译器无法创建可执行文件
我正在尝试构建 Firefox,但遇到了一些问题。我目前拥有 Visual Studio 2008 Team Suite(试用版,如果重要的话)。
我的 mozconfig 文件:
# Firefox
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=/c/mozilla-build/mozilla-central/objdir-ff-release
mk_add_options MOZ_MAKE_FLAGS="-j4"
# Java XCOM
ac_add_options --enable-javaxpcom
ac_addoptions --with-java-include-path=/f/Applications/x64/Java/jdk1.6.0_16/include
ac_options --with-java-bin-path=/f/Applications/x64/Java/jdk1.6.0_16/bin
# XUL RUNNER
mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner
注意:Visual studio 安装到 C:\Program Files (x86)
我的环境变量: http://paste2.org/p/401924
有什么想法吗?
实际错误表明编译器“cl”无法创建可执行文件
I'm trying to build firefox but I'm having some problems. I currently have Visual Studio 2008 Team Suite (trial if that matters).
My mozconfig file:
# Firefox
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=/c/mozilla-build/mozilla-central/objdir-ff-release
mk_add_options MOZ_MAKE_FLAGS="-j4"
# Java XCOM
ac_add_options --enable-javaxpcom
ac_addoptions --with-java-include-path=/f/Applications/x64/Java/jdk1.6.0_16/include
ac_options --with-java-bin-path=/f/Applications/x64/Java/jdk1.6.0_16/bin
# XUL RUNNER
mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner
Note: Visual studio is installed to C:\Program Files (x86)
My environment variables:
http://paste2.org/p/401924
Any ideas?
The actual error says that the compiler "cl" can't create executables
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过使用 32 位构建环境而不是 64 位来修复它
I fixed it by using the 32-bit build environment instead of the 64-bit
您链接到的文件似乎针对 Linux/MinGW32/Cygwin 构建环境(请注意如何在
PATH
变量以及其他变量中指定和分隔目录)。尝试修复该问题,看看是否有帮助,如果没有帮助,请尝试阅读 http ://groups.google.com/group/mozilla.dev.builds/browse_thread/thread/038fba57b3dbc1c6。The file you linked to appears to be targeted towards a Linux/MinGW32/Cygwin build environemtn (note how the directories are specified and separated in the
PATH
variable, as well as others). Try fixing that and see if it helps, if not try reading http://groups.google.com/group/mozilla.dev.builds/browse_thread/thread/038fba57b3dbc1c6.