[mythtv-users] mythmusic alternatives

Willy Boyd willyboyd at gmail.com
Sat Jul 14 00:04:10 UTC 2007


On 7/13/07, Jonatan <mythtv at comhem.se> wrote:
> Tim Phipps wrote:
> > On Wednesday 11 July 2007 11:09 pm, Jonatan wrote:
> >> Here is the first version of the plugin:
> >> http://web.comhem.se/mythmpc/mythmpc-0.1.tar.bz2.
> >
> > I get this error from 'make':
> > cd mythmpc && make -f Makefile
> > make[1]: Entering directory `/home/tim/MythTV/plugins/mythmpc-0.1/mythmpc'
> > g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/libmpd -I/usr/include/qt3 -o
> > main.o main.cpp
> > /usr/include/qt3/qsqldatabase.h:63: warning: 'class QSqlDriverCreatorBase' has
> > virtual functions but non-virtual destructor
> > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:75:
> > error: template with C linkage
> > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:157:
> > error: template with C linkage
> > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:930:
> > error: template with C linkage
> >
> > Google didn't help, any idea what that error means?
> >
> > Cheers,
> > Tim.
> >
> > PS. I'm using Debian etch.
>
> Seems to be a bug in libmpd-dev on Debian etch.  Look in
> /usr/include/libmpd/libmpdclient.h and you'll see that line 603 reads
>
> #ifdef _cplusplus
>
> instead of
>
> #ifdef __cplusplus
>
> Fix that and it will probably compile.
>
> /Jonatan
> ___________________

FWIW, I got the same error on Fedora Core 6.  I made the suggested
change and the compile got further.  Now I get this:

playbackbox.cpp:1095: error: 'mpd_playlist_get_song_from_pos' was not
declared in this scope
make[1]: *** [playbackbox.o] Error 1
make[1]: Leaving directory `/usr/local/src/mythplugins/mythmpc'
make: *** [sub-mythmpc] Error 2

Admittedly, this is on recent trunk and not the fixes branch.  I
figured it was worth a shot (I'm on trunk already and can regress).
If this error is likely because of that alone, then nevermind :)

Thanks for the effort -- a Myth mpd client is awesome!
- Willy


More information about the mythtv-users mailing list