Results 1 to 3 of 3

Thread: [QtWebKit] - MSVC2005 WebCore build failed

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Unhappy [QtWebKit] - MSVC2005 WebCore build failed

    Hi,

    I'm newbie to Qt. I'm trying to compile Qt Open Source Edition by myself and am almost there to get the fully working Qt development environment. I'm stuck with WebCore building. Here's and error:

    cl -c -FIWebKit_pch.h -YuWebKit_pch.h -Fptmp\obj\release_shared\QtWebKit
    _pch.pch -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -DQT_SHARED -DQT_THREAD_S
    UPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DUSE_SYSTEM_M
    ALLOC -DNDEBUG -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3
    _SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILD_WEBKIT -DENABLE_ICONDATABAS
    E=0 -DENABLE_XPATH=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JA
    VASCRIPTCORE_BINDINGS=1 -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQ
    T_CORE_LIB -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\.
    .\..\..\include\QtNetwork" -I"..\..\..\..\include\QtNetwork" -I"..\..\..\..\incl
    ude\QtGui" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"c:\develop\t
    ools\mysql-5.0.51b\include" -I"c:\develop\tools\openssl-0.9.8h\inc32" -I"c:\PROG
    RA~1\MID05A~1\VC\include" -I"c:\PROGRA~1\MICROS~3\Include" -I"c:\PROGRA~1\Postgr
    eSQL\8.3\include" -I"c:\PROGRA~1\Firebird\Firebird_2_1\include" -I"..\WebKit\qt\
    Api" -I"..\JavaScriptCore" -I"..\JavaScriptCore\kjs" -I"..\JavaScriptCore\bindin
    gs" -I"..\JavaScriptCore\bindings\c" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptC
    ore\ForwardingHeaders" -I"." -I"ForwardingHeaders" -I"platform" -I"platform\netw
    ork" -I"platform\graphics" -I"loader" -I"page" -I"css" -I"dom" -I"bridge" -I"edi
    ting" -I"rendering" -I"history" -I"xml" -I"html" -I"plugins" -I"..\..\..\..\incl
    ude\QtWebKit" -I"tmp\rcc\release_shared" -I"tmp" -I"generated" -I"tmp" -I"..\Jav
    aScriptCore" -I"..\JavaScriptCore\kjs" -I"..\JavaScriptCore\bindings" -I"..\Java
    ScriptCore\bindings\c" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\bindings\q
    t" -I"..\JavaScriptCore\os-win32" -I"..\JavaScriptCore\pcre" -I"c:\develop\tools
    \qt-win\src\3rdparty\webkit\WebKitBuild\Debug\JavaScri ptCore\kjs\tmp" -I"platfor
    m\qt" -I"platform\network\qt" -I"platform\graphics\qt" -I"platform\graphics\svg\
    qt" -I"loader\qt" -I"page\qt" -I"..\WebKit\qt\WebCoreSupport" -I"..\WebKit\qt\Ap
    i" -I"." -I"ForwardingHeaders" -I"..\..\webkit" -I"..\JavaScriptCore\kjs" -I"..\
    JavaScriptCore\bindings" -I"platform" -I"platform\network" -I"platform\graphics"
    -I"platform\graphics\svg" -I"platform\graphics\svg\filters" -I"loader" -I"loade
    r\icon" -I"css" -I"dom" -I"page" -I"bridge" -I"editing" -I"rendering" -I"history
    " -I"xml" -I"html" -I"bindings\js" -I"ksvg2" -I"ksvg2\css" -I"ksvg2\svg" -I"ksvg
    2\misc" -I"ksvg2\events" -I"platform\image-decoders" -I"c:\develop\tools\qt-win\
    include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-
    msvc2005" -Fotmp\obj\release_shared\JSEventTargetNode.obj bindings\js\JSEventTar
    getNode.cpp
    JSEventTargetNode.cpp
    ..\JavaScriptCore\wtf/PassRefPtr.h(37) : error C2027: use of undefined type 'Web
    Core::Event'
    c:\develop\tools\qt-win\src\3rdparty\webkit\webcore\bindings\js\kjs_bi nd
    ing.h(37) : see declaration of 'WebCore::Event'
    ..\JavaScriptCore\wtf/PassRefPtr.h(37) : while compiling class template
    member function 'WTF::PassRefPtr<T>::PassRefPtr(T *)'
    with
    [
    T=WebCore::Event
    ]
    dom\EventTargetNode.h(55) : see reference to class template instantiatio
    n 'WTF::PassRefPtr<T>' being compiled
    with
    [
    T=WebCore::Event
    ]
    ..\JavaScriptCore\wtf/PassRefPtr.h(37) : error C2227: left of '->ref' must point
    to class/struct/union/generic type
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows
    Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
    Stop.

    My configuration is : configure.exe -release -shared -qt-sql-odbc -qt-sql-sqlite -plugin-sql-mysql -plugin-sql-psql -plugin-sql-ibase -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -qt-style-windowsce -qt-style-windowsmobile -platform win32-msvc2005 -openssl -phonon -I C:\develop\tools\mysql-5.0.51b\include -L C:\develop\tools\mysql-5.0.51b\lib\opt -I C:\develop\tools\openssl-0.9.8h\inc32 -L C:\develop\tools\openssl-0.9.8h\out32_MD_shared -I C:\PROGRA~1\MID05A~1\VC\include -L C:\PROGRA~1\MID05A~1\VC\lib -I C:\PROGRA~1\MICROS~3\Include -L C:\PROGRA~1\MICROS~3\Lib -I C:\PROGRA~1\PostgreSQL\8.3\include -L C:\PROGRA~1\PostgreSQL\8.3\lib -I C:\PROGRA~1\Firebird\Firebird_2_1\include -L C:\PROGRA~1\Firebird\Firebird_2_1\lib

    My environment settings are:
    SET INCLUDE="C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;"%INCLUDE%
    SET INCLUDE="C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\crt;"%INCLUDE%
    SET LIB="C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;"%LIB%
    SET LIBS="C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;"%LIBS%

    SET INCLUDE="C:\Program Files\Microsoft Visual Studio 8\VC\include;"%INCLUDE%
    SET LIB="C:\Program Files\Microsoft Visual Studio 8\VC\lib;"%LIB%
    SET LIBS="C:\Program Files\Microsoft Visual Studio 8\VC\lib;"%LIBS%

    SET INCLUDE=%INCLUDE%";C:\Program Files\Debugging Tools for Windows\winext\manifest;"

    I use VC++ 2005 Express Edition and Windows PSDK Server 2003 R2.

    When I add #include "Event.h" the same error is moved to JavaScriptCore\wtf/RefPtr.h and even I add the #include "Event.h" to that file, nothing happens. Please kindly help me :-)

    Any help, hint or idea is appreciated. Thank you in advance!

    Regards,
    Viet.

  2. #2
    Join Date
    Apr 2008
    Location
    São José dos Campos, São Paulo, Brazil
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [QtWebKit] - MSVC2005 WebCore build failed

    I'm with the same problem!
    But I'm using Mac OS X 10.5.3

    bindings/js/JSHTMLOptionElementConstructor.cpp:21:44: error: JSHTMLOptionElementConstructor.h: No such file or directory
    bindings/js/JSHTMLOptionElementConstructor.cpp:32: error: 'JSHTMLOptionElementConstructor' has not been declared
    bindings/js/JSHTMLOptionElementConstructor.cpp:32: error: ISO C++ forbids declaration of 'JSHTMLOptionElementConstructor' with no type
    bindings/js/JSHTMLOptionElementConstructor.cpp: In function 'int WebCore::JSHTMLOptionElementConstructor(KJS::ExecS tate*, WebCore:ocument*)':
    bindings/js/JSHTMLOptionElementConstructor.cpp:33: error: only constructors take base initializers
    bindings/js/JSHTMLOptionElementConstructor.cpp:35: error: 'setPrototype' was not declared in this scope
    bindings/js/JSHTMLOptionElementConstructor.cpp:36: error: 'put' was not declared in this scope
    bindings/js/JSHTMLOptionElementConstructor.cpp: At global scope:
    bindings/js/JSHTMLOptionElementConstructor.cpp:39: error: 'JSHTMLOptionElementConstructor' is not a class or namespace
    bindings/js/JSHTMLOptionElementConstructor.cpp:39: error: non-member function 'bool WebCore::implementsConstruct()' cannot have cv-qualifier
    bindings/js/JSHTMLOptionElementConstructor.cpp:44: error: 'JSHTMLOptionElementConstructor' is not a class or namespace
    bindings/js/JSHTMLOptionElementConstructor.cpp: In function 'KJS::JSObject* WebCore::construct(KJS::ExecState*, const KJS::List&)':
    bindings/js/JSHTMLOptionElementConstructor.cpp:47: error: 'm_doc' was not declared in this scope
    bindings/js/JSHTMLOptionElementConstructor.cpp: In function 'int WebCore::JSHTMLOptionElementConstructor(KJS::ExecS tate*, WebCore:ocument*)':
    bindings/js/JSHTMLOptionElementConstructor.cpp:37: warning: control reaches end of non-void function
    make[2]: *** [.obj/debug-shared/JSHTMLOptionElementConstructor.o] Error 1
    make[1]: *** [debug-all] Error 2
    make: *** [sub-webkit-make_default-ordered] Error 2

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [QtWebKit] - MSVC2005 WebCore build failed

    Hi,

    I managed to build the QtWebKit using QtBuilder :-) Yet I'm still want to know why it failed using console.

    You may want to start another thread as your OS & compiler are totally different.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.