Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine static compilation on Linux fails with Error: Missing archive files from linking pri
Forum Update on Monday, May 27th 2025

QtWebEngine static compilation on Linux fails with Error: Missing archive files from linking pri

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yourMessiah
    wrote on 26 Oct 2020, 17:59 last edited by
    #1

    I am receiving the following error when i am trying to compile QtWebEngine on my Manjaro Linux machine.

    Project ERROR: Missing archive files from linking pri
    

    Following is the configure summary with the command used.

    ./configure -static -release -ltcg -optimize-size -no-pch -opensource -prefix "/home/<USERNAME>/opt/Qt/5.15.1-static" -nomake tools -nomake tests -nomake examples
    
    Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
    Compiler: gcc 10.2.0
    Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c largefile ltcg optimize_size rdrnd rdseed shani x86SimdAlways release c++11 c++14 c++17 c++1z concurrent dbus reduce_exports reduce_relocations static stl
    Build options:
      Mode ................................... release
      Optimize release build for size ........ yes
      Building shared libraries .............. no
      Using C standard ....................... C11
      Using C++ standard ..................... C++17
      Using ccache ........................... no
      Using new DTAGS ........................ yes
      Relocatable ............................ no
      Using precompiled headers .............. no
      Using LTCG ............................. yes
      Target compiler supports:
        SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
        AVX .................................. AVX AVX2
        AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
        Other x86 ............................ AES F16C RDRAND SHA
        Intrinsics without -mXXX option ...... yes
      Build parts ............................ libs
    Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... yes
      Qt Gui ................................. yes
      Qt Network ............................. yes
      Qt Sql ................................. yes
      Qt Testlib ............................. yes
      Qt Widgets ............................. yes
      Qt Xml ................................. yes
    Support enabled for:
      Using pkg-config ....................... yes
      udev ................................... yes
      Using system zlib ...................... yes
      Zstandard support ...................... yes
    Qt Core:
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ yes
      GLib ................................... yes
      iconv .................................. no
      ICU .................................... yes
      Built-in copy of the MIME database ..... yes
      Tracing backend ........................ <none>
      Logging backends:
        journald ............................. no
        syslog ............................... no
        slog2 ................................ no
      PCRE2 .................................. yes
        Using system PCRE2 ................... yes
    Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      Linux AF_NETLINK ....................... yes
      OpenSSL ................................ yes
        Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ yes
      DTLS ................................... yes
      OCSP-stapling .......................... yes
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. yes
    Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
        Using system FreeType ................ yes
      HarfBuzz ............................... yes
        Using system HarfBuzz ................ yes
      Fontconfig ............................. yes
      Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
          Using system libjpeg ............... yes
        PNG .................................. yes
          Using system libpng ................ yes
      Text formats:
        HtmlParser ........................... yes
        CssParser ............................ yes
        OdfWriter ............................ yes
        MarkdownReader ....................... yes
          Using system libmd4c ............... yes
        MarkdownWriter ....................... yes
      EGL .................................... yes
      OpenVG ................................. no
      OpenGL:
        Desktop OpenGL ....................... yes
        OpenGL ES 2.0 ........................ no
        OpenGL ES 3.0 ........................ no
        OpenGL ES 3.1 ........................ no
        OpenGL ES 3.2 ........................ no
      Vulkan ................................. no
      Session Management ..................... yes
    Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... yes
      INTEGRITY HID .......................... no
      mtdev .................................. yes
      tslib .................................. yes
      xkbcommon .............................. yes
      X11 specific:
        XLib ................................. yes
        XCB Xlib ............................. yes
        EGL on X11 ........................... yes
        xkbcommon-x11 ........................ yes
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS OpenWFD ........................ no
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS RCAR ........................... no
        EGLFS EGLDevice ...................... yes
        EGLFS GBM ............................ yes
        EGLFS VSP2 ........................... no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGLFS X11 ............................ yes
      LinuxFB ................................ yes
      VNC .................................... yes
      XCB:
        Using system-provided xcb-xinput ..... yes
        Native painting (experimental) ....... no
        GL integrations:
          GLX Plugin ......................... yes
            XCB GLX .......................... yes
          EGL-X11 Plugin ..................... yes
    Qt Sql:
      SQL item models ........................ yes
    Qt Widgets:
      GTK+ ................................... yes
      Styles ................................. Fusion Windows
    Qt PrintSupport:
      CUPS ................................... yes
    Qt Sql Drivers:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. yes
      SQLite2 ................................ no
      SQLite ................................. yes
        Using system provided SQLite ......... no
      TDS (Sybase) ........................... no
    Qt Testlib:
      Tester for item models ................. yes
    Serial Port:
      ntddmodm ............................... no
    Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... yes
      SerialPort Support ..................... yes
    Further Image Formats:
      JasPer ................................. yes
      MNG .................................... yes
      TIFF ................................... yes
        Using system libtiff ................. yes
      WEBP ................................... yes
        Using system libwebp ................. yes
    Qt QML:
      QML network support .................... yes
      QML debugging and profiling support .... yes
      QML just-in-time compiler .............. yes
      QML sequence object .................... yes
      QML XML http request ................... yes
      QML Locale ............................. yes
    Qt QML Models:
      QML list model ......................... yes
      QML delegate model ..................... yes
    Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Qt Quick Designer .......... yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      TableView item ......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      Repeater item .......................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
    QtQuick3D:
      Assimp ................................. yes
      System Assimp .......................... no
    Qt Scxml:
      ECMAScript data model for QtScxml ...... yes
    Qt Gamepad:
      SDL2 ................................... yes
    Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Output Qt3D GL traces .................. no
      Use SSE2 instructions .................. yes
      Use AVX2 instructions .................. no
      Aspects:
        Render aspect ........................ yes
        Input aspect ......................... yes
        Logic aspect ......................... yes
        Animation aspect ..................... yes
        Extras aspect ........................ yes
    Qt 3D Renderers:
      OpenGL Renderer ........................ yes
      RHI Renderer ........................... no
    Qt 3D GeometryLoaders:
      Autodesk FBX ........................... no
    Qt Wayland Drivers:
      EGL .................................... yes
      Raspberry Pi ........................... no
      XComposite EGL ......................... yes
      XComposite GLX ......................... yes
      DRM EGL ................................ yes
      libhybris EGL .......................... no
      Linux dma-buf server buffer integration . yes
      Vulkan-based server buffer integration . no
      Shm emulation server buffer integration . yes
    Qt Wayland Client Shell Integrations:
      xdg-shell .............................. yes
      xdg-shell unstable v5 (deprecated) ..... yes
      xdg-shell unstable v6 .................. yes
      ivi-shell .............................. yes
      wl-shell (deprecated) .................. yes
    Qt Wayland Client ........................ yes
    Qt Wayland Compositor .................... yes
    Qt Wayland Compositor Layer Plugins:
      VSP2 hardware layer integration ........ no
    Qt Bluetooth:
      BlueZ .................................. yes
      BlueZ Low Energy ....................... yes
      Linux Crypto API ....................... yes
      Native Win32 Bluetooth ................. no
      WinRT Bluetooth API (desktop & UWP) .... no
      WinRT advanced bluetooth low energy API (desktop & UWP) . no
    Qt Sensors:
      sensorfw ............................... no
    Qt Quick Controls 2:
      Styles ................................. Default Fusion Imagine Material Universal
    Qt Quick Templates 2:
      Hover support .......................... yes
      Multi-touch support .................... yes
    Qt Positioning:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
    Qt Location:
      Qt.labs.location experimental QML plugin . yes
      Geoservice plugins:
        OpenStreetMap ........................ yes
        HERE ................................. yes
        Esri ................................. yes
        Mapbox ............................... yes
        MapboxGL ............................. yes
        Itemsoverlay ......................... yes
    QtXmlPatterns:
      XML schema support ..................... yes
    Qt Multimedia:
      ALSA ................................... yes
      GStreamer 1.0 .......................... yes
      GStreamer 0.10 ......................... no
      Video for Linux ........................ yes
      OpenAL ................................. yes
      PulseAudio ............................. yes
      Resource Policy (libresourceqt5) ....... no
      Windows Audio Services ................. no
      DirectShow ............................. no
      Windows Media Foundation ............... no
    Qt TextToSpeech:
      Flite .................................. no
      Flite with ALSA ........................ no
      Speech Dispatcher ...................... no
    Qt Tools:
      Qt Assistant ........................... yes
      Qt Designer ............................ yes
      Qt Distance Field Generator ............ yes
      kmap2qmap .............................. yes
      Qt Linguist ............................ yes
      Mac Deployment Tool .................... no
      makeqpf ................................ yes
      pixeltool .............................. yes
      qdbus .................................. yes
      qev .................................... yes
      Qt Attributions Scanner ................ yes
      qtdiag ................................. yes
      qtpaths ................................ yes
      qtplugininfo ........................... yes
      Windows deployment tool ................ no
      WinRT Runner Tool ...................... no
    Qt Tools:
      QDoc ................................... yes
    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
      QtWebEngine required system libraries for qpa-xcb:
        x11 .................................. yes
        libdrm ............................... yes
        xcomposite ........................... yes
        xcursor .............................. yes
        xi ................................... yes
        xtst ................................. 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 .................. yes
        lcms2 ................................ yes
        png .................................. yes
        JPEG ................................. yes
        harfbuzz ............................. yes
        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 ................................ yes
      Support qpa-xcb ........................ yes
      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
    

    I am able to compile the Qt library statically without QtWebEngine using the -skip webengine option.

    On searching the qtwebengine src directory, i found that the error comes from /home/<USERNAME>/opt/Qt/5.15.1/Src/qtwebengine/src/buildtools/config/linking.pri. It contains the following lines.

    ...
    isEmpty(NINJA_OBJECTS): error("Missing object files from linking pri.")
    isEmpty(NINJA_LFLAGS): error("Missing linker flags from linking pri")
    isEmpty(NINJA_ARCHIVES): error("Missing archive files from linking pri")
    isEmpty(NINJA_LIBS): error("Missing library files from linking pri")
    ...
    

    Searching a little bit more i found that in /home/<USERNAME>/opt/Qt/5.15.1/Src/qtwebengine/src/core/release/QtWebEngineCore.pri the NINJA_ARCHIVES variable is empty. I copied the value from /home/<USERNAME>/opt/Qt/5.15.1/Src/qtwebengine/src/core/release/convert_dict.pri and tried to compile but it failed.

    I am kind of stuck at this point. Any help to solve or further debug this issue will be highly appreciated.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jokeman
      wrote on 20 Nov 2020, 17:58 last edited by
      #2

      I'm getting the same error on Ubuntu 20.04:

      export QTSRC=$HOME/qt-everywhere-src-5.15.2
      export QTHOME=$HOME/qt5
      echo Building $QTHOME from source $QTSRC

      $QTSRC/configure -prefix $QTHOME -platform linux-clang -release -static -strip -opengl desktop -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-harfbuzz -fontconfig -no-qml-debug -nomake tests -nomake examples -opensource -confirm-license

      looks like static build hasn't been fully tested...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved