[Ekiga-devel-list] win32 build updated




Hi all,
due to the huge demand of the win32 build I have updated Ekiga's Makefile to
work with current ptlib, opal and ekiga svn trunk. The only issue remaining are
the changes made in

revision 18828: Fixed UNICODE support issue where wchar_t is not precisely the
same thing as the WORD (aka unsigned short) type previously used in strings.

and the corresponding OPAL commit. It completely breaks Ekiga's
cross-compilation with errors like this:

./src/ptclib/asner.cxx: In member function 'PBoolean
PASN_BMPString::IsLegalCharacter(WORD)':
./src/ptclib/asner.cxx:1490: error: invalid conversion from 'const short
unsigned int*' to 'const wchar_t*'
In file included from ./src/ptclib/asner.cxx:2498:
./src/ptclib/asnber.cxx: In member function 'void
PASN_BMPString::EncodeBER(PBER_Stream&) const':
./src/ptclib/asnber.cxx:246: error: invalid cast from type 'const PWCharArray'
to type 'const wchar_t*'

[...]

./src/ptlib/common/contain.cxx: In constructor 'PString::PString(const
PWCharArray&)':
./src/ptlib/common/contain.cxx:631: error: invalid conversion from 'const short
unsigned int*' to 'const wchar_t*'
./src/ptlib/common/contain.cxx:631: error:   initializing argument 1 of 'void
PString::InternalFromUCS2(const wchar_t*, int)'
./src/ptlib/common/contain.cxx: In member function 'PWCharArray
PString::AsUCS2() const':
./src/ptlib/common/contain.cxx:1695: error: invalid conversion from 'short
unsigned int*' to 'WCHAR*'
./src/ptlib/common/contain.cxx:1695: error:   initializing argument 5 of 'int
MultiByteToWideChar(UINT, DWORD, const CHAR*, int, WCHAR*, int)'

Craig, Robert, I do not know if you are both subscribed to this list, but if you
are, could you give it a look?

In case someone wants to build a win32 ekiga he/she can do the following:
- get the buildscript like described on the wiki
- make update-sources
- aplly the enclosed patches to opal and ptlib, which revert the WideChar
commits
- make

The resulting executable and installer have not been tested by me though, so no
guarantee it will work...

I have also updated the wiki, separating 2.0 stuff from 3.0 stuff. However, we
will probably drop the 2.0 stuff since it is coming to an end-of-life...

Matthias



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: win32_opal.patch
Description: Binary data

Attachment: win32_ptlib.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]