Unknown module(s) in QT: webkitwidgets



  • Hi all!

    I tried to build QT5 from git, everything is OK, but the following error appears whet I trid to build my QT application:

    Unknown module(s) in QT: webkitwidgets

    My configure line:
    configure -static -platform win32-msvc2010 -openssl -I "C:\OpenSSL-Win64\include" -L "C:\OpenSSL-Win64\lib\VC\static" OPENSSL_LIBS="-LC:\OpenSSL-Win64\lib" -no-vcproj -opengl desktop -nomake examples -nomake demos

    My *.pro file:
    @#TEMPLATE = app

    QT += network widgets webkitwidgets

    HEADERS = mainwindow.h

    FORMS = mainwindow.ui

    RESOURCES = manager.qrc
    RC_FILE = app.rc

    SOURCES = main.cpp
    mainwindow.cpp

    INCLUDEPATH += D:\QT5\gsoap-2.8\gsoap
    INCLUDEPATH += D:\QT5\openssl-1.0.1e\include

    target.path = D:\QT\RM
    INSTALLS += target

    #CONFIG += release
    #CONFIG += static
    #CONFIG -= embed_manifest_dll
    CONFIG += openssl

    OTHER_FILES +=
    RMAuthBinding.nsmap

    #LIBS += libeay32.lib
    QMAKE_CXXFLAGS += -DWITH_OPENSSL
    #QMAKE_CXXFLAGS += -DWITH_NONAMESPACES

    @


  • Moderators

    please check if your Qt installation (build path) contains: "C:\Qt\Qt5\qtbase\lib\Qt5WebKitWidgets.dll"

    If not make sure you have built Qt with webkit support. This means you also have ICU available at configuration-time.



  • Hi raven-worx,

    thanks for your reply, you are right, Qt5WebKitWidgets.dll is absent.

    Could you please specify, how I should configure my QT instance for enabling webkit?


  • Moderators

    Read "this":http://qt-project.org/wiki/Building-Qt-5-from-Git#d4b95ff452aca2c1b14008b02f8dd49b.

    Basically you need to set the environment variables before calling (Qt's) configure:
    @
    /* For windows: */
    SET INCLUDE=%INCLUDE%;<path-to-ICU>\include
    SET LIB=%LIB%;<path-to-ICU>\lib
    @
    You can compile ICU yourself or easily download (depending on the compiler you using) pre-compiled ICU binaries "here":http://site.icu-project.org/download.



  • Ok, thanks,
    I faced with WebKit linking problem, looks strange:

        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    

    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:....\bin\jsc.exe.embed.manifest /OUT:....\bin\js
    c.exe @C:\Users\unmanner\AppData\Local\Temp\nm568A.tmp
    Creating library ....\bin\jsc.lib and object ....\bin\jsc.exp
    JavaScriptCore.lib(JSGlobalObjectFunctions.obj) : error LNK2019: unresolved exte
    rnal symbol _u_charType_51 referenced in function "bool __cdecl WTF::Unicode::is
    SeparatorSpace(int)" (?isSeparatorSpace@Unicode@WTF@@YA_NH@Z)
    JavaScriptCore.lib(FunctionPrototype.obj) : error LNK2001: unresolved external s
    ymbol _u_charType_51
    JavaScriptCore.lib(Lexer.obj) : error LNK2001: unresolved external symbol _u_cha
    rType_51
    JavaScriptCore.lib(DatePrototype.obj) : error LNK2019: unresolved external symbo
    l _udat_close_51 referenced in function "class JSC::JSCell * __cdecl JSC::format
    LocaleDate(class JSC::ExecState *,class JSC::DateInstance *,double,enum JSC::Loc
    aleDateTimeFormat)" (?formatLocaleDate@JSC@@YAPAVJSCell@1@PAVExecState@1@PAVDate
    Instance@1@NW4LocaleDateTimeFormat@1@@Z)
    JavaScriptCore.lib(DatePrototype.obj) : error LNK2019: unresolved external symbo
    l _udat_format_51 referenced in function "class JSC::JSCell * __cdecl JSC::forma
    tLocaleDate(class JSC::ExecState *,class JSC::DateInstance *,double,enum JSC::Lo
    caleDateTimeFormat)" (?formatLocaleDate@JSC@@YAPAVJSCell@1@PAVExecState@1@PAVDat
    eInstance@1@NW4LocaleDateTimeFormat@1@@Z)
    JavaScriptCore.lib(DatePrototype.obj) : error LNK2019: unresolved external symbo
    l _udat_open_51 referenced in function "class JSC::JSCell * __cdecl JSC::formatL
    ocaleDate(class JSC::ExecState *,class JSC::DateInstance *,double,enum JSC::Loca
    leDateTimeFormat)" (?formatLocaleDate@JSC@@YAPAVJSCell@1@PAVExecState@1@PAVDateI
    nstance@1@NW4LocaleDateTimeFormat@1@@Z)
    JavaScriptCore.lib(YarrInterpreter.obj) : error LNK2019: unresolved external sym
    bol _u_tolower_51 referenced in function "int __cdecl WTF::Unicode::toLower(int)
    " (?toLower@Unicode@WTF@@YAHH@Z)
    WTF.lib(StringImpl.obj) : error LNK2001: unresolved external symbol _u_tolower_5
    1
    JavaScriptCore.lib(YarrInterpreter.obj) : error LNK2019: unresolved external sym
    bol _u_toupper_51 referenced in function "int __cdecl WTF::Unicode::toUpper(int)
    " (?toUpper@Unicode@WTF@@YAHH@Z)
    WTF.lib(StringImpl.obj) : error LNK2001: unresolved external symbol _u_toupper_5
    1
    WTF.lib(WTFString.obj) : error LNK2019: unresolved external symbol _u_charDirect
    ion_51 referenced in function "enum WTF::Unicode::Direction __cdecl WTF::Unicode
    ::direction(int)" (?direction@Unicode@WTF@@YA?AW4Direction@12@H@Z)
    WTF.lib(StringImpl.obj) : error LNK2001: unresolved external symbol _u_charDirec
    tion_51
    WTF.lib(StringImpl.obj) : error LNK2019: unresolved external symbol _u_strToLowe
    r_51 referenced in function "int __cdecl WTF::Unicode::toLower(wchar_t *,int,wch
    ar_t const *,int,bool *)" (?toLower@Unicode@WTF@@YAHPA_WHPB_WHPA_N@Z)
    WTF.lib(StringImpl.obj) : error LNK2019: unresolved external symbol _u_strToUppe
    r_51 referenced in function "int __cdecl WTF::Unicode::toUpper(wchar_t *,int,wch
    ar_t const *,int,bool *)" (?toUpper@Unicode@WTF@@YAHPA_WHPB_WHPA_N@Z)
    WTF.lib(StringImpl.obj) : error LNK2019: unresolved external symbol _u_strFoldCa
    se_51 referenced in function "int __cdecl WTF::Unicode::foldCase(wchar_t *,int,w
    char_t const *,int,bool *)" (?foldCase@Unicode@WTF@@YAHPA_WHPB_WHPA_N@Z)
    WTF.lib(StringImpl.obj) : error LNK2019: unresolved external symbol u_foldCase
    51 referenced in function "int __cdecl WTF::Unicode::foldCase(int)" (?foldCase@U
    nicode@WTF@@YAHH@Z)
    WTF.lib(StringImpl.obj) : error LNK2019: unresolved external symbol _u_memcasecm
    p_51 referenced in function "int __cdecl WTF::Unicode::umemcasecmp(wchar_t const
    *,wchar_t const *,int)" (?umemcasecmp@Unicode@WTF@@YAHPB_W0H@Z)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol _ucol_strco
    ll_51 referenced in function "public: enum WTF::Collator::Result __thiscall WTF:
    :Collator::collate(wchar_t const *,unsigned int,wchar_t const *,unsigned int)con
    st " (?collate@Collator@WTF@@QBE?AW4Result@12@PB_WI0I@Z)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol _ucol_setAt
    tribute_51 referenced in function "private: void __thiscall WTF::Collator::creat
    eCollator(void)const " (?createCollator@Collator@WTF@@ABEXXZ)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol ucol_open
    51 referenced in function "private: void __thiscall WTF::Collator::createCollato
    r(void)const " (?createCollator@Collator@WTF@@ABEXXZ)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol _ucol_getAt
    tribute_51 referenced in function "private: void __thiscall WTF::Collator::creat
    eCollator(void)const " (?createCollator@Collator@WTF@@ABEXXZ)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol _ucol_getLo
    caleByType_51 referenced in function "private: void __thiscall WTF::Collator::cr
    eateCollator(void)const " (?createCollator@Collator@WTF@@ABEXXZ)
    WTF.lib(CollatorICU.obj) : error LNK2019: unresolved external symbol _ucol_close
    _51 referenced in function "private: void __thiscall WTF::Collator::releaseColla
    tor(void)" (?releaseCollator@Collator@WTF@@AAEXXZ)
    ....\bin\jsc.exe : fatal error LNK1120: 18 unresolved externals
    NMAKE : fatal error U1077: '"f:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"f:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '(' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.


Log in to reply
 

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