memeco / osd-lyrics

Automatically exported from code.google.com/p/osd-lyrics
GNU General Public License v3.0
1 stars 0 forks source link

0.4.2 stable 与 glib 2.31 的兼容问题 #260

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
openSUSE Factory(openSUSE 12.2的内部开发版)采用了最新的 glib 
2.31,可能由于编译接口的变动,导致编译出现“#error "Only 
<glib.h> can be
included directly."”的错误提示。openSUSE 
官方给出了解决办法,就是把 #include <glib/glibXYZ.h> 替换为 
#include <glib.h>,经测试,该方法有效。
官方回复原文(http://lists.opensuse.org/opensuse-factory/2012-01/msg00055
.html):
Right.

This has been announced at least twice on this list already before the
gnome team submitted glib 2.31 to Factory.

Packages from GNOME:* devel repositories should be fixed, the others
need to be adjusted/patched.

Generally the patch is really simple: replace #include <glib/glibXYZ.h>
with #include <glib.h>

As pointed out in the announcement mails, there are a few exceptions to
the good rule (any good rule has exceptions, right)?

You'll find all the info in the ml-archive.

Dominique

附补丁一枚。

Original issue reported on code.google.com by hillwood...@gmail.com on 19 Jan 2012 at 2:52

Attachments:

GoogleCodeExporter commented 8 years ago
The patch is uploaded. The code in master branch is patched.

Original comment by tigerso...@gmail.com on 19 Jan 2012 at 1:39