Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to build QtWebEngine?
JayLu last edited by A Former User
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.
hope for your guy's reply and help!!!!!
JonB last edited by
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
*.paklocale 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.
Sacha_D last edited by
I use Windows and msvc 2015 compiler.
I Installed a qt-opensource-windows-x86-5.9.2.exe. Then I changed a very little some headers in qtwebengine module. Then, I need to rebuild it. I opened configurated by Qt console for msvc2015 x86_64 compiler, go to the src/qtwebengine, typing qmake and after that nmake. nmake only outputs
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0 Copyright (C) Microsoft Corporation. All rights reserved.
but did nothing.
I downloaded qtwebengine-opensource-src-5.9.2 separately and try to buid it - the same result.
How to rebuild qtwebengine using msvc 2015 compiler?