Linux下编译chrome生成Makefile阶段出错


#./build/gyp_chromium -Dflag1=value1 -Dflag2=value2

错误提示:

Package dbus-glib-1 was not found in the pkg-config search path.

Perhaps you should add the directory containing `dbus-glib-1.pc'

to the PKG_CONFIG_PATH environment variable

No package 'dbus-glib-1' found。

其实你去locate(搜索)会发现

/usr/lib/pkgconfig/dbus-1.pc

 可能这个dbus-1.pc就是它了。

dbus-glib-1.pc是找不到的

后来我做了下面两步,就能在src下生成Makefile文件了。

#apt-get install libdbus-glib-1-dev

export PKG_CONFIG_PATH="/usr/lib"

没有试过将dbus-1.pc直接改成dbus-glib-1.pc.等以后不能make成功。在试试。既然已经生成了Makefile。那应该暂时没问题了。

相关内容