> > If you could put everything online (source, .dll, .lib, .def, etc...)
> > I can sure investigate it further for you.
> http://www.ncenteio.net/ffmpeg_lib.tar (~9.5Mb)

Hi,

I've just tested your files with my setup (Gentoo Linux, using SynCE
to communicate with my WM5 PDA) and I've done this by creating 2
small test application's which links to respectively avcodec-51.dll
and avutil-49.dll.

These small test application's look like this :

#include <stdio.h>
#include "avcodec.h"

int main()
{
        printf("hello from main\n");
        avcodec_init();

        return 0;
}

--

#include <stdio.h>
#include "common.h"

int main()
{
        void *data;

        printf("hello from main\n");
        data = av_malloc(1);
        printf("data = %#x\n", data);
        av_free(data);

        return 0;
}

--

To generate cegcc-compatible import libraries I first altered the
.def's by prepending a rule to the file like 'LIBRARY "avcodec-51.dll"'
and after that I used this command :

arm-wince-cegcc-dlltool -d avcodec-51.def -l avcodec-51.a
arm-wince-cegcc-dlltool -d avutil-49.def -l avutil-49.a

(sidenote: the arm-wince-cegcc-dlltool isn't installed by default..
 I've hacked around in binutils so that this program gets generated)

Anyway, I can compile these 2 test applications with cegcc, but only
one of these two work successfully on my PDA..only the application
which uses avutil-49.dll works. The other applicaties gives the
'not a valid PocketPC application' error.

After investigating the failed testapplication with Dependency Walker
I found out that avcodec-51.dll has an reference to avutil-49.dll.
This isn't a problem normally, but there is something fishy going on..
avcodec-51.dll tries to pull in some functions from cegcc.dll
while these functions are part of avutil-49.dll.

I don't know if the avcodec-51.dll hasn't been compiled 'the right way'
or if this is a bug in cegcc, but Pedro and Danny could probably
help you further with that.

You might want to test if you can use the avutil-49.dll from Visual C++.
It should work (as long as you stay away from avcodec-51.dll).

Good luck!

Erik


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to