Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT5.15.2编译安装出现是的错误
Forum Updated to NodeBB v4.3 + New Features

QT5.15.2编译安装出现是的错误

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 2.2k Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    quan-wei-jun
    wrote on last edited by
    #1

    The first step is to extract the file

    Sudo tar - xvf qt everywhere src-5.15.2. tar

    Step 2: Switch to the directory file

    Cd qt everywhere src-5.15.2

    Step 3: I specify the platform and do not specify a path/ Configure automatic assignment

    ./configure

    Result:
    Configure summary:

    Build type: linux-g++ (arm64, CPU features: neon)
    Compiler: gcc 4.2.1
    Configuration: compile_examples enable_new_dtags largefile neon precompile_header shared shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
    Build options:
    Mode ................................... release
    Optimize release build for size ........ no
    Building shared libraries .............. yes
    Using C standard ....................... C11
    Using C++ standard ..................... C++14
    Using ccache ........................... no
    Using new DTAGS ........................ yes
    Relocatable ............................ yes
    Using precompiled headers .............. yes
    Using LTCG ............................. no
    Target compiler supports:
    NEON ................................. yes
    Build parts ............................ libs examples tools
    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 ...................... no
    Qt Core:
    DoubleConversion ....................... yes
    Using system DoubleConversion ........ no
    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 ................... no
    Qt Network:
    getifaddrs() ........................... yes
    IPv6 ifname ............................ yes
    libproxy ............................... no
    Linux AF_NETLINK ....................... yes
    OpenSSL ................................ no
    Qt directly linked to OpenSSL ........ no
    OpenSSL 1.1 ............................ no
    DTLS ................................... no
    OCSP-stapling .......................... no
    SCTP ................................... no
    Use system proxies ..................... yes
    GSSAPI ................................. no
    Qt Gui:
    Accessibility .......................... yes
    FreeType ............................... yes
    Using system FreeType ................ yes
    HarfBuzz ............................... yes
    Using system HarfBuzz ................ no
    Fontconfig ............................. yes
    Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
    Using system libjpeg ............... no
    PNG .................................. yes
    Using system libpng ................ yes
    Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
    Using system libmd4c ............... no
    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 ............................... no
    INTEGRITY HID .......................... no
    mtdev .................................. no
    tslib .................................. no
    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 ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ yes
    LinuxFB ................................ yes
    VNC .................................... yes
    XCB:
    Using system-provided xcb-xinput ..... no
    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+ ................................... no
    Styles ................................. Fusion Windows
    Qt PrintSupport:
    CUPS ................................... no
    Qt Sql Drivers:
    DB2 (IBM) .............................. no
    InterBase .............................. no
    MySql .................................. no
    OCI (Oracle) ........................... no
    ODBC ................................... no
    PostgreSQL ............................. no
    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 ................................. no
    MNG .................................... no
    TIFF ................................... yes
    Using system libtiff ................. no
    WEBP ................................... yes
    Using system libwebp ................. no
    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 ................................... no
    Qt 3D:
    Assimp ................................. yes
    System Assimp .......................... no
    Output Qt3D GL traces .................. no
    Use SSE2 instructions .................. no
    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 .................................. no
    BlueZ Low Energy ....................... no
    Linux Crypto API ....................... no
    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 ................................. no
    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 ...................... yes
    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 .................................. no
    icu .................................. no
    libwebp, libwebpmux and libwebpdemux . no
    opus ................................. no
    ffmpeg ............................... no
    libvpx ............................... no
    snappy ............................... no
    glib ................................. yes
    zlib ................................. yes
    minizip .............................. no
    libevent ............................. no
    jsoncpp .............................. no
    protobuf ............................. yes
    libxml2 and libxslt .................. yes
    lcms2 ................................ no
    png .................................. no
    JPEG ................................. no
    harfbuzz ............................. no
    freetype ............................. yes

    Note: Also available for Linux: linux-clang linux-icc

    Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

    Note: The following modules are not being compiled in this configuration:
    webenginecore
    webengine
    webenginewidgets
    pdf
    pdfwidgets

    WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

    WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

    WARNING: QtWebEngine will not be built.

    WARNING: QtPdf will not be built.

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/usr/local/Qt-5.15.2'.

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    那么我们可以看到的是用的gcc版本Build type: linux-g++ (arm64, CPU features: neon)
    Compiler: gcc 4.2.1
    因此出现了
    WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

    WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

    I'll go find gcc version 4.2 and enter gcc -- version in the user's root directory, but it shows 5.4.0

    This is a problem that I can't figure out. How to find the issue with gcc version 4.2.1 and remove it, or how to connect it to gcc version on the command line

    sierdzioS 2 Replies Last reply
    0
    • Q quan-wei-jun

      The first step is to extract the file

      Sudo tar - xvf qt everywhere src-5.15.2. tar

      Step 2: Switch to the directory file

      Cd qt everywhere src-5.15.2

      Step 3: I specify the platform and do not specify a path/ Configure automatic assignment

      ./configure

      Result:
      Configure summary:

      Build type: linux-g++ (arm64, CPU features: neon)
      Compiler: gcc 4.2.1
      Configuration: compile_examples enable_new_dtags largefile neon precompile_header shared shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
      Build options:
      Mode ................................... release
      Optimize release build for size ........ no
      Building shared libraries .............. yes
      Using C standard ....................... C11
      Using C++ standard ..................... C++14
      Using ccache ........................... no
      Using new DTAGS ........................ yes
      Relocatable ............................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
      NEON ................................. yes
      Build parts ............................ libs examples tools
      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 ...................... no
      Qt Core:
      DoubleConversion ....................... yes
      Using system DoubleConversion ........ no
      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 ................... no
      Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      Linux AF_NETLINK ....................... yes
      OpenSSL ................................ no
      Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ no
      DTLS ................................... no
      OCSP-stapling .......................... no
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. no
      Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
      Using system FreeType ................ yes
      HarfBuzz ............................... yes
      Using system HarfBuzz ................ no
      Fontconfig ............................. yes
      Image formats:
      GIF .................................. yes
      ICO .................................. yes
      JPEG ................................. yes
      Using system libjpeg ............... no
      PNG .................................. yes
      Using system libpng ................ yes
      Text formats:
      HtmlParser ........................... yes
      CssParser ............................ yes
      OdfWriter ............................ yes
      MarkdownReader ....................... yes
      Using system libmd4c ............... no
      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 ............................... no
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      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 ............................ no
      EGLFS VSP2 ........................... no
      EGLFS Mali ........................... no
      EGLFS Raspberry Pi ................... no
      EGLFS X11 ............................ yes
      LinuxFB ................................ yes
      VNC .................................... yes
      XCB:
      Using system-provided xcb-xinput ..... no
      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+ ................................... no
      Styles ................................. Fusion Windows
      Qt PrintSupport:
      CUPS ................................... no
      Qt Sql Drivers:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      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 ................................. no
      MNG .................................... no
      TIFF ................................... yes
      Using system libtiff ................. no
      WEBP ................................... yes
      Using system libwebp ................. no
      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 ................................... no
      Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Output Qt3D GL traces .................. no
      Use SSE2 instructions .................. no
      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 .................................. no
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
      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 ................................. no
      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 ...................... yes
      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 .................................. no
      icu .................................. no
      libwebp, libwebpmux and libwebpdemux . no
      opus ................................. no
      ffmpeg ............................... no
      libvpx ............................... no
      snappy ............................... no
      glib ................................. yes
      zlib ................................. yes
      minizip .............................. no
      libevent ............................. no
      jsoncpp .............................. no
      protobuf ............................. yes
      libxml2 and libxslt .................. yes
      lcms2 ................................ no
      png .................................. no
      JPEG ................................. no
      harfbuzz ............................. no
      freetype ............................. yes

      Note: Also available for Linux: linux-clang linux-icc

      Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

      Note: The following modules are not being compiled in this configuration:
      webenginecore
      webengine
      webenginewidgets
      pdf
      pdfwidgets

      WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

      WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

      WARNING: QtWebEngine will not be built.

      WARNING: QtPdf will not be built.

      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/usr/local/Qt-5.15.2'.

      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      那么我们可以看到的是用的gcc版本Build type: linux-g++ (arm64, CPU features: neon)
      Compiler: gcc 4.2.1
      因此出现了
      WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

      WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

      I'll go find gcc version 4.2 and enter gcc -- version in the user's root directory, but it shows 5.4.0

      This is a problem that I can't figure out. How to find the issue with gcc version 4.2.1 and remove it, or how to connect it to gcc version on the command line

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @quan-wei-jun your compiler is too old and does not support C++11 or C++14. See https://gcc.gnu.org/projects/cxx-status.html

      (Z(:^

      Q 1 Reply Last reply
      0
      • Q quan-wei-jun

        The first step is to extract the file

        Sudo tar - xvf qt everywhere src-5.15.2. tar

        Step 2: Switch to the directory file

        Cd qt everywhere src-5.15.2

        Step 3: I specify the platform and do not specify a path/ Configure automatic assignment

        ./configure

        Result:
        Configure summary:

        Build type: linux-g++ (arm64, CPU features: neon)
        Compiler: gcc 4.2.1
        Configuration: compile_examples enable_new_dtags largefile neon precompile_header shared shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
        Build options:
        Mode ................................... release
        Optimize release build for size ........ no
        Building shared libraries .............. yes
        Using C standard ....................... C11
        Using C++ standard ..................... C++14
        Using ccache ........................... no
        Using new DTAGS ........................ yes
        Relocatable ............................ yes
        Using precompiled headers .............. yes
        Using LTCG ............................. no
        Target compiler supports:
        NEON ................................. yes
        Build parts ............................ libs examples tools
        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 ...................... no
        Qt Core:
        DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
        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 ................... no
        Qt Network:
        getifaddrs() ........................... yes
        IPv6 ifname ............................ yes
        libproxy ............................... no
        Linux AF_NETLINK ....................... yes
        OpenSSL ................................ no
        Qt directly linked to OpenSSL ........ no
        OpenSSL 1.1 ............................ no
        DTLS ................................... no
        OCSP-stapling .......................... no
        SCTP ................................... no
        Use system proxies ..................... yes
        GSSAPI ................................. no
        Qt Gui:
        Accessibility .......................... yes
        FreeType ............................... yes
        Using system FreeType ................ yes
        HarfBuzz ............................... yes
        Using system HarfBuzz ................ no
        Fontconfig ............................. yes
        Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
        Using system libjpeg ............... no
        PNG .................................. yes
        Using system libpng ................ yes
        Text formats:
        HtmlParser ........................... yes
        CssParser ............................ yes
        OdfWriter ............................ yes
        MarkdownReader ....................... yes
        Using system libmd4c ............... no
        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 ............................... no
        INTEGRITY HID .......................... no
        mtdev .................................. no
        tslib .................................. no
        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 ............................ no
        EGLFS VSP2 ........................... no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGLFS X11 ............................ yes
        LinuxFB ................................ yes
        VNC .................................... yes
        XCB:
        Using system-provided xcb-xinput ..... no
        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+ ................................... no
        Styles ................................. Fusion Windows
        Qt PrintSupport:
        CUPS ................................... no
        Qt Sql Drivers:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. no
        OCI (Oracle) ........................... no
        ODBC ................................... no
        PostgreSQL ............................. no
        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 ................................. no
        MNG .................................... no
        TIFF ................................... yes
        Using system libtiff ................. no
        WEBP ................................... yes
        Using system libwebp ................. no
        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 ................................... no
        Qt 3D:
        Assimp ................................. yes
        System Assimp .......................... no
        Output Qt3D GL traces .................. no
        Use SSE2 instructions .................. no
        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 .................................. no
        BlueZ Low Energy ....................... no
        Linux Crypto API ....................... no
        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 ................................. no
        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 ...................... yes
        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 .................................. no
        icu .................................. no
        libwebp, libwebpmux and libwebpdemux . no
        opus ................................. no
        ffmpeg ............................... no
        libvpx ............................... no
        snappy ............................... no
        glib ................................. yes
        zlib ................................. yes
        minizip .............................. no
        libevent ............................. no
        jsoncpp .............................. no
        protobuf ............................. yes
        libxml2 and libxslt .................. yes
        lcms2 ................................ no
        png .................................. no
        JPEG ................................. no
        harfbuzz ............................. no
        freetype ............................. yes

        Note: Also available for Linux: linux-clang linux-icc

        Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

        Note: The following modules are not being compiled in this configuration:
        webenginecore
        webengine
        webenginewidgets
        pdf
        pdfwidgets

        WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

        WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

        WARNING: QtWebEngine will not be built.

        WARNING: QtPdf will not be built.

        Qt is now configured for building. Just run 'make'.
        Once everything is built, you must run 'make install'.
        Qt will be installed into '/usr/local/Qt-5.15.2'.

        Prior to reconfiguration, make sure you remove any leftovers from
        the previous build.
        那么我们可以看到的是用的gcc版本Build type: linux-g++ (arm64, CPU features: neon)
        Compiler: gcc 4.2.1
        因此出现了
        WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

        WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

        I'll go find gcc version 4.2 and enter gcc -- version in the user's root directory, but it shows 5.4.0

        This is a problem that I can't figure out. How to find the issue with gcc version 4.2.1 and remove it, or how to connect it to gcc version on the command line

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        @quan-wei-jun said in QT5.15.2编译安装出现是的错误:

        How to find the issue with gcc version 4.2.1 and remove it

        Depends on what operating system are you using - but the easiest way would typically be to use your package manager to uninstall old GCC version.

        If you can't do that, use CC and CXX env variables to point to your newer GCC.

        (Z(:^

        Q 1 Reply Last reply
        0
        • sierdzioS sierdzio

          @quan-wei-jun your compiler is too old and does not support C++11 or C++14. See https://gcc.gnu.org/projects/cxx-status.html

          Q Offline
          Q Offline
          quan-wei-jun
          wrote on last edited by
          #4

          @sierdzio WARNING: QtWebEngine requires at least gcc version 5, but using gcc version 4.2.

          WARNING: QtPdf requires at least gcc version 5, but using gcc version 4.2.

          I'll go find gcc version 4.2 and enter gcc -- version in the user's root directory, but it shows 5.4.0

          This is a problem that I can't figure out. How to find the issue with gcc version 4.2.1 and remove it, or how to connect it to gcc version on the command line

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            @quan-wei-jun said in QT5.15.2编译安装出现是的错误:

            How to find the issue with gcc version 4.2.1 and remove it

            Depends on what operating system are you using - but the easiest way would typically be to use your package manager to uninstall old GCC version.

            If you can't do that, use CC and CXX env variables to point to your newer GCC.

            Q Offline
            Q Offline
            quan-wei-jun
            wrote on last edited by
            #5

            @sierdzio
            My computer comes with gcc version:
            gcc --version
            gcc (Ubuntu/Linaro 5.4.0-6kord1~16.04.12) 5.4.0 20160609
            Copyright (C) 2015 Free Software Foundation, Inc.
            This is free software; see the source for copying conditions. There is NO
            warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
            whereis gcc:
            gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz

            But it uses 4.2.1

            How can I modify it to the computer's built-in gcc

            sierdzioS 1 Reply Last reply
            0
            • Q quan-wei-jun

              @sierdzio
              My computer comes with gcc version:
              gcc --version
              gcc (Ubuntu/Linaro 5.4.0-6kord1~16.04.12) 5.4.0 20160609
              Copyright (C) 2015 Free Software Foundation, Inc.
              This is free software; see the source for copying conditions. There is NO
              warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
              whereis gcc:
              gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz

              But it uses 4.2.1

              How can I modify it to the computer's built-in gcc

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @quan-wei-jun Are you running configure on the same computer where you check GCC? An arm64 machine?

              Qt takes compilers from normal, expected OS paths so it really should not happen that you get different result.

              (Z(:^

              Q 2 Replies Last reply
              0
              • sierdzioS sierdzio

                @quan-wei-jun Are you running configure on the same computer where you check GCC? An arm64 machine?

                Qt takes compilers from normal, expected OS paths so it really should not happen that you get different result.

                Q Offline
                Q Offline
                quan-wei-jun
                wrote on last edited by
                #7

                @sierdzio said in QT5.15.2编译安装出现是的错误:

                @quan-wei-jun您是否在检查 GCC 的同一台计算机上运行配置?一台arm64机器?

                It is the same machine that operates, but there is no Stöð 2 machine

                1 Reply Last reply
                0
                • sierdzioS sierdzio

                  @quan-wei-jun Are you running configure on the same computer where you check GCC? An arm64 machine?

                  Qt takes compilers from normal, expected OS paths so it really should not happen that you get different result.

                  Q Offline
                  Q Offline
                  quan-wei-jun
                  wrote on last edited by
                  #8

                  @sierdzio This makes me very distressed. After configuration, I am indeed using 4.2.1, but the gcc -- version I entered on the command line is 5.4.0. I guarantee that this operation is performed on the same machine. I want him to use gcc 5.4.0. How should I configure it

                  JoeCFDJ 1 Reply Last reply
                  0
                  • Q quan-wei-jun

                    @sierdzio This makes me very distressed. After configuration, I am indeed using 4.2.1, but the gcc -- version I entered on the command line is 5.4.0. I guarantee that this operation is performed on the same machine. I want him to use gcc 5.4.0. How should I configure it

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by JoeCFD
                    #9

                    @quan-wei-jun in an editor open your Makefile generated from configuration and do the following:
                    set(replace)
                    //if /usr/bin/gcc --version is 5.4.0
                    CC=/usr/bin/gcc
                    CXX=/usr/bin/g++

                    //if /usr/lib/gcc --version is 5.4.0
                    CC=/usr/lib/gcc
                    CXX=/usr/lib/g++

                    you will be good to go.

                    Q 1 Reply Last reply
                    1
                    • JoeCFDJ JoeCFD

                      @quan-wei-jun in an editor open your Makefile generated from configuration and do the following:
                      set(replace)
                      //if /usr/bin/gcc --version is 5.4.0
                      CC=/usr/bin/gcc
                      CXX=/usr/bin/g++

                      //if /usr/lib/gcc --version is 5.4.0
                      CC=/usr/lib/gcc
                      CXX=/usr/lib/g++

                      you will be good to go.

                      Q Offline
                      Q Offline
                      quan-wei-jun
                      wrote on last edited by
                      #10

                      @JoeCFD said in QT5.15.2编译安装出现是的错误:

                      CC=/usr/lib/gcc
                      CXX=/usr/lib/g+

                      What do you mean/ Modify the makefile after configuring

                      CC=/usr/lib/gcc

                      CXX=/usr/lib/g+

                      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