Skip to content

Instantly share code, notes, and snippets.

Building Custom Rule C:/Users/Rainer/Projects/sc/webkit/Source/WebCore/CMakeLists.txt
CMake does not need to re-run because C:/Users/Rainer/Projects/sc/webkit/build/Source/WebCore/CMakeFiles/generate.stamp is up
-to-date.
Generating ../../DerivedSources/WebCore/WebKitVersion.h
Generating ../../DerivedSources/WebCore/InspectorOverlayPage.h, ../../DerivedSources/WebCore/InspectorOverlayPage.combined.ht
ml
Generating ../../DerivedSources/WebCore/CommandLineAPIModuleSource.h, ../../DerivedSources/WebCore/CommandLineAPIModuleSource
.min.js
Generating ../../DerivedSources/WebCore/ColorData.cpp
Generating ../../DerivedSources/WebCore/XMLViewerCSS.h, ../../DerivedSources/WebCore/XMLViewer.min.css
ImageBufferQt.cpp
C:\Users\Rainer\Projects\sc\webkit\Source\WebCore\platform\graphics\qt\GraphicsContextQt.cpp(73): fatal error C1083: Cannot open include file: 'private/qpdf_p.h': No such file or directory [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebCore\WebCore.vcxproj]
ImageDecoderQt.cpp
ImageQt.cpp
C:\Users\Rainer\Projects\sc\webkit\Source\WebCore\platform\graphics\qt\ImageBufferDataQt.cpp(54): fatal error C1083: Cannot open include file: 'private/qopenglpaintengine_p.h': No such file or directory [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebCore\WebCore.vcxproj]
IntPointQt.cpp
IntRectQt.cpp
IntSizeQt.cpp
PathQt.cpp
PatternQt.cpp
if (CMAKE_VERSION VERSION_LESS 2.8.3)
message(FATAL_ERROR "Qt 5 requires at least CMake version 2.8.3")
endif()
get_filename_component(_qt5Gui_install_prefix "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
# For backwards compatibility only. Use Qt5Gui_VERSION instead.
set(Qt5Gui_VERSION_STRING 5.8.0)
"C:\Users\Rainer\Projects\sc\webkit\build\install.vcxproj" (default target) (1) ->
"C:\Users\Rainer\Projects\sc\webkit\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\Rainer\Projects\sc\webkit\build\Tools\QtTestBrowser\QtTestBrowser.vcxproj" (default target) (9) ->
"C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj" (default target) (10) ->
(ClCompile target) ->
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp(65): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'WTF::String' [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj]
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp(86): error C2664: 'HANDLE FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW)': cannot convert argument 1 from 'UChar *' to 'LPCWSTR' [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj]
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp(95):
"C:\Users\Rainer\Projects\sc\webkit\build\install.vcxproj" (default target) (1) ->
"C:\Users\Rainer\Projects\sc\webkit\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\Rainer\Projects\sc\webkit\build\Tools\QtTestBrowser\QtTestBrowser.vcxproj" (default target) (9) ->
"C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj" (default target) (10) ->
(ClCompile target) ->
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp(339): error C2660: 'nullTerminatedWCharToString': function does not take 1 arguments [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj]
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginPackageWin.cpp(249): error C2143: syntax error: missing ')' before 'return' [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\WebKit.vcxproj]
After adding argument moduleFileNameLen (?) in PluginDatabaseWin.cpp 339, and a closing parenthesis at the end of PluginPackageWin.cpp 249, this:
PluginViewWin.cpp
C:\Users\Rainer\Projects\sc\webkit\Source\WTF\wtf/Vector.h(1211): error C2664: 'WTF::String::String(const WTF::String &)': cannot convert argument 1 from 'WCHAR [260]' to 'cons
t UChar *' (compiling source file C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp) [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebKit\We
bKit.vcxproj]
C:\Users\Rainer\Projects\sc\webkit\Source\WTF\wtf/Vector.h(1211): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style c
ast (compiling source file C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp)
C:\Users\Rainer\Projects\sc\webkit\Source\WebKit\win\Plugins\PluginDatabaseWin.cpp(355): note: see reference to function template instantiation 'void WTF::Vector<WTF::String,
0,WTF::CrashOnOverflow,16>::append<WCHAR(&)[260]>(U)' being compiled
with
[
"C:\Users\Rainer\Projects\sc\webkit\build\install.vcxproj" (default target) (1) ->
"C:\Users\Rainer\Projects\sc\webkit\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\Rainer\Projects\sc\webkit\build\Source\WebCore\ANGLESupport.vcxproj" (default target) (4) ->
(ClCompile target) ->
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\xtree(1480): warning C4718: 'std::_Tree<std::_Tmap_traits<enum TBasicType,enum
TPrecision,std::less<enum TBasicType>,pool_allocator<std::pair<enum TBasicType const ,enum TPrecision> >,0> >::_Erase': recursive call has no side effects, deleting [C:\Users\
Rainer\Projects\sc\webkit\build\Source\WebCore\ANGLESupport.vcxproj]
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\xtree(1480): warning C4718: 'std::_Tree<std::_Tmap_traits<enum TBasicType,enum
TPrecision,std::less<enum TBasicType>,pool_allocator<std::pair<enum TBasicType const ,enum TPrecision> >,0> >::_Erase': recursive
CSSPropertyNames.cpp
StyleBuilder.cpp
C:\Users\Rainer\Projects\sc\webkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(150): error C2664: 'WTF::HashTableAddResult<WTF::Ha
shTableIterator<Key,Value,Extractor,HashFunctions,Traits,KeyTraits>> WTF::HashSet<WTF::String,WTF::ASCIICaseInsensitiveHash,WTF::HashTraits<WTF::String>>::add(WT
F::String &&)': cannot convert argument 1 from 'LPWSTR' to 'const WTF::String &' [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebCore\WebCore.vcxproj]
with
[
Key=WTF::String,
Value=WTF::String,
Extractor=WTF::IdentityExtractor,
JSANGLEInstancedArrays.cpp
JSCanvasRenderingContext2D.cpp
C:\Users\Rainer\Projects\sc\webkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(151): error C2664
: 'WTF::HashTableAddResult<WTF::HashTableIterator<Key,Value,Extractor,HashFunctions,Traits,KeyTraits>> WTF::HashSet<WTF::String
,WTF::ASCIICaseInsensitiveHash,WTF::HashTraits<WTF::String>>::add(WTF::String &&)': cannot convert argument 1 from 'LPWSTR' to
'const WTF::String &' [C:\Users\Rainer\Projects\sc\webkit\build\Source\WebCore\WebCore.vcxproj]
with
[
Key=WTF::String,
Value=WTF::String,
@bagong
bagong / qtwebkit-ng-vcpkg.md
Last active May 8, 2017 17:21
Build description qtwebkit-ng (v. post tp5) using vcpkg

VS2017 Qt5.8 vcpkg build

Motivation

  • Building QtWebKit-Rl through vcpkg will reduce the build to issuing vcpkg install qtwebkit-rl:x64-windows
  • All libs will use consistent build-environment and -parameters
  • All dependencies will be handled automatically

Environment

  • VS 2017 15.1 (vcpkg supports VS2015 and 2017, but pushes to use 2017)