If I spoke to Pedro it was a lot easier to explain since both of us speak Portuguese ;)
Danny Backx wrote: > I'm not sure that all of your conclusions are accurate. coredll.dll is a > CE system DLL, you don't need to install it. I don't know about the > other two. I also know that some of CE's files (including DLLs) are > hidden, maybe that's why Dependency Walker doesn't find them. > > After half hour I found that myself... > Two actions to take : > 1. Use another executable built with cegcc to verify that you can build > a working app and use the cegcc.dll with it. You can either compile > something for yourself or pick it up from the cegcc website, e.g. the > menu-resource.exe from http://cegcc.sourceforge.net/docs/using.html . > > 2. I've seen the "not a valid" message before. As it turned out, the > DEF file I was using to build the DLL library was not entirely > correct. I've done exactly the same thing for you, and we may have > the same problem that the src/cegcc/importlibs/defs/mmtimer.def > may contain invalid entries. > Try removing the calls to this DLL from your app and see whether it > starts up well without the mmtimer DLL ? > > It will be hard to find where in the ffmpeg the dll is used... > If both of these work, then I can create a smaller mmtimer library, and > we can do some trial and error to verify what works. > > Danny > > Well... Since I'm running out of time I have done one thing... I've generated static libraries of ffmpeg and add them on my Visual C++ project... Then when I build I get a lot of linking problems... To solve that I've copied all the .a's present on the lib folder of CeGcc and add them too to my project... It now compiles and links... I was surfing CeGcc page and I find out that to start I need a WinMain(...) function... So I create a new "Win32 SmartDevice Application" instead of a MFC application... Now it starts to run but gives me some weird errors on runtime... Load module: ffmpeg_main.exe Load module: coredll.dll.0409.mui Load module: coredll.dll Prefetch Abort: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' AKY=00040001 PC=80000753(???+0x80000753) RA=000121b8(ffmpeg_main.exe+0x000021b8) BVA=80000753 FSR=0000040d Undefined Instruction: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' AKY=00040001 PC=00209fb4(ffmpeg_main.exe+0x001f9fb4) RA=f000fffc(???+0xf000fffc) BVA=487e4c00 FSR=00000405 Undefined Instruction: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' AKY=00040001 PC=00209fb4(ffmpeg_main.exe+0x001f9fb4) RA=f000fffc(???+0xf000fffc) BVA=2626a050 FSR=00000405 Undefined Instruction: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' AKY=00040001 PC=00209fb4(ffmpeg_main.exe+0x001f9fb4) RA=f000fffc(???+0xf000fffc) BVA=2626a050 FSR=00000405 Undefined Instruction: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' AKY=00040001 PC=00209fb4(ffmpeg_main.exe+0x001f9fb4) RA=f000fffc(???+0xf000fffc) BVA=2626a050 FSR=00000405 Undefined Instruction: Thread=96bbd2f4 Proc=814c72e0 'ffmpeg_main.exe' and it continues until I stop the application or reset the device... By the way... Here is my command line for compilation: /Od /Os /I "C:\Documents and Settings\Nuno Centeio\Desktop\ffmpeg_lib\ffmpeg" /D "_DEBUG" /D "_WIN32_WCE=0x501" /D "UNDER_CE" /D "WIN32_PLATFORM_PSPC" /D "WINCE" /D "DEBUG" /D "_WINDOWS" /D "ARM" /D "_ARM_" /D "_UNICODE" /D "UNICODE" /D "POCKETPC2003_UI_MODEL" /Gm /EHsc /MTd /fp:fast /GR /Yu"stdafx.h" /Fp"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/ffmpeg_main.pch" /Fo"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/" /Fd"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/vc80.pdb" /W3 /nologo /c /Zi /TP And for linking: /OUT:"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/ffmpeg_main.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Documents and Settings\Nuno Centeio\Desktop\ffmpeg_lib\static" /MANIFEST:NO /NODEFAULTLIB:"oldnames.lib" /DEBUG /PDB:"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/ffmpeg_main.pdb" /ERRORREPORT:PROMPT libaygshell.a libcegcc.dll.a libcegccthrd.dll.a libceshell.a libcommctrl.a libcoredll.a libg.a libiphlpapi.a libm.a libmmtimer.a libssp.a libssp_nonshared.a libstdc++.a libstdc++.dll.a libsupc++.a libwinsock.a libws2.a libavutil.a libavcodec.a libavformat.a coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib My WinMain function: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { MSG msg; // Perform application initialization: if (!InitInstance(hInstance, nCmdShow)) { return FALSE; } HACCEL hAccelTable; hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_FFMPEG_MAIN)); MessageBoxW(0, L"HELLO!", L"HeLLO!", 0); FILE *f = fopen("teste.txt", "wt"); fprintf(f, "Antes\n"); av_register_all(); fprintf(f, "Depois\n"); fclose(f); MessageBoxW(0, L"HELLO!", L"HedsasadLLO!", 0); // Main message loop: while (GetMessage(&msg, NULL, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return (int) msg.wParam; } Can you see the "av_register_all()"? That's a function from ffmpeg... If I remove that line the application works... Well, I hope that you can understand my problem... Perhaps if we speak on some IM program it will be better... I know that linking with all the CeGcc lib's is not the best solution but I'm really stuck on this :( Thanks for support > On Tue, 2007-01-16 at 11:13 +0000, Cool_Zer0 wrote: > >> Hi there, >> >> I have build ffmpeg with success (I guess!)... >> Now it's time to test it on a device/emulator... >> >> First I've put only the 3 dll's of ffmpeg on the same folder and the >> emulator keeps saying that a file is missing... >> >> After that I've installed Dependency Walker and stated that each dll >> from ffmpeg need a cegcc.dll. >> When I put that cegcc.dll it takes longer to appear something but the >> message "App is not a valid Pocket PC application" appears... >> Dependency Walker says that he can't find COREDLL, IPHLPAPI and >> MMTIMER... >> >> But seems that I don't have any coredll.dll :( >> # locate coredll >> /usr/ppc/arm-wince-cegcc/lib/libcoredll.a >> /usr/ppc/arm-wince-mingw32ce/lib/libcoredll.a >> >> >> Anyone can help me? >> Thanks >> ------------------------------------------------------------------------- >> 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 >> ------------------------------------------------------------------------- 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