get error when I run nullclient

A.TNG tang.jiyu at gmail.com
Sat Jun 7 11:14:20 EDT 2008


On Sat, Jun 7, 2008 at 10:31 PM, Stu Tomlinson <stu at nosnilmot.com> wrote:
> On Sat, 2008-06-07 at 22:22 +0800, A.TNG wrote:
>> Hi,
>>
>> I read source code of nullclient.c and try to write a protocol plugin
>> and write a IM client with libpurple. Then I met some problems. After
>> I compile the source code and run "./nullclient", I get following
>> message:
>>
>> jiyu at beijing-atng/cygdrive/d/im/pidgin/src/pidgin-2.4.2/libpurple/example
>> $ ./nullclient
>> libpurple initialized.
>> Select the protocol [0--1]:
>>
>> I don't know what does it mean about "Select the protocol" and I find
>> "[0--1]" is totally wrong. Since the source code is :
>>
>> printf("Select the protocol [0-%d]: ", i-1);
>>
>> Please pay attention to the "[0-%d]". Because I get "[0--1]", so the
>> value of "i" is 0.
>
> You need to run "make install" so that the protocol plugins are
> installed where nullclient is looking for them.
>
I find something new. There is a header file "defines.h" in
<pidgin>/libpurple/example. It seems it defines many useful macro.

current file:

#define CUSTOM_USER_DIRECTORY  "/home/jiyu" // original value is "/dev/null"
#define CUSTOM_PLUGIN_PATH     "" // <<-- This macro should not be empty
right? Which path I should specify?
#define PLUGIN_SAVE_PREF       "/home/jiyu/purple/nullclient/plugins/saved"
#define UI_ID                  "nullclient"



-- 
Best Regards,
Tang, Jiyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20080607/951ba802/attachment-0001.html>


More information about the Devel mailing list