[Solved]building error: Unknown module (s) in QT: webkitwidgets



  • Hi guys,

    I downloaded "qt-everywhere-opensource-src-5.0.2" and built it with msvc10 to D:\qt-5.0.2-msvc10-bin. And then I ran "Perl qtwebkit\Tools\Scripts\build-webkit" to build QtWebkit. I got the building result files under qtwebkit\WebKitBuild\Release. And then, I copied qtwebkit\WebKitBuild\Release\include and qtwebkit\WebKitBuild\Release\lib to D:\qt-5.0.2-msvc10-bin.
    Now I can build and run the example "network\http". But when I built the demo "webkitwidgets\previewer" I got the error: "Unknown module (s) in QT: webkitwidgets". I checked the file previewer.pro, there is the code line "QT += webkitwidgets network widgets". How can I fix this problem? thanks.


  • Moderators

    you shouldn't need to run qtwebkit\Tools\Scripts\build-webkit perl script. Qt build should also build webkit for you if configured correctly.
    This means that ICU libs need to be available at configure time. See "this forum post":http://qt-project.org/forums/viewthread/28211/#127057 from me.



  • Thanks for your reply.
    Yes, before I built Qt5, I ran @configure -prefix D:\qt-5.0.2-msvc10-bin -debug-and-release -platform win32-msvc2012 -c++11 -icu -opengl desktop -qt-sql-sqlite -qt-zlib -qt-style-windowsvista -qt-libpng -qt-libjpeg -nomake demos -nomake examples -nomake tests -mp@ and I have also D:\icu4c-51_2-Win32-msvc10\icu\include in env INCLUDE and D:\icu4c-51_2-Win32-msvc10\icu\lib in env LIB and the env PATH has D:\icu4c-51_2-Win32-msvc10\icu\bin. After runing nmake install I didn't get any lib/include file of Webkit.
    [quote author="raven-worx" date="1370509274"]you shouldn't need to run qtwebkit\Tools\Scripts\build-webkit perl script. Qt build should also build webkit for you if configured correctly.
    This means that ICU libs need to be available at configure time. See "this forum post":http://qt-project.org/forums/viewthread/28211/#127057 from me.[/quote]



  • Thanks, you are right. I lost some lib in my environment.
    [quote author="raven-worx" date="1370509274"]you shouldn't need to run qtwebkit\Tools\Scripts\build-webkit perl script. Qt build should also build webkit for you if configured correctly.
    This means that ICU libs need to be available at configure time. See "this forum post":http://qt-project.org/forums/viewthread/28211/#127057 from me.[/quote]


Log in to reply
 

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