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


1

我正在尝试从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.

我为此搜索了几个小时,但仍然找不到解决方案。有任何想法吗?

Answers:


1

万一仍有人遇到这个问题,我需要安装glib1端口以构建Firefox。glib安装了glib 2.3 的端口无法正常工作。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.