From: <Dav...@cs...> - 2010-05-28 11:54:09
|
Hi, I have put a quick plugin together for showing the battery state on my laptop, more than anything just to learn the format of plugins and how to add them. I followed the Wiki instuctions to add all the extras in plugin.c, Makefile.am and plugins.m4. The build appeared to work fine but when I tried to call the new function in interactive mode I got this... eval> battinfo() Evaluator: unknown function 'battinfo' in <battinfo()> '' eval> After much hair-pulling and double checking, I tried running lcd4linux under GDB in interactive mode... it works eval> battinfo() Evaluator: wrong number of arguments in <battinfo()> '' eval> battinfo('charging state') 'charged' eval> >From a bit of googling, it seems that when things are working under GDB, but not normally, it is a threading problem. From what I have seen, in interactive mode there are no threads... any ideas??? For the record, When running under GDB, the display will work with my plugin in non-interactive mode Thanks in advance.. David Haddon Software Engineer Automated Systems Laboratory ICT Centre - CSIRO Queensland Centre for Advanced Technology (QCAT) 1 Technology Crt Pullenvale QLD 4069 Ph: +61 733274053 Fax: +61 733274444 Mob: +61 402460248 Dav...@cs... |