[mythtv] LastFM support in MythMusic
Willem Ligtenberg
wligtenberg at gmail.com
Tue Feb 26 10:43:43 UTC 2008
Well, with the risk of seeming stupid.
I will admit that this is my first C++ coding in a larger project. The
other stuff I did were my own small project where I could do
everything the way I wanted it.
This time I had my md5 functionality working using a library, but I
have found out that the devvers don't really like to include many
libraries let alone for only one function.
I can understand that of course.
But now I want to reuse the md5 function used in avutils.
It now compiles if I include the following header:
#include <mythtv/ffmpeg/md5.h>
Although this obviously generates a runtime error, because I haven't
linked anything yet. My question is now what do I have to add in the
makefile (or rather somewhere else, so that qmake makes the correct
makefile) so that it will link as it should?
I have tried linking to ffmpeg, but that doesn't work.
Thanks for the help,
Willem
On Mon, Feb 25, 2008 at 7:37 PM, Nigel Pearson <nigel at ind.tansu.com.au> wrote:
>
> > What do you mean with an AVMD5?
>
> Look at the header:
>
> % cat src/mythtv/libs/libavutil/md5.h
> ...
> struct AVMD5;
>
> void av_md5_init(struct AVMD5 *ctx);
> void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int
> len);
> void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
> void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
>
> #endif /* FFMPEG_MD5_H */
>
>
> I'm assuming that context is a variable
> that you are passing to these functions?
>
> --
> Nigel Pearson, nigel at ind.tansu.com.au| $50 million worth of
> Telstra Net. Eng., Sydney, Australia | hardware and you didn't
> Office: 9202 3900 Fax: 9261 3912 | think we'd throw in a GPS?
> Mobile: 0408 664435 Home: 9792 6998 | - Jonas, Bionic Woman
>
>
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
More information about the mythtv-dev
mailing list