I have a question about compiling IMMS plugins from source. Usually
when I run ./configure I get messages like
>checking audacious/plugin.h usability... no
>checking audacious/plugin.h presence... no
>checking for audacious/plugin.h... no
>...
>configure: WARNING: Not building audacious plugin
I thought this was because I was missing a plugin.h file for
audacious. But I can't see any plugin.h in the source repository or
the packages, so I'm not sure if one should exist.
It looks like what is actually needed is some of the source files for
audacious; in particular source for libmowgli. Once I downloaded this
to the right place the configure script found it just fine, and got
ready to build the audacious IMMS plugin.
When compiling IMMS, however, I get errors on the audacious plugin
that look like this:
>../clients/audacious/audplugin.cc:55: error: ‘GeneralPlugin’ does not name a type
>../clients/audacious/audplugin.cc:66: error: expected constructor, destructor, or type conversion before ‘*’ token
>...
>../clients/audacious/audplugin.cc:77: error: ‘audacious_drct_get_playlist_file’ was not declared in this scope
>../clients/audacious/audplugin.cc:81: error: ‘aud_filename_to_utf8’ was not declared in this scope
So my questions are
1. I can't see a definition for GeneralPlugin anywhere in the code. Am
I missing something? Should this be defined already or should I write
it myself in plugin.h?
2. Where are functions like audacious_drct_get_playlist_file()
supposed to be defined? Are they in some header file that I'm missing
or should be writing myself? I can't find a function like that in the
IMMS code or the Audacious code.
Just trying to check if I should be writing this header file myself,
or if I'm missing something obvious. When package maintainers
distribute packages how do they compile IMMS plugins?
Thanks
Dave