Minimal build QtWebKit - inspector not working
-
Hello,
I building QtWebKit from this link https://github.com/annulen/webkit/archive/qtwebkit-5.212.0-alpha2.tar.gz.I build qtwebkit on Windows with following parameters: (minimal build)
perl Tools/Scripts/build-webkit --qt --debug --cmakeargs="-Wno-dev -DCMAKE_PREFIX_PATH=d:\Qt\5.10.1\msvc_cust -Thost=x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DUSE_LIBHYPHEN=OFF -DENABLE_INTL=OFF -DUSE_GSTREAMER=OFF -DUSE_MEDIA_FOUNDATION=OFF -DUSE_QT_MULTIMEDIA=OFF -DUSE_WOFF2=OFF -DENABLE_OPENGL=ON -DENABLE_QT_GESTURE_EVENTS=ON -DENABLE_QT_WEBCHANNEL=OFF -DENABLE_WEBKIT2=OFF -DENABLE_X11_TARGET=OFF -DENABLE_API_TESTS=OFF -DENABLE_CSS_GRID_LAYOUT=OFF -DENABLE_DEVICE_ORIENTATION=OFF -DENABLE_FULLSCREEN_API=ON -DENABLE_LEGACY_WEB_AUDIO=OFF -DENABLE_XSLT=ON -DENABLE_GEOLOCATION=OFF -DENABLE_SPELLCHECK=OFF -DENABLE_VIDEO=OFF -DENABLE_TOOLS=OFF -DENABLE_TEST_SUPPORT=OFF -DENABLE_WEB_AUDIO=OFF" -G \"Visual Studio 14 2015 Win64\" --no-battery-status --no-css-shapes --no-fetch-api --no-ftpdir --no-geolocation --no-mathml --no-accelerated-2d-canvas --no-arrowfunction-syntax --no-canvas-path --no-channel-messaging --no-class-syntax --no-generators --no-template-literal-syntax --no-csp-next --no-css-device-adaptation --no-css-grid-layout --no-css-box-decoration-break --no-css-image-orientation --no-css-image-resolution --no-css-image-set --no-css-regions --no-css-compositing --no-custom-elements --no-custom-scheme-handler --no-datalist-element --no-details-element --no-dom4-events-constructor --no-download-attribute --no-gamepad --no-high-dpi-canvas --no-icon-database --no-indexed-database --no-input-speech --no-input-type-date --no-nput-type-datetime --no-input-type-datetimelocal --no-input-type-month --no-input-type-time --no-input-type-week --no-intl --no-legacy-notifications --no-legacy-vendor-prefixes --no-legacy-web-audio --no-link-prefetch --no-media-capture --no-media-source --no-media-statistics --no-media-stream --no-meter-element --no-mhtml --no-mouse-cursor-scale --no-navigator-content-utils --no-navigator-hardware-concurrency --no-netscape-plugin-api --no-nosniff --no-notifications --no-orientation-events --no-performance-timeline --no-promises --no-proximity-events --no-quota --no-resolution-media-query --no-resource-timing --no-sampling-profiler --no-seccomp-filters --no-scripted-speech --no-shadow-dom --no-streams-api --no-subtle-crypto --no-svg-fonts --system-malloc --no-template-element --threaded-compositor --no-text-autosizing --no-touch-events --no-touch-slider --no-touch-icon-loading --no-user-timing --no-vibration --no-webgl --no-webassembly --no-web-animations --no-web-audio --no-web-replay --no-web-timing --no-ftl-jit
But (Web)Inspector not showing with these parameters.
Could you please give me advice on build parameters? What build parameters I should turn on to Inspector work? -
Try this:
perl Tools/Scripts/build-webkit --qt --debug --cmakeargs="-Wno-dev -DCMAKE_PREFIX_PATH=d:\Qt\5.10.1\msvc_cust -Thost=x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DUSE_WOFF2=OFF -DENABLE_QT_WEBCHANNEL=OFF -DENABLE_WEBKIT2=OFF -DENABLE_FULLSCREEN_API=ON -DENABLE_XSLT=ON -DENABLE_TOOLS=OFF -DENABLE_TEST_SUPPORT=OFF " -G \"Visual Studio 14 2015 Win64\" --no-video --no-ftpdir --no-geolocation --no-device-orientation --no-mathml --no-gamepad --no-icon-database --no-indexed-database --no-intl --no-mhtml --no-netscape-plugin-api --no-svg-fonts --no-webgl
-
@Konstantin-Tokarev said in Minimal build QtWebKit - inspector not working:
Try this:
perl Tools/Scripts/build-webkit --qt --debug --cmakeargs="-Wno-dev -DCMAKE_PREFIX_PATH=d:\Qt\5.10.1\msvc_cust -Thost=x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DUSE_WOFF2=OFF -DENABLE_QT_WEBCHANNEL=OFF -DENABLE_WEBKIT2=OFF -DENABLE_FULLSCREEN_API=ON -DENABLE_XSLT=ON -DENABLE_TOOLS=OFF -DENABLE_TEST_SUPPORT=OFF " -G \"Visual Studio 14 2015 Win64\" --no-video --no-ftpdir --no-geolocation --no-device-orientation --no-mathml --no-gamepad --no-icon-database --no-indexed-database --no-intl --no-mhtml --no-netscape-plugin-api --no-svg-fonts --no-webgl
Thanks, but with this command build ends with errors:
D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(93): error C2065: 'MediaPlayer': undecla red identifier [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(93): error C2065: 'player': undeclared i dentifier [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(93): error C2761: '{ctor}': member funct ion redeclaration not allowed [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(94): error C2448: 'WebCore::MediaPlayerP rivateMediaFoundation::{ctor}': function-style initializer appears to be a function definition [D:\CppProjects\qtwebkit\WebKitBuild\Debug\S ource\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(94): error C2059: syntax error: ':' [D:\ CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(94): error C2065: 'player': undeclared i dentifier [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(96): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(98): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(100): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(101): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] D:\CppProjects\qtwebkit\Source\WebCore\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(102): error C2440: 'initializing': canno t convert from 'nullptr' to 'int' [D:\CppProjects\qtwebkit\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]
-
@Konstantin-Tokarev with
-DUSE_MEDIA_FOUNDATION=OFF
build is ok and Inspector working now. Thanks.