How to build QtWebEngine?



  • I downloaded qtwebengine-opensource-src-5.7.0.tar.gz and compiled successfully,but when I run a webengine example ,it reports error like below:
    Qt WebEngine ICU data not found at /usr/local/Qt-5.7.0/resources. Trying parent directory...
    Qt WebEngine ICU data not found at /usr/local/Qt-5.7.0. Trying application directory...

    Qt WebEngine ICU data not found at /usr/local/Qt-5.7.0/examples/webenginewidgets/simplebrowser. Trying fallback directory... The application MAY NOT work.
    Installed Qt WebEngine locales directory not found at location /usr/local/Qt-5.7.0/translations/qtwebengine_locales. Trying application directory...
    Qt WebEngine locales directory not found at location /usr/local/Qt-5.7.0/examples/webenginewidgets/simplebrowser/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
    [1013/110544:ERROR:icu_util.cc(162)] Invalid file descriptor to ICU data received.
    [1013/110544:FATAL:content_main_runner.cc(714)] Check failed: base::i18n::InitializeICU().
    #0 0x0000b2fc0094 base::debug::StackTrace::StackTrace()
    #1 0x0000b2fd8885 logging::LogMessage::~LogMessage()
    #2 0x0000b21692eb content::ContentMainRunnerImpl::Initialize()
    #3 0x0000b1506125 QtWebEngineCore::WebEngineContext::WebEngineContext()
    #4 0x0000b1506dce QtWebEngineCore::WebEngineContext::current()
    #5 0x0000b14a8862 QtWebEngineCore::BrowserContextAdapter::defaultContext()
    #6 0x0000b77801b0 QWebEngineProfile::defaultProfile()
    #7 0x0000080579fd TabWidget::createTab()
    #8 0x000008055454 BrowserWindow::BrowserWindow()
    #9 0x000008050339 main
    #10 0x0000b628ba83 __libc_start_main
    #11 0x00000805044c <unknown>

    The program has unexpectedly finished.
    /usr/local/Qt-5.7.0/examples/webenginewidgets/simplebrowser/simplebrowser crashed

    hope for your guy's reply and help!!!!!



  • @JayLu said in Qt 5.7 Linux x86 how to build QtWebEngine?:

    Installed Qt WebEngine locales directory not found at location /usr/local/Qt-5.7.0/translations/qtwebengine_locales

    You are supposed to have a bunch of *.pak locale files in /usr/local/Qt-5.7.0/translations/qtwebengine_locales. You seem not to have them there. Check whether/where you do have them, and look at how you're supposed to "install" properly for QtWebEngine after compiling it.


Log in to reply
 

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