I'm having trouble compiling DFB with avifile support. It builds fine if I
leave out avifile, but tonight I decided to see if I could get it working.
So far, no success.

The first problem I hit was: idirectfbvideoprovider_avifile.cpp:322: no
matching function for call to `avm::IAviPlayer::GetVideoLength ()'. Looking
in the avifile headers, I noted the presence of a method
GetVideoLengthTime() but not GetVideoLength(), so I changed that in
idirectfbvideoprovider_avifile.cpp. Running make again, that problem
apparently disappeared, but there were these messages:

idirectfbvideoprovider_avifile.cpp: In function `enum DFBResult
Construct(IDirectFBVideoProvider *, const char *)':
idirectfbvideoprovider_avifile.cpp:413: implicit declaration of function
`int CreateAviPlayer(...)'
idirectfbvideoprovider_avifile.cpp:413: assignment to `IAviPlayer *' from
`int' lacks a cast

Line 413 reads: data->player = CreateAviPlayer( filename, 16 /* FIXME */ );
Obviously something does need to be fixed, but I don't know what; the
compiler is complaining that data->player is an int, when, judging from the
source, it should be an IAviPlayer*, which is just what CreateAviPlayer
requires. Why does it think it's an int??

This one also popped up, but I haven't tried to tackle it yet, having failed
to figure out the int issue:

idirectfbvideoprovider_avifile.cpp:415: no matching function for call to
`avm::IAviPlayer::SetDrawCallback2 (void (&)(const CImage *, void *),
IDirectFBVideoProvider_AviFile_data *&)'

If anyone has some ideas to fix this, I'd appreciate hearing them. By the
way, the version of libavifile I have is 0.7.15.20020816-1, from Debian
unstable. I didn't notice a mention of a specific version in the README, so
I assume that's not the problem, but who knows.

-- 
Furrfu!         r a k k o  at  c h a r t e r  dot  n e t


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to