Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. Tip of #error "AVX support required" when compile Qt everywhere 5.13.2

Tip of #error "AVX support required" when compile Qt everywhere 5.13.2

Scheduled Pinned Locked Moved Unsolved Independent Developers
17 Posts 3 Posters 2.5k 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.
  • J Jaye

    @jsulm I only have config.log file showing below, but it's too long to show. I just post the information that contain errors.

    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/c11 && /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_LIBDIR += /opt/tslib-1.21/lib /opt/alsa-lib-1.2.2/lib' 'INCLUDEPATH += /opt/tslib-1.21/include /opt/alsa-lib-1.2.2/include' -early "CONFIG += cross_compile" /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/c11
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/c11 && MAKEFLAGS= /usr/bin/make
    > gcc -c -pipe -O2 -std=gnu11 -w -fPIC  -I. -I/opt/tslib-1.21/include -I/opt/alsa-lib-1.2.2/include -I/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/mkspecs/linux-g++ -o main.o main.c
    > g++ -Wl,-O1 -o c11 main.o   -L/opt/tslib-1.21/lib -L/opt/alsa-lib-1.2.2/lib   
    test config.qtbase.tests.c11 succeeded
    Global lib dirs: [/opt/tslib-1.21/lib] [/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib /opt/gcc-arm-linux-gnueabihf-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0 /opt/gcc-arm-linux-gnueabihf-8.3.0/lib/gcc /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/lib /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/libc/lib /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/libc/usr/lib]
    Global inc dirs: [/opt/tslib-1.21/include] [/usr/include/c++/7 /usr/include/x86_64-linux-gnu/c++/7 /usr/include/c++/7/backward /usr/lib/gcc/x86_64-linux-gnu/7/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed /usr/include/x86_64-linux-gnu /usr/include /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/include/c++/8.3.0 /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/include/c++/8.3.0/arm-linux-gnueabihf /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/include/c++/8.3.0/backward /opt/gcc-arm-linux-gnueabihf-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0/include /opt/gcc-arm-linux-gnueabihf-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0/include-fixed /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/include /opt/gcc-arm-linux-gnueabihf-8.3.0/arm-linux-gnueabihf/libc/usr/include]
    loaded result for library config.qtbase.libraries.dbus
    Trying source 0 (type pkgConfig) of library dbus ...
    pkg-config use disabled globally.
      => source produced no result.
    Trying source 1 (type inline) of library dbus ...
      => source failed condition 'config.win32'.
    Trying source 2 (type inline) of library dbus ...
    None of [libdbus-1.so libdbus-1.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase.libraries.dbus FAILED
    loaded result for config test config.qtbase.tests.enable_new_dtags
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests && /opt/gcc-arm-linux-gnueabihf-8.3.0/bin/arm-linux-gnueabihf-g++ -lts -pipe -Wl,--enable-new-dtags -o conftest-out conftest.cpp
    > /opt/gcc-arm-linux-gnueabihf-8.3.0/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lts
    > collect2: 错误: ld 返回 1
    test config.qtbase.tests.enable_new_dtags FAILED
    loaded result for config test config.qtbase.tests.f16c
    
    
    
    loaded result for config test config.qtbase_corelib.tests.renameat2
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/renameat2 && /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_LIBDIR += /opt/tslib-1.21/lib /opt/alsa-lib-1.2.2/lib' 'INCLUDEPATH += /opt/tslib-1.21/include /opt/alsa-lib-1.2.2/include' -early "CONFIG += cross_compile" /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/renameat2
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/renameat2 && MAKEFLAGS= /usr/bin/make
    > g++ -c -pipe -O2 -w -fPIC  -I. -I/opt/tslib-1.21/include -I/opt/alsa-lib-1.2.2/include -I/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
    > main.cpp: In function ‘int main(int, char**)’:
    > main.cpp:9:53: error: ‘RENAME_NOREPLACE’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                      ^~~~~~~~~~~~~~~~
    > main.cpp:9:53: note: suggested alternative: ‘_IOS_NOREPLACE’
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                      ^~~~~~~~~~~~~~~~
    >                                                      _IOS_NOREPLACE
    > main.cpp:9:72: error: ‘RENAME_WHITEOUT’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >                                                                         ^~~~~~~~~~~~~~~
    > main.cpp:9:5: error: ‘renameat2’ was not declared in this scope
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >      ^~~~~~~~~
    > main.cpp:9:5: note: suggested alternative: ‘renameat’
    >      renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
    >      ^~~~~~~~~
    >      renameat
    > Makefile:169: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
    test config.qtbase_corelib.tests.renameat2 FAILED
    loaded result for library config.qtbase_corelib.libraries.slog2
    Trying source 0 (type inline) of library slog2 ...
    None of [libslog2.so libslog2.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_corelib.libraries.slog2 FAILED
    
    
    
    loaded result for config test config.qtbase_corelib.tests.statx
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/statx && /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_LIBDIR += /opt/tslib-1.21/lib /opt/alsa-lib-1.2.2/lib' 'INCLUDEPATH += /opt/tslib-1.21/include /opt/alsa-lib-1.2.2/include' -early "CONFIG += cross_compile" /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/statx
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/statx && MAKEFLAGS= /usr/bin/make
    > g++ -c -pipe -O2 -w -fPIC  -I. -I/opt/tslib-1.21/include -I/opt/alsa-lib-1.2.2/include -I/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
    > main.cpp: In function ‘int main(int, char**)’:
    > main.cpp:11:18: error: aggregate ‘main(int, char**)::statx statxbuf’ has incomplete type and cannot be defined
    >      struct statx statxbuf;
    >                   ^~~~~~~~
    > main.cpp:12:25: error: ‘STATX_BASIC_STATS’ was not declared in this scope
    >      unsigned int mask = STATX_BASIC_STATS;
    >                          ^~~~~~~~~~~~~~~~~
    > main.cpp:13:32: error: ‘AT_STATX_SYNC_AS_STAT’ was not declared in this scope
    >      return statx(AT_FDCWD, "", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);
    >                                 ^~~~~~~~~~~~~~~~~~~~~
    > main.cpp:13:70: error: invalid use of incomplete type ‘struct main(int, char**)::statx’
    >      return statx(AT_FDCWD, "", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);
    >                                                                       ^
    > main.cpp:11:12: note: forward declaration of ‘struct main(int, char**)::statx’
    >      struct statx statxbuf;
    >             ^~~~~
    > Makefile:169: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
    test config.qtbase_corelib.tests.statx FAILED
    
    
    
    
    Trying source 1 (type inline) of library drm ...
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/drm && /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_LIBDIR += /opt/tslib-1.21/lib /opt/alsa-lib-1.2.2/lib' 'INCLUDEPATH += /opt/tslib-1.21/include /opt/alsa-lib-1.2.2/include' -early "CONFIG += cross_compile" 'QMAKE_USE += drm' 'QMAKE_LIBS_DRM = /usr/lib/x86_64-linux-gnu/libdrm.so' /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/drm
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/drm && MAKEFLAGS= /usr/bin/make
    > g++ -c -pipe -O2 -w -fPIC  -I. -I/opt/tslib-1.21/include -I/opt/alsa-lib-1.2.2/include -I/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
    > In file included from main.cpp:5:0:
    > /usr/include/xf86drmMode.h:43:10: fatal error: drm.h: 没有那个文件或目录
    >  #include <drm.h>
    >           ^~~~~~~
    > compilation terminated.
    > Makefile:169: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
     => source failed verification.
    Trying source 2 (type inline) of library drm ...
      => source failed condition 'config.integrity'.
    test config.qtbase_gui.libraries.drm FAILED
    loaded result for library config.qtbase_gui.libraries.openvg
    Trying source 0 (type pkgConfig) of library openvg ...
    pkg-config use disabled globally.
      => source produced no result.
    Trying source 1 (type makeSpec) of library openvg ...
    None of [libOpenVG.so libOpenVG.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.openvg FAILED
    loaded result for config test config.qtbase_gui.tests.evdev
    
    
    
    loaded result for config test config.qtbase_gui.tests.linuxfb
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/linuxfb && /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_LIBDIR += /opt/tslib-1.21/lib /opt/alsa-lib-1.2.2/lib' 'INCLUDEPATH += /opt/tslib-1.21/include /opt/alsa-lib-1.2.2/include' -early "CONFIG += cross_compile" /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/linuxfb
    + cd /home/jaye/project/qt-everywhere-src-5.13.2/config.tests/linuxfb && MAKEFLAGS= /usr/bin/make
    > g++ -c -pipe -O2 -w -fPIC  -I. -I/opt/tslib-1.21/include -I/opt/alsa-lib-1.2.2/include -I/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
    > g++ -Wl,-O1 -o linuxfb main.o   -L/opt/tslib-1.21/lib -L/opt/alsa-lib-1.2.2/lib   
    test config.qtbase_gui.tests.linuxfb succeeded
    loaded result for library config.qtbase_gui.libraries.mtdev
    Trying source 0 (type pkgConfig) of library mtdev ...
    pkg-config use disabled globally.
      => source produced no result.
    test config.qtbase_gui.libraries.mtdev FAILED
    loaded result for config test config.qtbase_gui.tests.qpa_default_platform
    test config.qtbase_gui.tests.qpa_default_platform gave result xcb
    loaded result for library config.qtbase_gui.libraries.harfbuzz
    Trying source 0 (type inline) of library harfbuzz ...
    None of [libharfbuzz.so libharfbuzz.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.harfbuzz FAILED
    loaded result for library config.qtbase_gui.libraries.libjpeg
    Trying source 0 (type inline) of library libjpeg ...
      => source failed condition 'config.msvc'.
    Trying source 1 (type inline) of library libjpeg ...
    None of [libjpeg.so libjpeg.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.libjpeg FAILED
    
    
    
    
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @Jaye Failing tests are fine.
    If you get this AVX error while configure runs the tests then you can ignore it. If you get it while building Qt then please post configure call.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    J 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Jaye Failing tests are fine.
      If you get this AVX error while configure runs the tests then you can ignore it. If you get it while building Qt then please post configure call.

      J Offline
      J Offline
      Jaye
      wrote on last edited by
      #9

      @jsulm could I have your email? I will send some necessary files to help you solve my problem

      jsulmJ 1 Reply Last reply
      0
      • J Jaye

        @jsulm could I have your email? I will send some necessary files to help you solve my problem

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

        could I have your email?

        no
        Just look for the configure call in the build log and post it here...
        You can also compress the build log and upload it to some file sharing service and put the link here.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 3 Replies Last reply
        0
        • jsulmJ jsulm

          @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

          could I have your email?

          no
          Just look for the configure call in the build log and post it here...
          You can also compress the build log and upload it to some file sharing service and put the link here.

          J Offline
          J Offline
          Jaye
          wrote on last edited by
          #11

          @jsulm Here I find in shell script file of configure priod. Maybe some options are error?

          ./configure
          -prefix ${INSTALL_PATH}
          -xplatform ${PLATFORM}
          -release
          -opensource
          -confirm-license
          -no-openssl
          -no-opengl
          -no-xcb
          -no-eglfs
          -no-compile-examples
          -no-pkg-config
          -no-iconv
          -no-glib
          -tslib
          -I"${TSLIB_INC}"
          -L"${TSLIB_LIB}"
          -alsa
          -I"${ALSA_INC}"
          -L"${ALSA_LIB}" \

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

            could I have your email?

            no
            Just look for the configure call in the build log and post it here...
            You can also compress the build log and upload it to some file sharing service and put the link here.

            J Offline
            J Offline
            Jaye
            wrote on last edited by
            #12

            @jsulm
            this is configure call log showing below

            /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/configure -top-level -prefix /opt/qt-everywhere-src-5.13.2 -xplatform my-linux-arm-qt -release -opensource -confirm-license -no-openssl -no-opengl -no-xcb -no-eglfs -no-compile-examples -no-pkg-config -no-iconv -no-glib -tslib -avx -I/opt/tslib-1.21/include -L/opt/tslib-1.21/lib -alsa -I/opt/alsa-lib-1.2.2/include -L/opt/alsa-lib-1.2.2/lib

            I can't find any abnormal options. what cause the error happens?

            jsulmJ 1 Reply Last reply
            0
            • J Jaye

              @jsulm
              this is configure call log showing below

              /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/configure -top-level -prefix /opt/qt-everywhere-src-5.13.2 -xplatform my-linux-arm-qt -release -opensource -confirm-license -no-openssl -no-opengl -no-xcb -no-eglfs -no-compile-examples -no-pkg-config -no-iconv -no-glib -tslib -avx -I/opt/tslib-1.21/include -L/opt/tslib-1.21/lib -alsa -I/opt/alsa-lib-1.2.2/include -L/opt/alsa-lib-1.2.2/lib

              I can't find any abnormal options. what cause the error happens?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #13

              @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

              -avx

              Remove this

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

                could I have your email?

                no
                Just look for the configure call in the build log and post it here...
                You can also compress the build log and upload it to some file sharing service and put the link here.

                J Offline
                J Offline
                Jaye
                wrote on last edited by
                #14

                @jsulm
                The build options is:
                Build options:
                Mode ................................... release
                Optimize release build for size ........ no
                Building shared libraries .............. yes
                Using C standard ....................... C11
                Using C++ standard ..................... C++17
                Using ccache ........................... no
                Using new DTAGS ........................ no
                Using precompiled headers .............. yes
                Using LTCG ............................. no
                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 examples
                Qt modules and options:
                Qt Concurrent .......................... yes
                Qt D-Bus ............................... yes
                Qt D-Bus directly linked to libdbus .... no
                Qt Gui ................................. yes
                Qt Network ............................. yes
                Qt Sql ................................. yes
                Qt Testlib ............................. yes
                Qt Widgets ............................. yes
                Qt Xml ................................. yes
                Support enabled for:
                Using pkg-config ....................... no
                udev ................................... no
                Using system zlib ...................... no
                Zstandard support ...................... no
                Qt Core:
                DoubleConversion ....................... yes
                Using system DoubleConversion ........ no
                GLib ................................... no
                iconv .................................. no
                ICU .................................... no
                Built-in copy of the MIME database ..... yes
                Tracing backend ........................ <none>
                Logging backends:
                journald ............................. no
                syslog ............................... no
                slog2 ................................ no
                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
                Qt Gui:
                Accessibility .......................... yes
                FreeType ............................... yes
                Using system FreeType ................ no
                HarfBuzz ............................... yes
                Using system HarfBuzz ................ no
                Fontconfig ............................. no
                Image formats:
                GIF .................................. yes
                ICO .................................. yes
                JPEG ................................. yes
                Using system libjpeg ............... no
                PNG .................................. yes
                Using system libpng ................ no
                EGL .................................... no
                OpenVG ................................. no
                OpenGL:
                Desktop OpenGL ....................... no
                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 .................................. yes
                xkbcommon .............................. no
                X11 specific:
                XLib ................................. yes
                XCB Xlib ............................. yes
                EGL on X11 ........................... no
                QPA backends:
                DirectFB ............................... no
                EGLFS .................................. no
                LinuxFB ................................ yes
                VNC .................................... yes
                Mir client ............................. no
                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
                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 tracing JIT support ................ no
                QML sequence object .................... yes
                QML list model ......................... yes
                QML XML http request ................... yes
                QML Locale ............................. 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
                Qt Scxml:
                ECMAScript data model for QtScxml ...... yes
                Qt Gamepad:
                SDL2 ................................... no
                Qt 3D GeometryLoaders:
                Autodesk FBX ........................... no
                Qt Wayland Drivers:
                EGL .................................... no
                Raspberry Pi ........................... no
                XComposite EGL ......................... no
                XComposite GLX ......................... no
                DRM EGL ................................ no
                libhybris EGL .......................... no
                Linux dma-buf server buffer integration . no
                Vulkan-based server buffer integration . no
                Shm emulation server buffer integration . no
                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
                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 ............................. no
                Itemsoverlay ......................... yes
                QtXmlPatterns:
                XML schema support ..................... yes
                Qt Multimedia:
                ALSA ................................... no
                GStreamer 1.0 .......................... no
                GStreamer 0.10 ......................... no
                Video for Linux ........................ yes
                OpenAL ................................. no
                PulseAudio ............................. no
                Resource Policy (libresourceqt5) ....... no
                Windows Audio Services ................. no
                DirectShow ............................. no
                Windows Media Foundation ............... no
                Qt Tools:
                QDoc ................................... no
                Qt WebEngineCore:
                Qt WebEngine Widgets ................... yes
                Qt WebEngine Qml ....................... yes
                Embedded build ......................... yes
                Full debug information ................. no
                Pepper Plugins ......................... no
                Printing and PDF ....................... no
                Proprietary Codecs ..................... no
                Spellchecker ........................... yes
                Native Spellchecker .................... no
                WebRTC ................................. no
                Use System Ninja ....................... no
                Geolocation ............................ yes
                WebChannel support ..................... yes
                Use v8 snapshot ........................ yes
                Kerberos Authentication ................ no
                Extensions ............................. no
                Support qpa-xcb ........................ no
                Building v8 snapshot supported ......... yes
                Use ALSA ............................... yes
                Use PulseAudio ......................... no
                Optional system libraries used:
                re2 .................................. no
                icu .................................. no
                libwebp, libwebpmux and libwebpdemux . no
                opus ................................. no
                ffmpeg ............................... no
                libvpx ............................... no
                snappy ............................... no
                glib ................................. no
                zlib ................................. no
                minizip .............................. no
                libevent ............................. no
                jsoncpp .............................. no
                protobuf ............................. no
                libxml2 and libxslt .................. no
                lcms2 ................................ no
                png .................................. no
                JPEG ................................. no
                harfbuzz ............................. no
                freetype ............................. no
                Required system libraries:
                fontconfig ........................... no
                dbus ................................. no
                nss .................................. no
                khr .................................. yes
                glibc ................................ yes
                Required system libraries for qpa-xcb:
                x11 .................................. no
                libdrm ............................... no
                xcomposite ........................... no
                xcursor .............................. no
                xi ................................... no
                xtst ................................. no
                Qt WebEngineQml:
                UI Delegates ........................... yes
                Test Support ........................... no

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

                  -avx

                  Remove this

                  J Offline
                  J Offline
                  Jaye
                  wrote on last edited by
                  #15

                  @jsulm

                  • /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/configure -top-level -prefix /opt/qt-everywhere-src-5.13.2 -xplatform my-linux-arm-qt -release -opensource -confirm-license -no-openssl -no-opengl -no-xcb -no-eglfs -no-compile-examples -no-pkg-config -no-iconv -no-glib -tslib -I/opt/tslib-1.21/include -L/opt/tslib-1.21/lib -alsa -I/opt/alsa-lib-1.2.2/include -L/opt/alsa-lib-1.2.2/lib

                  it's still doesn't work. same problem occurs.

                  1 Reply Last reply
                  0
                  • J Jaye

                    following is build script that I downloaded from web, I don't know why this error happens.

                    #!/bin/sh
                    
                    # set -v
                    
                    PLATFORM=my-linux-arm-qt
                    SCRIPT_PATH=$(pwd)
                    
                    #修改源码包解压后的名称
                    MAJOR_NAME=qt-everywhere-src
                    
                    #修改需要下载的源码前缀和后缀
                    OPENSRC_VER_PREFIX=5.13
                    OPENSRC_VER_SUFFIX=.2
                    
                    
                    
                    #添加tslib交叉编译的动态库文件和头文件路径
                    TSLIB_LIB=/opt/tslib-1.21/lib
                    TSLIB_INC=/opt/tslib-1.21/include
                    
                    #添加alsa交叉编译的动态库文件和头文件路径
                    ALSA_LIB=/opt/alsa-lib-1.2.2/lib
                    ALSA_INC=/opt/alsa-lib-1.2.2/include
                    
                    #修改源码包解压后的名称
                    PACKAGE_NAME=${MAJOR_NAME}-${OPENSRC_VER_PREFIX}${OPENSRC_VER_SUFFIX}
                    
                    #定义编译后安装--生成的文件,文件夹位置路径
                    INSTALL_PATH=/opt/${PACKAGE_NAME}
                    
                    #添加交叉编译工具链路径
                    # CROSS_CHAIN_PREFIX=/opt/arm-gcc/bin/arm-linux-gnueabihf
                    CROSS_CHAIN_PREFIX=/opt/gcc-arm-linux-gnueabihf-8.3.0/bin/arm-linux-gnueabihf
                    
                    #定义压缩包名称
                    COMPRESS_PACKAGE=${PACKAGE_NAME}.tar.xz
                    
                    #无需修改--自动组合下载地址
                    OPENSRC_VER=${OPENSRC_VER_PREFIX}${OPENSRC_VER_SUFFIX}
                    
                    case ${OPENSRC_VER_PREFIX} in
                          5.9 | 5.12 | 5.13 | 5.14 |5.15 )
                          DOWNLOAD_LINK=http://download.qt.io/official_releases/qt/${OPENSRC_VER_PREFIX}/${OPENSRC_VER}/single/${COMPRESS_PACKAGE}
                          ;;
                       *)
                          DOWNLOAD_LINK=http://download.qt.io/new_archive/qt/${OPENSRC_VER_PREFIX}/${OPENSRC_VER}/single/${COMPRESS_PACKAGE}
                          ;;
                    esac
                    
                    #无需修改--自动组合平台路径
                    CONFIG_PATH=${SCRIPT_PATH}/${PACKAGE_NAME}/qtbase/mkspecs/${PLATFORM}
                    
                    #无需修改--自动组合配置平台路径文件
                    CONFIG_FILE=${CONFIG_PATH}/qmake.conf
                    
                    #下载源码包
                    do_download_src () {
                       echo "\033[1;33mstart download ${PACKAGE_NAME}...\033[0m"
                    
                       if [ ! -f "${COMPRESS_PACKAGE}" ];then
                          if [ ! -d "${PACKAGE_NAME}" ];then
                             wget -c ${DOWNLOAD_LINK}
                          fi
                       fi
                    
                       echo "\033[1;33mdone...\033[0m"
                    }
                    
                    #解压源码包
                    do_tar_package () {
                       echo "\033[1;33mstart unpacking the ${PACKAGE_NAME} package ...\033[0m"
                       if [ ! -d "${PACKAGE_NAME}" ];then
                          tar -xf ${COMPRESS_PACKAGE}
                       fi
                       echo "\033[1;33mdone...\033[0m"
                       cd ${PACKAGE_NAME}
                    
                       # 修复5.11.3 版本的bug
                       if [ ${OPENSRC_VER_PREFIX}=="5.11" -a ${OPENSRC_VER_SUFFIX}==".3" ]; then
                          sed 's/asm volatile /asm /' -i qtscript/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp
                       fi
                    }
                    
                    #安装依赖项
                    do_install_config_dependent () {
                       sudo apt install python -y
                       sudo apt install g++ make qt3d5-dev-tools -y
                       sudo apt install qml-module-qtquick-xmllistmodel -y
                       sudo apt install qml-module-qtquick-virtualkeyboard qml-module-qtquick-privatewidgets qml-module-qtquick-dialogs qml -y
                       sudo apt install libqt53dquickscene2d5 libqt53dquickrender5 libqt53dquickinput5 libqt53dquickextras5 libqt53dquickanimation5 libqt53dquick5 -y
                       sudo apt install qtdeclarative5-dev qml-module-qtwebengine qml-module-qtwebchannel qml-module-qtmultimedia qml-module-qtaudioengine -y
                    }
                    
                    #修改配置平台
                    do_config_before () {
                       echo "\033[1;33mstart configure platform...\033[0m"
                    
                    if [ ! -d "${CONFIG_PATH}" ];then
                       cp -a ${SCRIPT_PATH}/${PACKAGE_NAME}/qtbase/mkspecs/linux-arm-gnueabi-g++ ${CONFIG_PATH}
                    fi
                    
                       echo "#" > ${CONFIG_FILE}
                       echo "# qmake configuration for building with arm-linux-gnueabi-g++" >> ${CONFIG_FILE}
                       echo "#" >> ${CONFIG_FILE}
                       echo "" >> ${CONFIG_FILE}
                       echo "MAKEFILE_GENERATOR      = UNIX" >> ${CONFIG_FILE}
                       echo "CONFIG                 += incremental" >> ${CONFIG_FILE}
                       echo "QMAKE_INCREMENTAL_STYLE = sublib" >> ${CONFIG_FILE}
                       echo "" >> ${CONFIG_FILE}
                       echo "include(../common/linux.conf)" >> ${CONFIG_FILE}
                       echo "include(../common/gcc-base-unix.conf)" >> ${CONFIG_FILE}
                       echo "include(../common/g++-unix.conf)" >> ${CONFIG_FILE}
                       echo "" >> ${CONFIG_FILE}
                       echo "# modifications to g++.conf" >> ${CONFIG_FILE}
                       echo "QMAKE_CC                = ${CROSS_CHAIN_PREFIX}-gcc -lts" >> ${CONFIG_FILE}
                       echo "QMAKE_CXX               = ${CROSS_CHAIN_PREFIX}-g++ -lts" >> ${CONFIG_FILE}
                       echo "QMAKE_LINK              = ${CROSS_CHAIN_PREFIX}-g++ -lts" >> ${CONFIG_FILE}
                       echo "QMAKE_LINK_SHLIB        = ${CROSS_CHAIN_PREFIX}-g++ -lts" >> ${CONFIG_FILE}
                       echo "" >> ${CONFIG_FILE}
                       echo "# modifications to linux.conf" >> ${CONFIG_FILE}
                       echo "QMAKE_AR                = ${CROSS_CHAIN_PREFIX}-ar cqs" >> ${CONFIG_FILE}
                       echo "QMAKE_OBJCOPY           = ${CROSS_CHAIN_PREFIX}-objcopy" >> ${CONFIG_FILE}
                       echo "QMAKE_NM                = ${CROSS_CHAIN_PREFIX}-nm -P" >> ${CONFIG_FILE}
                       echo "QMAKE_STRIP             = ${CROSS_CHAIN_PREFIX}-strip" >> ${CONFIG_FILE}
                       echo "load(qt_config)" >> ${CONFIG_FILE}
                       echo "" >> ${CONFIG_FILE}
                       echo "QMAKE_INCDIR=${TSLIB_INC}" >> ${CONFIG_FILE}
                       echo "QMAKE_LIBDIR=${TSLIB_LIB}" >> ${CONFIG_FILE}
                    
                       cat ${CONFIG_FILE}
                       echo "\033[1;33mdone...\033[0m"
                    }
                    
                    #配置选项
                    do_configure () {
                       echo "\033[1;33mstart configure ${PACKAGE_NAME}...\033[0m"
                    
                       export CC="${CROSS_CHAIN_PREFIX}-gcc"
                       export CXX="${CROSS_CHAIN_PREFIX}-g++"
                    
                       ./configure \
                       -prefix ${INSTALL_PATH} \
                       -xplatform ${PLATFORM} \
                       -release \
                       -opensource \
                       -confirm-license \
                       -no-openssl \
                       -no-opengl \
                       -no-xcb \
                       -no-eglfs \
                       -no-compile-examples \
                       -no-pkg-config \
                       -no-iconv \
                       -no-glib \
                       -tslib \
                       -I"${TSLIB_INC}" \
                       -L"${TSLIB_LIB}" \
                       -alsa \
                       -I"${ALSA_INC}" \
                       -L"${ALSA_LIB}" \
                    
                       echo "\033[1;33mdone...\033[0m"
                    }
                    
                    
                    #编译并且安装
                    do_make_install () {
                       echo "\033[1;33mstart make and install ${PACKAGE_NAME} ...\033[0m"
                       make && make install
                       echo "\033[1;33mdone...\033[0m"
                    }
                    
                    #删除下载的文件
                    do_delete_file () {
                       cd ${SCRIPT_PATH}
                       if [ -f "${COMPRESS_PACKAGE}" ];then
                          sudo rm -f ${COMPRESS_PACKAGE}
                       fi
                    }
                    
                    do_download_src
                    do_tar_package
                    do_install_config_dependent
                    do_config_before
                    do_configure
                    do_make_install
                    # do_delete_file
                    
                    exit $?
                    
                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #16

                    @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

                    build script that I downloaded from web

                    could it be possible you share the link to where you downloaded such script? In order to understand the context it is suppose to run from...

                    -xplatform my-linux-arm-qt

                    could it be possible you provide the contents of this my-linux-arm-qt mkspecs file?

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    J 1 Reply Last reply
                    0
                    • Pablo J. RoginaP Pablo J. Rogina

                      @Jaye said in Tip of #error "AVX support required" when compile Qt everywhere 5.13.2:

                      build script that I downloaded from web

                      could it be possible you share the link to where you downloaded such script? In order to understand the context it is suppose to run from...

                      -xplatform my-linux-arm-qt

                      could it be possible you provide the contents of this my-linux-arm-qt mkspecs file?

                      J Offline
                      J Offline
                      Jaye
                      wrote on last edited by
                      #17

                      @Pablo-J-Rogina
                      https://embed-linux-tutorial.readthedocs.io/zh_CN/latest/linux_env/qt_cross_compiling.html

                      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