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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Independent Developers
17 Posts 3 Posters 3.4k 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.
  • 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 $?
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #4

    @Jaye You did not answer my questions...
    Please post at least the build log.

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

    J 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Jaye You did not answer my questions...
      Please post at least the build log.

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

      @jsulm
      the build show below

      make[3]: 进入目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src/corelib”
      /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake -o Makefile corelib.pro
      /opt/gcc-arm-linux-gnueabihf-8.3.0/bin/arm-linux-gnueabihf-g++ -lts -c -include .pch/Qt5Core -pipe -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -I../3rdparty/zlib/src -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty -I../3rdparty/double-conversion/include -I../3rdparty/double-conversion/include/double-conversion -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.13.2 -I../../include/QtCore/5.13.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I/opt/tslib-1.21/include -I/opt/tslib-1.21/include -I../../mkspecs/my-linux-arm-qt -o .obj/qfloat16.o global/qfloat16.cpp
      In file included from global/qfloat16.cpp:227:
      global/qfloat16_f16c.c:48:4: 错误: #error "AVX support required"
       #  error "AVX support required"
          ^~~~~
      In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                       from global/qfloat16.cpp:41:
      global/qfloat16.cpp: 在函数‘bool hasFastF16()’中:
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 错误: ‘CpuFeatureF16C’在此作用域中尚未声明
       #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                     ^~~~~~~~~~
      global/qfloat16.cpp:135:12: 附注: in expansion of macro ‘qCpuHasFeature’
           return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                  ^~~~~~~~~~~~~~
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 附注: suggested alternative: ‘CpuFeatureNEON’
       #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                     ^~~~~~~~~~
      global/qfloat16.cpp:135:12: 附注: in expansion of macro ‘qCpuHasFeature’
           return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                  ^~~~~~~~~~~~~~
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 错误: ‘CpuFeatureAVX’在此作用域中尚未声明
       #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                     ^~~~~~~~~~
      global/qfloat16.cpp:135:36: 附注: in expansion of macro ‘qCpuHasFeature’
           return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                                          ^~~~~~~~~~~~~~
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 附注: suggested alternative: ‘qCpuFeatures’
       #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                     ^~~~~~~~~~
      global/qfloat16.cpp:135:36: 附注: in expansion of macro ‘qCpuHasFeature’
           return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                                          ^~~~~~~~~~~~~~
      In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                       from global/qfloat16.cpp:41:
      global/qfloat16_f16c.c: 在全局域:
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 错误: ‘QT_FUNCTION_TARGET_STRING_F16C’在此作用域中尚未声明
       #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:56:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
       QT_FUNCTION_TARGET(F16C)
       ^~~~~~~~~~~~~~~~~~
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 附注: suggested alternative: ‘QT_FUNCTION_TARGET_STRING_NEON’
       #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:56:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
       QT_FUNCTION_TARGET(F16C)
       ^~~~~~~~~~~~~~~~~~
      In file included from ../../include/QtCore/qcompilerdetection.h:1,
                       from global/qglobal.h:105,
                       from global/qt_pch.h:56:
      ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1129:26: 错误: attribute ‘target’ argument not a string
       # define Q_DECL_NOEXCEPT noexcept
                                ^~~~~~~~
      ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1139:25: 附注: in expansion of macro ‘Q_DECL_NOEXCEPT’
       # define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
                               ^~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:57:73: 附注: in expansion of macro ‘Q_DECL_NOTHROW’
       void qFloatToFloat16_fast(quint16 *out, const float *in, qsizetype len) Q_DECL_NOTHROW
                                                                               ^~~~~~~~~~~~~~
      In file included from global/qfloat16.cpp:227:
      global/qfloat16_f16c.c: 在函数‘void qFloatToFloat16_fast(quint16*, const float*, qsizetype)’中:
      global/qfloat16_f16c.c:62:27: 错误: ‘__m128i’在此作用域中尚未声明
               _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                 ^~~~~~~
      global/qfloat16_f16c.c:62:36: 错误: expected primary-expression before ‘)’ token
               _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                          ^
      global/qfloat16_f16c.c:62:64: 错误: ‘_mm256_loadu_ps’在此作用域中尚未声明
               _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                                                      ^~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:62:48: 错误: ‘_mm256_cvtps_ph’在此作用域中尚未声明
               _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                                      ^~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:62:9: 错误: ‘_mm_storeu_si128’在此作用域中尚未声明
               _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
               ^~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:64:27: 错误: ‘__m128i’在此作用域中尚未声明
               _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                 ^~~~~~~
      global/qfloat16_f16c.c:64:36: 错误: expected primary-expression before ‘)’ token
               _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                          ^
      global/qfloat16_f16c.c:64:61: 错误: ‘_mm_loadu_ps’在此作用域中尚未声明
               _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                                                   ^~~~~~~~~~~~
      global/qfloat16_f16c.c:64:48: 错误: ‘_mm_cvtps_ph’在此作用域中尚未声明
               _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                                      ^~~~~~~~~~~~
      global/qfloat16_f16c.c:64:9: 错误: ‘_mm_storel_epi64’在此作用域中尚未声明
               _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
               ^~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:69:49: 错误: ‘_mm_set_ss’在此作用域中尚未声明
               out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                                       ^~~~~~~~~~
      global/qfloat16_f16c.c:69:49: 附注: suggested alternative: ‘cpu_set_t’
               out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                                       ^~~~~~~~~~
                                                       cpu_set_t
      global/qfloat16_f16c.c:69:36: 错误: ‘_mm_cvtps_ph’在此作用域中尚未声明
               out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                          ^~~~~~~~~~~~
      global/qfloat16_f16c.c:69:18: 错误: ‘_mm_extract_epi16’在此作用域中尚未声明
               out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                        ^~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:69:18: 附注: suggested alternative: ‘__chkp_extract_upper’
               out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                        ^~~~~~~~~~~~~~~~~
                        __chkp_extract_upper
      In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                       from global/qfloat16.cpp:41:
      global/qfloat16_f16c.c: 在全局域:
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 错误: ‘QT_FUNCTION_TARGET_STRING_F16C’在此作用域中尚未声明
       #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:72:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
       QT_FUNCTION_TARGET(F16C)
       ^~~~~~~~~~~~~~~~~~
      ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 附注: suggested alternative: ‘QT_FUNCTION_TARGET_STRING_NEON’
       #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:72:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
       QT_FUNCTION_TARGET(F16C)
       ^~~~~~~~~~~~~~~~~~
      In file included from ../../include/QtCore/qcompilerdetection.h:1,
                       from global/qglobal.h:105,
                       from global/qt_pch.h:56:
      ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1129:26: 错误: attribute ‘target’ argument not a string
       # define Q_DECL_NOEXCEPT noexcept
                                ^~~~~~~~
      ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1139:25: 附注: in expansion of macro ‘Q_DECL_NOEXCEPT’
       # define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
                               ^~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:73:75: 附注: in expansion of macro ‘Q_DECL_NOTHROW’
       void qFloatFromFloat16_fast(float *out, const quint16 *in, qsizetype len) Q_DECL_NOTHROW
                                                                                 ^~~~~~~~~~~~~~
      In file included from global/qfloat16.cpp:227:
      global/qfloat16_f16c.c: 在函数‘void qFloatFromFloat16_fast(float*, const quint16*, qsizetype)’中:
      global/qfloat16_f16c.c:78:74: 错误: ISO C++ 不允许声明无类型的‘type name’ [-fpermissive]
               _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                                ^~~~~~~
      global/qfloat16_f16c.c:78:68: 错误: expected primary-expression before ‘const’
               _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                          ^~~~~
      global/qfloat16_f16c.c:78:68: 错误: expected ‘)’ before ‘const’
               _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                         ~^~~~~
                                                                          )
      global/qfloat16_f16c.c:80:68: 错误: ISO C++ 不允许声明无类型的‘type name’ [-fpermissive]
               _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                          ^~~~~~~
      global/qfloat16_f16c.c:80:62: 错误: expected primary-expression before ‘const’
               _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                    ^~~~~
      global/qfloat16_f16c.c:80:62: 错误: expected ‘)’ before ‘const’
               _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                   ~^~~~~
                                                                    )
      global/qfloat16_f16c.c:85:45: 错误: ‘_mm_cvtsi32_si128’在此作用域中尚未声明
               out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                                                   ^~~~~~~~~~~~~~~~~
      global/qfloat16_f16c.c:85:32: 错误: ‘_mm_cvtph_ps’在此作用域中尚未声明
               out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                                      ^~~~~~~~~~~~
      global/qfloat16_f16c.c:85:18: 错误: ‘_mm_cvtss_f32’在此作用域中尚未声明
               out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                        ^~~~~~~~~~~~~
      Makefile:13748: recipe for target '.obj/qfloat16.o' failed
      make[3]: *** [.obj/qfloat16.o] Error 1
      make[3]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src/corelib”
      Makefile:253: recipe for target 'sub-corelib-make_first' failed
      make[2]: *** [sub-corelib-make_first] Error 2
      make[2]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src”
      Makefile:50: recipe for target 'sub-src-make_first' failed
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase”
      Makefile:85: recipe for target 'module-qtbase-make_first' failed
      make: *** [module-qtbase-make_first] Error 2
      done...
      
      
      jsulmJ 1 Reply Last reply
      0
      • J Jaye

        @jsulm
        the build show below

        make[3]: 进入目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src/corelib”
        /home/jaye/project/qt-everywhere-src-5.13.2/qtbase/bin/qmake -o Makefile corelib.pro
        /opt/gcc-arm-linux-gnueabihf-8.3.0/bin/arm-linux-gnueabihf-g++ -lts -c -include .pch/Qt5Core -pipe -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -I../3rdparty/zlib/src -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty -I../3rdparty/double-conversion/include -I../3rdparty/double-conversion/include/double-conversion -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.13.2 -I../../include/QtCore/5.13.2/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I/opt/tslib-1.21/include -I/opt/tslib-1.21/include -I../../mkspecs/my-linux-arm-qt -o .obj/qfloat16.o global/qfloat16.cpp
        In file included from global/qfloat16.cpp:227:
        global/qfloat16_f16c.c:48:4: 错误: #error "AVX support required"
         #  error "AVX support required"
            ^~~~~
        In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                         from global/qfloat16.cpp:41:
        global/qfloat16.cpp: 在函数‘bool hasFastF16()’中:
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 错误: ‘CpuFeatureF16C’在此作用域中尚未声明
         #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                       ^~~~~~~~~~
        global/qfloat16.cpp:135:12: 附注: in expansion of macro ‘qCpuHasFeature’
             return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                    ^~~~~~~~~~~~~~
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 附注: suggested alternative: ‘CpuFeatureNEON’
         #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                       ^~~~~~~~~~
        global/qfloat16.cpp:135:12: 附注: in expansion of macro ‘qCpuHasFeature’
             return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                    ^~~~~~~~~~~~~~
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 错误: ‘CpuFeatureAVX’在此作用域中尚未声明
         #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                       ^~~~~~~~~~
        global/qfloat16.cpp:135:36: 附注: in expansion of macro ‘qCpuHasFeature’
             return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                                            ^~~~~~~~~~~~~~
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:371:63: 附注: suggested alternative: ‘qCpuFeatures’
         #define qCpuHasFeature(feature)     (((qCompilerCpuFeatures & CpuFeature ## feature) == CpuFeature ## feature) \
                                                                       ^~~~~~~~~~
        global/qfloat16.cpp:135:36: 附注: in expansion of macro ‘qCpuHasFeature’
             return qCpuHasFeature(F16C) && qCpuHasFeature(AVX);
                                            ^~~~~~~~~~~~~~
        In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                         from global/qfloat16.cpp:41:
        global/qfloat16_f16c.c: 在全局域:
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 错误: ‘QT_FUNCTION_TARGET_STRING_F16C’在此作用域中尚未声明
         #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:56:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
         QT_FUNCTION_TARGET(F16C)
         ^~~~~~~~~~~~~~~~~~
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 附注: suggested alternative: ‘QT_FUNCTION_TARGET_STRING_NEON’
         #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:56:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
         QT_FUNCTION_TARGET(F16C)
         ^~~~~~~~~~~~~~~~~~
        In file included from ../../include/QtCore/qcompilerdetection.h:1,
                         from global/qglobal.h:105,
                         from global/qt_pch.h:56:
        ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1129:26: 错误: attribute ‘target’ argument not a string
         # define Q_DECL_NOEXCEPT noexcept
                                  ^~~~~~~~
        ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1139:25: 附注: in expansion of macro ‘Q_DECL_NOEXCEPT’
         # define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
                                 ^~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:57:73: 附注: in expansion of macro ‘Q_DECL_NOTHROW’
         void qFloatToFloat16_fast(quint16 *out, const float *in, qsizetype len) Q_DECL_NOTHROW
                                                                                 ^~~~~~~~~~~~~~
        In file included from global/qfloat16.cpp:227:
        global/qfloat16_f16c.c: 在函数‘void qFloatToFloat16_fast(quint16*, const float*, qsizetype)’中:
        global/qfloat16_f16c.c:62:27: 错误: ‘__m128i’在此作用域中尚未声明
                 _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                   ^~~~~~~
        global/qfloat16_f16c.c:62:36: 错误: expected primary-expression before ‘)’ token
                 _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                            ^
        global/qfloat16_f16c.c:62:64: 错误: ‘_mm256_loadu_ps’在此作用域中尚未声明
                 _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                                                        ^~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:62:48: 错误: ‘_mm256_cvtps_ph’在此作用域中尚未声明
                 _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                                                        ^~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:62:9: 错误: ‘_mm_storeu_si128’在此作用域中尚未声明
                 _mm_storeu_si128((__m128i *)(out + i), _mm256_cvtps_ph(_mm256_loadu_ps(in + i), 0));
                 ^~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:64:27: 错误: ‘__m128i’在此作用域中尚未声明
                 _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                   ^~~~~~~
        global/qfloat16_f16c.c:64:36: 错误: expected primary-expression before ‘)’ token
                 _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                            ^
        global/qfloat16_f16c.c:64:61: 错误: ‘_mm_loadu_ps’在此作用域中尚未声明
                 _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                                                     ^~~~~~~~~~~~
        global/qfloat16_f16c.c:64:48: 错误: ‘_mm_cvtps_ph’在此作用域中尚未声明
                 _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                                                        ^~~~~~~~~~~~
        global/qfloat16_f16c.c:64:9: 错误: ‘_mm_storel_epi64’在此作用域中尚未声明
                 _mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
                 ^~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:69:49: 错误: ‘_mm_set_ss’在此作用域中尚未声明
                 out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                                         ^~~~~~~~~~
        global/qfloat16_f16c.c:69:49: 附注: suggested alternative: ‘cpu_set_t’
                 out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                                         ^~~~~~~~~~
                                                         cpu_set_t
        global/qfloat16_f16c.c:69:36: 错误: ‘_mm_cvtps_ph’在此作用域中尚未声明
                 out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                                            ^~~~~~~~~~~~
        global/qfloat16_f16c.c:69:18: 错误: ‘_mm_extract_epi16’在此作用域中尚未声明
                 out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                          ^~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:69:18: 附注: suggested alternative: ‘__chkp_extract_upper’
                 out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
                          ^~~~~~~~~~~~~~~~~
                          __chkp_extract_upper
        In file included from ../../include/QtCore/5.13.2/QtCore/private/qsimd_p.h:1,
                         from global/qfloat16.cpp:41:
        global/qfloat16_f16c.c: 在全局域:
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 错误: ‘QT_FUNCTION_TARGET_STRING_F16C’在此作用域中尚未声明
         #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:72:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
         QT_FUNCTION_TARGET(F16C)
         ^~~~~~~~~~~~~~~~~~
        ../../include/QtCore/5.13.2/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:151:62: 附注: suggested alternative: ‘QT_FUNCTION_TARGET_STRING_NEON’
         #    define QT_FUNCTION_TARGET(x)  __attribute__((__target__(QT_FUNCTION_TARGET_STRING_ ## x)))
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:72:1: 附注: in expansion of macro ‘QT_FUNCTION_TARGET’
         QT_FUNCTION_TARGET(F16C)
         ^~~~~~~~~~~~~~~~~~
        In file included from ../../include/QtCore/qcompilerdetection.h:1,
                         from global/qglobal.h:105,
                         from global/qt_pch.h:56:
        ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1129:26: 错误: attribute ‘target’ argument not a string
         # define Q_DECL_NOEXCEPT noexcept
                                  ^~~~~~~~
        ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1139:25: 附注: in expansion of macro ‘Q_DECL_NOEXCEPT’
         # define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
                                 ^~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:73:75: 附注: in expansion of macro ‘Q_DECL_NOTHROW’
         void qFloatFromFloat16_fast(float *out, const quint16 *in, qsizetype len) Q_DECL_NOTHROW
                                                                                   ^~~~~~~~~~~~~~
        In file included from global/qfloat16.cpp:227:
        global/qfloat16_f16c.c: 在函数‘void qFloatFromFloat16_fast(float*, const quint16*, qsizetype)’中:
        global/qfloat16_f16c.c:78:74: 错误: ISO C++ 不允许声明无类型的‘type name’ [-fpermissive]
                 _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                                  ^~~~~~~
        global/qfloat16_f16c.c:78:68: 错误: expected primary-expression before ‘const’
                 _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                            ^~~~~
        global/qfloat16_f16c.c:78:68: 错误: expected ‘)’ before ‘const’
                 _mm256_storeu_ps(out + i, _mm256_cvtph_ps(_mm_loadu_si128((const __m128i *)(in + i))));
                                                                           ~^~~~~
                                                                            )
        global/qfloat16_f16c.c:80:68: 错误: ISO C++ 不允许声明无类型的‘type name’ [-fpermissive]
                 _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                            ^~~~~~~
        global/qfloat16_f16c.c:80:62: 错误: expected primary-expression before ‘const’
                 _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                      ^~~~~
        global/qfloat16_f16c.c:80:62: 错误: expected ‘)’ before ‘const’
                 _mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
                                                                     ~^~~~~
                                                                      )
        global/qfloat16_f16c.c:85:45: 错误: ‘_mm_cvtsi32_si128’在此作用域中尚未声明
                 out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                                                     ^~~~~~~~~~~~~~~~~
        global/qfloat16_f16c.c:85:32: 错误: ‘_mm_cvtph_ps’在此作用域中尚未声明
                 out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                                        ^~~~~~~~~~~~
        global/qfloat16_f16c.c:85:18: 错误: ‘_mm_cvtss_f32’在此作用域中尚未声明
                 out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
                          ^~~~~~~~~~~~~
        Makefile:13748: recipe for target '.obj/qfloat16.o' failed
        make[3]: *** [.obj/qfloat16.o] Error 1
        make[3]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src/corelib”
        Makefile:253: recipe for target 'sub-corelib-make_first' failed
        make[2]: *** [sub-corelib-make_first] Error 2
        make[2]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase/src”
        Makefile:50: recipe for target 'sub-src-make_first' failed
        make[1]: *** [sub-src-make_first] Error 2
        make[1]: 离开目录“/home/jaye/project/qt-everywhere-src-5.13.2/qtbase”
        Makefile:85: recipe for target 'module-qtbase-make_first' failed
        make: *** [module-qtbase-make_first] Error 2
        done...
        
        
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @Jaye AVX is only available on Intel and AMD CPUs not ARM.
        Something is wrong with your configure call.
        Please post whole build log.

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

        J 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Jaye AVX is only available on Intel and AMD CPUs not ARM.
          Something is wrong with your configure call.
          Please post whole build log.

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

          @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 1 Reply Last reply
          0
          • 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