Not able to build CE Webkit for other SDKs

158 views
Skip to first unread message

Rick

unread,
Jun 12, 2012, 3:18:55 PM6/12/12
to Windows CE WebKit
I am trying to get a WebKit port working on a Windows Mobile device. I
am able to successfully create a WinCELauncher.exe but when I run it
on my device I am receiving the following error:
'WinCELauncher' is not a valid Pocket PC application.

After looking at the system specs in Athena my device is a PocketPC
running OS 5.02.21840. I downloaded the Windows Mobile 5.0 Pocket PC
SDK and use the following build commands:

C:\WebKitBuild>cmake -G "Visual Studio 9 2008" -
DCMAKE_WINCE_SDK="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" -
DPORT=WinCE -D3RDPARTY_DIR=c:/webkit/webkit-thirdparty c:\webkit
\webkit-wincewebkit\Source

C:\WebKitBuild>cmake --build . --config Release

The WebCore project seems to be the culprit with 66 errors (see
below). Has anyone else run into similar issues porting the Windows CE
Webkit with other SDKs?

Thanks,

Rick

WebCore Errors:
...
Generating Code...
Compiling...
EditorWin.cpp
CursorWin.cpp
ContextMenuWin.cpp
ContextMenuItemWin.cpp
ClipboardWin.cpp
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(247) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(247) : error C2070: ''unknown-type'': illegal sizeof
operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(251) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(251) : error C2065: 'fgd' : undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(251) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(251) : error C2059: syntax error : ')'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(252) : error C2065: 'fgd' : undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(252) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(252) : error C2070: ''unknown-type'': illegal sizeof
operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(253) : error C2065: 'fgd' : undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(253) : error C2227: left of '->cItems' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(254) : error C2065: 'fgd' : undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(254) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(254) : error C2228: left of '.dwFlags' must have
class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(254) : error C2065: 'FD_FILESIZE' : undeclared
identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(255) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(255) : error C2228: left of '.nFileSizeLow' must
have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(273) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(273) : error C2228: left of '.cFileName' must have
class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(273) : error C2780: 'const _Ty &std::min(const _Ty
&,const _Ty &,_Pr)' : expects 3 arguments - 2 provided
C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include
\xutility(3381) : see declaration of 'std::min'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(274) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(274) : error C2228: left of '.cFileName' must have
class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(708) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(708) : error C2070: ''unknown-type'': illegal sizeof
operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(718) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(718) : error C2061: syntax error : identifier
'FILEGROUPDESCRIPTOR'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(719) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(719) : error C2070: ''unknown-type'': illegal sizeof
operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(720) : error C2227: left of '->cItems' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(721) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(721) : error C2228: left of '.dwFlags' must have
class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(721) : error C2065: 'FD_FILESIZE' : undeclared
identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(722) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(722) : error C2228: left of '.nFileSizeLow' must
have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(724) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(724) : error C2228: left of '.cFileName' must have
class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(724) : error C2780: 'const _Ty &std::min(const _Ty
&,const _Ty &,_Pr)' : expects 3 arguments - 2 provided
C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include
\xutility(3381) : see declaration of 'std::min'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(725) : error C2227: left of '->fgd' must point to
class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardWin.cpp(725) : error C2228: left of '.cFileName' must have
class/struct/union
ClipboardUtilitiesWin.cpp
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(372) : error C2065:
'CFSTR_FILEDESCRIPTOR' : undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(379) : error C2065: 'CFSTR_FILECONTENTS' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(391) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(391) : error C2065: 'fgd' : undeclared
identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(391) : error C2061: syntax error :
identifier 'FILEGROUPDESCRIPTOR'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(392) : error C2065: 'fgd' : undeclared
identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(392) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(392) : error C2228: left of '.nFileSizeLow'
must have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(393) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(393) : error C2228: left of '.cFileName'
must have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(418) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(418) : error C2070: ''unknown-type'':
illegal sizeof operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(422) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(422) : error C2061: syntax error :
identifier 'FILEGROUPDESCRIPTOR'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(423) : error C2065: 'FILEGROUPDESCRIPTOR' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(423) : error C2070: ''unknown-type'':
illegal sizeof operand
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(424) : error C2227: left of '->cItems' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(425) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(425) : error C2228: left of '.dwFlags' must
have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(425) : error C2065: 'FD_FILESIZE' :
undeclared identifier
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(426) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(426) : error C2228: left of '.nFileSizeLow'
must have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(428) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(428) : error C2228: left of '.cFileName'
must have class/struct/union
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(428) : error C2780: 'const _Ty
&std::min(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 2
provided
C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include
\xutility(3381) : see declaration of 'std::min'
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(429) : error C2227: left of '->fgd' must
point to class/struct/union/generic type
type is ''unknown-type''
..\..\webkit-wincewebkit\Source\WebCore\platform\win
\ClipboardUtilitiesWin.cpp(429) : error C2228: left of '.cFileName'
must have class/struct/union

Patrick Gansterer

unread,
Jun 13, 2012, 2:42:09 AM6/13/12
to wince...@googlegroups.com
Lookst to me like your SDK does not provive alle needed functions/structs/defines. E.g. ClipboardWin.cpp needs FILEGROUPDESCRIPTOR, which can't be found in your SDK. Mabye you can try to remove all windows specific, which isn't supported on your device from the code and try if it works afterwards.

-- Patrick

Rick

unread,
Jun 14, 2012, 11:49:09 AM6/14/12
to wince...@googlegroups.com
Thanks for your help Patrick. I was finally able to successfully launch the WinCELauncher.exe but the webview is not navigating to the url when passed in as an argument. All I see is the 'WebKit for WinCE' header. Is there a preferred way to launch the exe or test that my build is functioning correctly?

Thanks,

-Rick

Patrick Gansterer

unread,
Jun 14, 2012, 6:57:37 PM6/14/12
to wince...@googlegroups.com
Did you try it with a simple html file from the local file system? Otherwise there are many reasons (e.g. all kind of network problems) why it fails. Unfortunately the WinCELauncher does not show any error. If you don't want to attach a debugger, the easiest way is to do it step by step via try and error.

-- Patrick
Reply all
Reply to author
Forward
0 new messages