I am trying to cross compile current opal for Win32 Ekiga. Compilation of recording.cxx with i586-mingw32msvc-g++ stops with the following error:
/home/mrickma/src/ekiga-head/win32/opal/src/opal/recording.cxx:246: error: extra qualification ‘OpalAVIRecordManager::’ on member ‘IsResultError’
make[1]: *** [/home/mrickma/src/ekiga-head/win32/opal/lib_mingw_x86/obj_d/recording.o] Fehler 1
Removing the redundant "OpalAVIRecordManager::" in the mentioned line is sufficent to proceed. When linking the dll (similar later for ekiga.exe) the next error occurs at the end of the long linker command:
/home/mrickma/src/ekiga-head/win32/opal/src/opal/recording.cxx:618: undefined reference to `_AVIStreamWrite@32'
/home/mrickma/src/ekiga-head/win32/opal/lib_mingw_x86/obj_d/recording.o: In function `_ZN20OpalAVIRecordManager9OpenVideoERK7PStringRK15OpalMediaFormat':
many more of these, then in due course
collect2: ld returned 1 exit status
make[1]: *** [/home/mrickma/src/ekiga-head/win32/opal/lib_mingw_x86/libopal_d.3.7-beta0.dll] Fehler 1
this error can be overcome by repeating the link command with -lavifil32 added. Unfortunately I do not know where to add missing libs to the opal build process.
Thank you for fixing recording.cxx . For the missing lib I use attached patch which allows generation of libopal_d.3.7-beta0.dll and for me later ekiga.exe which links in opal statically.
add -lavifil32 to Mingw linking
This was fixed in trunk code, revision 22504.
Note that we are not supporting the MinGW cross compile system, you, or someone, willhave to provide a patch for that.