Hi all,
Any help with this would be much appreciated. I have downloaded and installed the following tools as per the build instructions:
- python-2.7.6
- ActivePerl-5.18.1.1800-MSWin32-x86-64int-297570
- cmake-2.8.12.2-win32-x86
- win_flex_bison-latest
- gperf-3.0.1
Into a Windows Virtual PC, running 32bit Windows XP SP3. I chose this because I thought using a 32bit XP machine would present less issues, and also because I wanted a 'clean' OS for the development environment. I downloaded the WebKit source of a known 'green' revision from SVN.
There are no spaces in any tool / src paths, and my PATH variable contains the tools.
Visual Studio 2008 is installed with C# and C++ language development options enabled. My available target platforms are 'Pocket PC 2003', 'Windows CE', 'Windows Mobile 5.0 Smartphone SDK', 'Windows Mobile 6 Professional SDK', 'Windows Mobile 6.5.3 Professional DTK' and 'STANDARDSDK_500'.
Installed SDKs are (listed from 'Add or Remove Programs'):
- Standard SDK for Windows CE 5.0
- Windows Mobile 5.0 SDK R2 for Pocket PC
- Windows Mobile 5.0 SDK R2 for Smartphone
- Windows Mobile 6 Professional SDK
- Windows Mobile 6.5.3 Professional DTK
This is the output of my build at the command line:
C:\WebKitBuild>cmake -G "Visual Studio 9 2008 Windows Mobile 6 Professional SDK
(ARMV4I)" -DPORT=WinCE -D3RDPARTY_DIR=C:/webkitthirdparty C:\WebKit
-- Found BISON: C:/WKPF/WinFlexBison/win_bison.exe (found version "2.7")
-- Found FLEX: C:/WKPF/WinFlexBison/win_flex.exe (found version "2.5.37")
-- Found Gperf: C:/WKPF/GnuWin32/bin/gperf.exe
-- Found Perl: C:/Perl/bin/perl.exe (found version "5.18.1")
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.6")
-- Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
CMake Error at CMakeLists.txt:74 (STRING):
string no output variable specified
CMake Error at CMakeLists.txt:84 (MESSAGE):
Unknown CPU ''
-- Configuring incomplete, errors occurred!
See also "C:/WebKitBuild/CMakeFiles/CMakeOutput.log".
See also "C:/WebKitBuild/CMakeFiles/CMakeError.log".
I've also tried with different SDKs, i.e. different values of the -d argument:
Visual Studio 9 2008 Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Visual Studio 9 2008 Windows Mobile 6 Professional SDK (ARMV4I)
Visual Studio 9 2008 STANDARDSDK_500 (ARMV4I)
I looked at CMakeLists.txt and modified the CPU detection to always be hardcoded to ARM, so the relevant section now reads:
# -----------------------------------------------------------------------------
# Determine the target processor
# -----------------------------------------------------------------------------
STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_SYSTEM_PROCESSOR)
SET(WTF_CPU_ARM 1)
I was reticent to do this, but it allowed me to progress. The error message at the command prompt was:
C:\WebKitBuild>cmake -G "Visual Studio 9 2008 STANDARDSDK_500 (ARMV4I)" -DPORT=W
inCE -D3RDPARTY_DIR=C:/webkitthirdparty C:\WebKit
-- The C compiler identification is MSVC 15.0.20720.0
-- The CXX compiler identification is MSVC 15.0.20720.0
-- Check for working C compiler using: Visual Studio 9 2008 STANDARDSDK_500 (ARM
V4I)
-- Check for working C compiler using: Visual Studio 9 2008 STANDARDSDK_500 (ARM
V4I) -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working CXX compiler using: Visual Studio 9 2008 STANDARDSDK_500 (A
RMV4I)
-- Check for working CXX compiler using: Visual Studio 9 2008 STANDARDSDK_500 (A
RMV4I) -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Found BISON: C:/WKPF/WinFlexBison/win_bison.exe (found version "2.7")
-- Found FLEX: C:/WKPF/WinFlexBison/win_flex.exe (found version "2.5.37")
-- Found Gperf: C:/WKPF/GnuWin32/bin/gperf.exe
-- Found Perl: C:/Perl/bin/perl.exe (found version "5.18.1")
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.6")
-- Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
CMake Error at CMakeLists.txt:74 (STRING):
string no output variable specified
-- Enabled features:
[...]
-- WTF_USE_WTFURL OFF
-- Using platform-specific CMakeLists: C:/WebKit/Source/WTF/wtf/PlatformWinCE.cm
ake
-- Using platform-specific CMakeLists: C:/WebKit/Source/JavaScriptCore/PlatformW
inCE.cmake
-- Using platform-specific CMakeLists: C:/WebKit/Source/JavaScriptCore/shell/Pla
tformWinCE.cmake
-- Using platform-specific CMakeLists: C:/WebKit/Source/WebCore/PlatformWinCE.cm
ake
-- Using platform-specific CMakeLists: C:/WebKit/Source/WebKit/PlatformWinCE.cma
ke
-- Configuring incomplete, errors occurred!
See also "C:/WebKitBuild/CMakeFiles/CMakeOutput.log".
See also "C:/WebKitBuild/CMakeFiles/CMakeError.log".
The CMakeError.log is attached. I believe the pertinent text is:
LINK : error LNK2001: unresolved external symbol mainACRTStartup
I found that Patrick had fixed something similar recently, but should it not be in my version of CMake?
Apologies for the long post, but I wanted to give as much information as possible.
Any help getting this to build would be much appreciated,
Thanks,
Chris G