Unsolved Qt Web Engine compilation in linux (Ubuntu Desktop 22) [Urgent]
-
Hi everyone and thanks for your time.
I want to display a local html five in a qt web engine view.
I've installed qt this way :
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
then I install qt creator and gcc compiler.
but QT WEB ENGINE is not detected by qt creator or qmake. I get the following error :
Unknown module(s) in QT: webengine
When i compile the same app in windows 10, it works. I noticed that windows10 was using MSVC compiler. When I change the compiler to mingw, web engine is again not found.
So my questions :- does qt web engine is only compiled on MSVC ( microsoft visual studio compiler ) ?
- how to have MSVC in linux then ?
- if not possible, how to compile web engine in a linux environment since it is supported according to the doc : https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#linux
Thank you very much for your answers !
-
@axelito said in Qt Web Engine compilation in linux (Ubuntu Desktop 22) [Urgent]:
So my questions :
- does qt web engine is only compiled on MSVC ( microsoft visual studio compiler ) ?
No, it works on other platforms too.
- how to have MSVC in linux then ?
You can't.
- if not possible, how to compile web engine in a linux environment since it is supported according to the doc : https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#linux
Yes, but you don't need to. Just instal it:
sudo apt install libqt5webengine5
But the recommended way to get Qt is to use the official installer https://www.qt.io/download
-
And probably also
sudo apt install qtwebengine5-dev
will be useful. -
@sierdzio
OK thanks for your answer. Indeed, I reinstalled Qt with online installer and now gcc compiler can detect and compile qtwebengine binaries.
Except now my app is a blank screen ( it should render a web view of www.qt.io) and the following error :
/home/axel/Qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so: .dynsym local symbol at index 3 (>= sh_info of 3)any idea ? thanks !
-
No idea, sorry
-
Hi
I think you are seeing this
https://bugreports.qt.io/browse/QTBUG-80964