SOLVED: sylfilter compile error: #error "Only <glib.h> can be included directly."

poma pomidorabelisima at gmail.com
Sun Mar 3 06:17:10 UTC 2013


On 03/03/13 02:00, Ranjan Maitra wrote:
> On Sun, 3 Mar 2013 00:01:06 +0100 poma <pomidorabelisima at gmail.com>
> wrote:
> 
>> On 03/02/13 20:22, Ranjan Maitra wrote:
>>>
>>>
>>> Thanks! 
>>>
>>> I was able to get it to "work" (i.e. compile, etc) with the following:
>>>
>>> ./configure --with-libsylph=sylpheed --with-package=sylpheed
>>> --enable-sqlite=yes --includedir=/usr/include/sylpheed
>>>
>>> make
>>>
>>> make install
>>>
>>> I don't know how convenient it would be to make this into an rpm, but I
>>> thought I would post this to the ML in case someone was looking for it
>>> later. (It does require glib-devel, sylpheed-devel and sqlite-devel to
>>> compile.)
>>
>> 'sylfilter-0.7' missing a couple 'includes' needed for
>> BUILTIN_LIBSYLPH(default), so you don't need all that stunts with
>> 'configure'. :)
>> git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git
>>
>> poma
>>
> 
> Not sure if I am using git correctly....
> 
> $git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git
> Cloning into 'sylfilter'...
> 
> But then, while doing:
> 
> ./configure --with-libsylph=builtin
> 
> or 
> 
> ./configure --with-libsylph=sylpheed
> 
> I get exactly the same error sequences as before. "Fixed" with the same
> commands as before.
> 
> What am I doing wrong?

Patch "sylfilter-0.7-includes.diff" is for "sylfilter-0.7.tar.gz"
exclusively for BUILTIN_LIBSYLPH(--with-libsylph=builtin) which is
default, so "./configure" is adequate. ;)

Patch(attach) "sylfilter-20120116git90da63d-includes.diff" is for the
recent "sylfilter" git;

git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git
cd sylfilter/
git apply --stat ../sylfilter-20120116git90da63d-includes.diff
git apply --check ../sylfilter-20120116git90da63d-includes.diff
git apply ../sylfilter-20120116git90da63d-includes.diff

./configure [--with-libsylph=builtin]
or
./configure --with-libsylph=sylpheed
make

./src/sylfilter -h
--

cheers,
poma



-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylfilter-20120116git90da63d-includes.diff
Type: text/x-patch
Size: 1517 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130303/aff2d1d0/attachment.bin>


More information about the users mailing list