在 Mac OS X 下从源代码构建 Firefox

在 Mac OS X 下从源代码构建 Firefox

我正在尝试在我的 Macbook Pro 下从源代码构建 Firefox。我相信我已经遵循了他们页面上的所有说明,但我仍然坚持构建它。

mercurial libidl autoconf213 yasm通过 Macport 安装了所有必需项 () ,并且它位于 下/opt/local/。当我尝试运行 时make -f client.mk,它给出了错误。似乎它无法找到 glib 2.0 和 libidl。实际输出如下:

checking for libIDL-2.0 >= 0.8.0 glib-2.0 gobject-2.0... checking for glib-config... no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
checking for libIDL-config... no
checking for libIDL - version >= 0.6.3... no
*** The libIDL-config script installed by libIDL could not be found
*** If libIDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the LIBIDL_CONFIG environment variable to the
*** full path to libIDL-config.
checking for libIDL-2.0 >= 0.8.0... Package libIDL-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libIDL-2.0.pc' to the PKG_CONFIG_PATH   environment variable No package 'libIDL-2.0' found
configure: error: Library requirements (libIDL-2.0 >= 0.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

我花了几个小时在 Google 上搜索这个问题,但还是找不到解决办法。有什么想法吗?

答案1

如果有人仍然遇到这个问题,我需要安装端口glib1来构建 Firefox;glib端口安装了不起作用的 glib 2.3。

答案2

尝试glib通过 MacPorts 安装。

相关内容