Building/installing Qt-6.5.2 from source on ubuntu-22.04
-
Hi,
I am trying to build/install Qt-6.5.2 on ubuntu-22.04.
After configuring, output showing that there is no support of openssl, and warning isWARNING: QtWebEngine won't be built. Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:NO XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:NO XTST:YES
I ignored this moving to next step, then cmake is throwing error :
qt-everywhere-src-6.5.2/qtwebsockets/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp:9:10: fatal error: QtNetwork/qsslpresharedkeyauthenticator.h: No such file or directoryI think this error may be because of not linking openssl during configure step, but we are having openssl libraries(3.0.2) in our system
I am doing like below :-
./configure -make examples -make tests FEATURE_clang=ON FEATURE_clangcpp=ON -openssl-linked -- -D OPENSSL_ROOT_DIR=/usr/lib/x86_64-linux-gnu/ c++20 gold TestInfix TestNamespace
-
cmake --build . --parallel
I am attaching all screenshots or error and warning as well as redirected output of both steps.
Please suggest us how to overcome this error and add openssl as well as QtWebEngine support.!
-
-
Hi and welcome to devnet,
Check that you have installed all required dev packages for the dependencies. This include OpenSSL. You should also check which version you have installed.
-
@SGaist
I have installed all the required packages by following these links :https://doc.qt.io/qt-6/linux-building.html
https://doc.qt.io/qt-6/linux.html
https://doc.qt.io/qt-6/linux-requirements.htmlEven in my Ubuntu-22.04 PC OpenSSL version 3.0.2 is installed.
If any packages are missing then please suggest me.
-
Then check the configure test logs to see exactly what failed during the detection.
One thing: did you cleanup before calling configure again after installing the packages ?
-
Hi,
Thanks for your advice, i re-configured it after removing, now openssl is linking with 3.0.2 version but still showing warning that QtWebEngine won't be build....I ignored and moved to next step, now i am getting error related to gn.
How to remove this error ?
-
@prathyuch-1999 If you don't need QtWebEngine then you should disable it.
And as @SGaist suggested: call configure in a clean build folder! -
@prathyuch-1999 As already asked/suggested twice: did you run configure from a clean build folder?
The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found. @SGaist told you to check configure log to see which libraries are missing: did you do that? You keep asking for what to do ignoring what was already suggested. -
@jsulm
i already run configure from a clean build folder as suggested by @SGaist
Earlier one issue was with SSL and another was QtWebEngine, after doing this now SSL issue resolved, but still warning of QtWebEngine.The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found.
Dear i know this.
If i am wrong then any one tell me the name and path of configure test logs file @SGaist
Is this GN error related to QtWebEngine ?
First how to resolved to this GN error, and why QtWebEngine is not building ? -
Which warning do you have now when starting from a clean state ?
-
@SGaist
I am having below warning now....WARNING: No backend for low level audio found.
WARNING: QtWebEngine won't be built. Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:YES XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:NO XTST:YES -
@prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:
XSHMFENCE:NO
Isn't this obvoius enough? Install the appropriate develpoment package if you need QtWebEngine
-
@Christian-Ehrlicher
Thanks @Christian-Ehrlicher, i installed that package, now QtWebEngine warning is not there. -
@prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:
i installed that package, now QtWebEngine warning is not there.
What does 'is not there' means? Did configure warn about QtWebEngine missing dependencies? If not then it will also be built.
-
@Christian-Ehrlicher
Yes, now there is now warning of QtWebEngine at configure step.
But after successfully configured now i am getting following error related to gn, while doing next step (cmake --build . --parallel) screenshot of error is below :
Error Screenshot-2
Error Screenshot-3
Please suggest me what is the problem ?
How to remove this gn error ? -
As you can see it's failing when looking for cups-config.
-
@Christian-Ehrlicher
Thanks for your advice, i did same and now there is no warning of QtWebEngine at configure step.
But it was getting failed in next step with below error :
"c++: fatal error: Killed signal terminated program cc1plus"
I checked with dmesg, and found some out of memory things.
Even though i have 16GB of RAM, then I increased my swap size from 2 GB to 8GB.
Again did cmake....
But now, after some time terminal is getting crashed without any warning or error.
I checked with top command and found that some time cpu utilization is getting 85% to 100% by cc1plus and kswapd0.How to overcome this error ?
dmesg output:
-
@prathyuch-1999
I think you have to reduce the number of parallel builds/processes going on. There was a recent (last month?) thread to this effect, you might try to find it while awaiting a definitive answer. -
@JonB said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:
There was a recent (last month?) thread to this effect,
Please share the link of above thread.
-
@prathyuch-1999 If I could I would. Perhaps you'd like to search instead of me.