[Geany] Geany Lua Plugin 0.1

Nick Treleaven nick.treleaven at xxxxx
Thu Sep 6 11:38:24 UTC 2007


On 09/05/2007 07:59:45 PM, Jeff Pohlmeyer wrote:
> Beta testers needed:
>   http://yetanothergeek.justfree.com/geanylua/
> 
This is amazing, great work! I just tried all the default scripts.

One glitch when building lua_dlg.c:
cc -g -Wall `pkg-config --cflags gtk+-2.0` -I../geany/src \
        -I../geany/scintilla/include -I../geany/tagmanager/include -c 
lua_dlg.c
lua_dlg.c: In function ‘glspi_choose’:
lua_dlg.c:127: error: ‘GTK_MESSAGE_OTHER’ undeclared (first use in this 
function)

---

/* Win98 needs an obsolete version of GTK */
#if GTK_MINOR_VERSION <= 6
#define GTK_MESSAGE_OTHER GTK_MESSAGE_INFO
#endif

I have Gtk+ 2.8, and GTK_MESSAGE_OTHER isn't defined (also for 2.6). 
Also Geany requires 2.6, maybe you meant >= 6. So I just commented out 
the #if and #endif lines, so it would build.

Also, the plugin ABI version may change before the Geany 0.12 release, 
so unfortunately you might need to recompile the plugin binaries.

OT: Incidentally, how do you build 'universal' .so's for Linux, and how 
are they limited (e.g. glibc, kernel version)?

Anyway thanks for this plugin :)

Regards,
Nick



More information about the Users mailing list