QtWebengine Static compilation fails with "Missing archive files from linking pri"
Unsolved
Installation and Deployment
-
I have seen that multiple people have posted this error, but no one found a working response, not sure why. I am receiving this error when I try to compile qtwebengine with -static option for 5.15.2. I am trying to compile with the following configure option
/opt/Qt5.15/5.15.2/Src/configure -v -static -make libs -nomake tools -nomake examples -nomake tests -opensource -confirm-license -egl -opengl es2 -skip wayland -static-runtime -mp -webengine-proprietary-codecs
Project ERROR: Missing archive files from linking pri make[3]: *** [Makefile:124: sub-core_module-pro-make_first] Error 3 make[3]: Leaving directory '/opt/Qt5.15/5.15.2/qt5.15.2-static/qtwebengine/src/core' make[2]: *** [Makefile:80: sub-core-make_first] Error 2 make[2]: Leaving directory '/opt/Qt5.15/5.15.2/qt5.15.2-static/qtwebengine/src' make[1]: *** [Makefile:49: sub-src-make_first] Error 2 make[1]: Leaving directory '/opt/Qt5.15/5.15.2/qt5.15.2-static/qtwebengine' make: *** [Makefile:1061: module-qtwebengine-make_first] Error 2
This is my output for the config.summary:
Qt WebEngine Build Tools: Use System Ninja ....................... yes Use System Gn .......................... no Jumbo Build Merge Limit ................ 8 Developer build ........................ no Sanitizer .............................. no QtWebEngine required system libraries: fontconfig ........................... yes dbus ................................. yes nss .................................. yes khr .................................. yes glibc ................................ yes Optional system libraries used: re2 .................................. yes icu .................................. no libwebp, libwebpmux and libwebpdemux . yes opus ................................. yes ffmpeg ............................... no libvpx ............................... yes snappy ............................... yes glib ................................. yes zlib ................................. yes minizip .............................. yes libevent ............................. yes jsoncpp .............................. yes protobuf ............................. yes libxml2 and libxslt .................. no lcms2 ................................ no png .................................. yes JPEG ................................. no harfbuzz ............................. no freetype ............................. yes Qt WebEngineCore: Embedded build ......................... no Full debug information ................. no Pepper Plugins ......................... yes Printing and PDF ....................... yes Proprietary Codecs ..................... no Spellchecker ........................... yes Native Spellchecker .................... no WebRTC ................................. yes PipeWire over GIO ...................... no Geolocation ............................ yes WebChannel support ..................... yes Kerberos Authentication ................ no Extensions ............................. yes Node.js ................................ no Support qpa-xcb ........................ no Use ALSA ............................... yes Use PulseAudio ......................... yes Qt WebEngineQml: Support Qt WebEngine Qml ............... yes UI Delegates ........................... yes Test Support ........................... no Qt WebEngineWidgets: Support Qt WebEngine Widgets ........... yes Qt PDF: Support V8 ............................. no Support XFA ............................ no Support XFA-BMP ........................ no Support XFA-GIF ........................ no Support XFA-PNG ........................ no Support XFA-TIFF ....................... no Qt PDF Widgets: Support Qt PDF Widgets ................. yes