Macos ';能说会道的h';在Max OSX 10.9上找不到文件

Macos ';能说会道的h';在Max OSX 10.9上找不到文件,macos,emacs,makefile,glib,Macos,Emacs,Makefile,Glib,我正在尝试编译一个将mu4e(mu代表Emacs)中的消息转换为pdf的工具。 我收到以下错误: /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in . CC msg2pdf.o In file included from msg2pdf.c:20: In file included from ../../lib/mu-msg.h:24: ../../lib/mu

我正在尝试编译一个将mu4e(mu代表Emacs)中的消息转换为pdf的工具。 我收到以下错误:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
  CC       msg2pdf.o
In file included from msg2pdf.c:20:
In file included from ../../lib/mu-msg.h:24:
../../lib/mu-flags.h:24:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^
1 error generated.
make[2]: *** [msg2pdf.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
如何成功编译该文件?有没有什么命令行“hack”可以在打电话时使用 制造

编辑 这是目录中的文件

编辑2 这是使用make V=1时的输出

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib   -DICONDIR='""'  -Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -g -O2 -MT msg2pdf.o -MD -MP -MF .deps/msg2pdf.Tpo -c -o msg2pdf.o msg2pdf.c
In file included from msg2pdf.c:20:
In file included from ../../lib/mu-msg.h:24:
../../lib/mu-flags.h:24:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^
1 error generated.
make[2]: *** [msg2pdf.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

make V=1
而不是
make
将告诉您C编译器命令的外观(而不仅仅是“CC msg2pdf.o”)-检查并确保它包含您需要的标志


通过快速查看Makefile.am,您的am\u CPPFLAGS中包含$(GTK\u CFLAGS)和$(WEBKIT\u CFLAGS),但不包含$(GLIB\u CFLAGS)。

您需要在要编译它的机器上的mu顶级目录中运行./configure。configure将告诉您任何缺少的依赖项。如果可选组件(如msg2pdf)的依赖项不存在,则跳过它们

然后,在配置成功后,执行“make”


在任何情况下,如果configure已经成功运行,那么顶级的“make”也应该成功(这就是为什么我们要配置!),否则请提交一个bug

您没有显示C编译器的命令是什么样子的(请尝试
make V=1
,而不只是
make
)。也许那些油嘴滑舌的东西实际上没有被传给CC…?很抱歉,我是编译领域的初学者。我在
make V=1
中得到了相同的错误。我用目录中的文件链接编辑了这篇文章。谢谢,我用make V=1输出编辑了我的消息。但老实说,这对我来说是中国式的。通常情况下,我习惯于进行./configure make install,但基本上就是这样,我甚至从未接触过make文件……相关标志肯定没有进入命令行。你把$(GLIB_CFLAGS)加到AM_和AM_CFLAGS上了吗?哈哈,它通过了!但现在我又犯了一个新错误。”找不到gtk/gtk.h'文件。我也通过brew下载了它,但如果您查看Makefile、GTK_CFLAGS、GTK_LIBS、WEBKIT_CFLAGS和WEBKIT_LIBS都是空的,它似乎无法识别。您可能缺少configure.acThanks中的pkg config检查和AC_SUBST谢谢您的帮助,我更新了pkg config path并重新启动了configure,现在我没有找到“webkit/webkitwebview.h”文件哈哈,我会找到它的!
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib   -DICONDIR='""'  -Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -g -O2 -MT msg2pdf.o -MD -MP -MF .deps/msg2pdf.Tpo -c -o msg2pdf.o msg2pdf.c
In file included from msg2pdf.c:20:
In file included from ../../lib/mu-msg.h:24:
../../lib/mu-flags.h:24:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^
1 error generated.
make[2]: *** [msg2pdf.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib   -D_REENTRANT -I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include  -DICONDIR='""'  -Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -g -O2 -MT msg2pdf.o -MD -MP -MF .deps/msg2pdf.Tpo -c -o msg2pdf.o msg2pdf.c
msg2pdf.c:24:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^
1 error generated.
make[2]: *** [msg2pdf.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2