Problem with building QtWebkit 2.3 for Qt4

  • Hi,
    I'm new to webkit build system and have run in following problem:
    Last week I have found this link to kde blog with QtWebKit 2.3 for Qt4. I have read how to build webkit on windows from this link and have created batch environment with which I'm able to build Qt4 itself:
    @echo Setting environment for QT4_GIT with MingW

    @rem PATH
    @rem LIB
    @rem INCLUDE
    @rem LIBPATH

    @set PATH=c:\QT\QT4_GIT\bin
    @set PATH=c:\QT\MinGW\bin;%PATH%
    @set PATH=c:\QT\icu_x86\bin;%PATH%
    @set PATH=c:\QT\gnuwin32\bin;%PATH%
    @set PATH=c:\Python27;c:\Python27\Scripts;%PATH%
    @set PATH=c:\QT\Perl\site\bin;c:\QT\Perl\bin;%PATH%
    @set PATH=c:\QT\Ruby193\bin;%PATH%
    @set PATH=c:\Windows\system32\Wbem;c:\Windows\system32;c:\WINDOWS;%PATH%

    @set LIB=c:\QT\QT4_GIT\lib
    @set LIB=c:\QT\gnuwin32\lib;%LIB%
    @set LIB=c:\QT\MinGW\lib;%LIB%
    @set LIB=c:\QT\icu_x86\lib;%LIB%

    @set INCLUDE=c:\QT\QT4_GIT\include
    @set INCLUDE=c:\QT\icu_x86\include;%INCLUDE%
    @set INCLUDE=c:\QT\gnuwin32\include;%INCLUDE%
    @set INCLUDE=c:\QT\MinGW\include;%INCLUDE%

    @set QTDIR=c:\Qt\QT4_GIT


    all needed GNU tools are installed into gnuwin32(bison,winflex, etc..)

    But then I try to build WebKit It fails on first DerivedSources:

    WARNING: Failure to find: generated\JSXSLTProcessor.cpp
    WARNING: Failure to find: generated\InspectorFrontend.cpp
    WARNING: Failure to find: generated\InspectorBackendDispatcher.cpp
    WARNING: Failure to find: generated\InspectorTypeBuilder.cpp
    WARNING: Failure to find: generated\CSSGrammar.cpp
    WARNING: Failure to find: generated\HTMLNames.cpp
    WARNING: Failure to find: generated\HTMLElementFactory.cpp
    WARNING: Failure to find: generated\JSHTMLElementWrapperFactory.cpp
    WARNING: Failure to find: generated\XMLNSNames.cpp
    WARNING: Failure to find: generated\XMLNames.cpp
    WARNING: Failure to find: generated\WebKitFontFamilyNames.cpp
    WARNING: Failure to find: generated\EventFactory.cpp
    WARNING: Failure to find: generated\ExceptionCodeDescription.cpp
    WARNING: Failure to find: generated\HTMLEntityTable.cpp
    WARNING: Failure to find: generated\ColorData.cpp
    WARNING: Failure to find: generated\UserAgentStyleSheetsData.cpp
    WARNING: Failure to find: generated\XPathGrammar.cpp
    make -f Makefile.WebCore.DerivedSources
    make[3]: Entering directory C:/QT/webkit/WebKitBuild/Release/Source/WebCore' make -f Makefile.WebCore.DerivedSources.Release make[4]: Entering directoryC:/QT/webkit/WebKitBuild/Release/Source/WebCore'
    make[4]: *** Keine Regel vorhanden, um das Target �generated/MathMLNames.cpp�,
    ben�tigt von �obj/release/MathMLNames.o�, zu erstellen. Schluss.
    make[4]: Leaving directory C:/QT/webkit/WebKitBuild/Release/Source/WebCore' make[3]: *** [release] Fehler 2 make[3]: Leaving directoryC:/QT/webkit/WebKitBuild/Release/Source/WebCore'
    make[2]: *** [sub-DerivedSources-pri-make_for_qmake] Fehler 2
    make[2]: Leaving directory C:/QT/webkit/WebKitBuild/Release/Source/WebCore' make[1]: *** [sub-Source-WebCore-WebCore-pro-recursive_qmake] Fehler 2 make[1]: Leaving directoryC:/QT/webkit/WebKitBuild/Release'
    make: *** [incremental] Fehler 2

    It looks like it some precompiled code are not generated. How can I fix it? Is there some kind of tool like qtsync for doing that? Thanks in advance!

  • Hi,

    I am also facing same kind of error. Please post your comments if you were able to solve it.

    Thanks in advance.

  • Did you do a top-down build of overall Qt libraries first?

    Checking out a fresh Qt source tree and directly try to build QtWebKit would probably give the error you are seeing.

  • Hi,

    I didnt build QT libraries. I have downloaded the pre-built mingw QT libraries and used them for building webkit source stree.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.