get error when I run nullclient

Benjamin Arnaud bunjeee at free.fr
Sat Jun 7 11:46:00 EDT 2008


Hi,

If you've created a "plugins" directory at nullclient's root directory try the following :

#define CUSTOM_PLUGIN_PATH     "plugins/" 

Mr Arnaud.
  ----- Original Message ----- 
  From: A.TNG 
  To: Stu Tomlinson 
  Cc: devel at pidgin.im 
  Sent: Saturday, June 07, 2008 5:14 PM
  Subject: Re: get error when I run nullclient




  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



------------------------------------------------------------------------------


  _______________________________________________
  Devel mailing list
  Devel at pidgin.im
  http://pidgin.im/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20080607/e2734645/attachment.html>


More information about the Devel mailing list