This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5728:QT 编译问题

Guru**** 2943400 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/673069/linux-am5728-qt-compilation-issue

器件型号:AM5728

工具/软件:Linux

您好,

我正在尝试使用 ti-processor-sdk-linux-am57xx-evm-04.02.00.09 SDK 构建 qt-Everywhere opensource-src-5.7.1。

编译时出现如下错误:

/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c ++/6.2.1/cstdlib:75:25:致命错误:stdlib.h:无此类文件或目录
 #include_next

我在 互联网上搜索时

https://github.com/voidlinux/void-packages/issues/5254

表示 gcc6.2存在问题、即使6.3中也没有修复。

请告诉我如何继续。目前我无法继续。

错误日志:

make[5]:输入目录'/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtimageformats/src/plugins/imageformats/dds
/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g -c -pipe -O3 -March =armv7-a -mtune =cortex-a15 -mfpu =none-vfpv4 -mfloat-abi=hard -fpic -mword-relocations -fO2 -sysroot=/home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -std=c+1Z -fvisibility=hidden -fffpvpv-mfpv-mfpv-mfpf-abus-mword-md_exceptions-dqt -dv_exceptions-vdqt -dv-dv_in_exions-vdvdv_exceptions-vrt -dvdt -dvdqt -dv_exions-vdv_in-dt -dv_exions-vdqt -i/home/Mistral/Qt_build/qt-abouts-opensource-src-5.7.1/qtbase/include -i/home/Mistral/Qt-abouts-opensource-src-5.7.1/qtbase/include/qtgui /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include -i/mistral//home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/libxml2 /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2 /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/gbm -misuse/rf-noost-r-ruse/q-rf-neyruse/q-rf-nest-ruse/q-r-r-r-rf-neyrf-nest/q-ruse-linux/q-rf-neyruse/q-r-rf-neyr-r-rf-nest-r.tr-r-r-r.tr-r-r-rc/-r-r-r-r-rf-ney-rc/q-misrc/-rf-nese-rf-ney-rf-ney-rf-nest-q-r-r-r-r-r ddsheader.cpp /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/GLES /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/drm
在/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c 中包含的文件中、++/6.2.1/bits/stl_algo。h:59:0、
                来自/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c ++/6.2.1/算法:62、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:94、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qglobal.h:1、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:43、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qscopedpointer.h:1、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/io/qdatastream.h:43、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qdatastream.h:1、
                来自/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QDataStream:1、
                从 ddsheader.h:44、
                从 ddsheader.cpp:41:
/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c ++/6.2.1/cstdlib:75:25:致命错误:stdlib.h:无此类文件或目录
 #include_next
                        ^μ A
编译已终止。
Makefile:1217:目标'.obj/ddsheader.o'的配方失败

此致、

Biswajit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Biswajit、

    修改#include_next 添加到#include 。

    此致、
    Kemal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Kemal、

    非常感谢您的回答。

    在你提出建议后,我做了一些修改,然后它就能工作了。但是由于其他原因,它失败了。
    由于我不熟悉 Qt 开发。请让 qtwebengine 使用案例 。如果我们可以禁用、请告诉我。

    配置参数:

    ./configure -xplatform linux-arm-gnueabihf-g++-prefix /usr/local/Qt5.7.1_opengl -OpenGL ES2 -confirmence -opensource -no-cups -no-largefile -optimized -qmake -nomake tools -no-pch  -v -no-ICU -no-OpenVG -sysroot /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -qt-nomre -no-pcd-no-input -no -mb -ab-ab-pcab

    请帮助我找出根本原因。

    错误日志:

    输入目录`/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release
    [9/10383] action make_core_generated:CSSPropertyNames_1dd3bbd1830ec3803de4b986e6e77be9
    失败:cd /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core;python ./build/scripts/make_css_property_names.py css/CSSProperties.in --output_dir /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release/gen/blink/core --gperf gperf
    回溯(最近一次调用最后一次):
     文件"../build/scripts/make_css_property_names.py、第238行、输入
       IN_Generator.Maker (CSSPropertyNamesWriter).main (sys.argv)
     文件"/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py、第95行、位于 main 中
       write_files (options.output_dir)
     文件"/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py、第71行、位于 WRITE_FILES 中
       self._write_file_if_changed (output_dir、generator ()、file_name)
     文件"../build/scripts/make_css_property_names.py、第233行、在 generate_implementation 中
       gperf = subprocess.popen (gperf_args、stdin = subprocess.pipe、stdout= subprocess.pipe、universal_newlines = True)
     文件"/usr/lib/python2.7/subprocess.py、第711行、位于_init__
       错误读取、错误写入)
     文件"/usr/lib/python2.7/subprocess.py、第1343行、在_execution_child 中
       提出子项异常
    OSError:[errno 2]没有这样的文件或目录
    [9/10383] action make_core_generated:StylePropertyShorefy_1dd3bbd1830ec3803de4b986e6e77be9
    ninja:Build stopped:子命令失败。
    Makefile.gyp_run:923:目标'invoke_ninja'的配方失败
    maked[4]:***[Invoke_ninja]错误1
    make[4]:离开目录'/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core
    Makefile:116:目标'sub-gyp_run-pro-make_first'的配方失败
    maked[3]:***[sub-gyp_run-pro-make_first]错误2.
    make[3]:离开目录'/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core
    makefile:49:目标'sub-core-make_first'的配方失败
    maked[2]:***[sub-core-make_first]错误2.
    make[2]:离开目录'/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src
    Makefile:44:目标'sub-src-make_first'的配方失败
    maked[1]:***[sub-src-make_first]错误2.
    make[1]:离开目录'/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine
    Makefile:859:目标'module-qtwebenger-make_first'的配方失败
    制造:***[MODULE-qtwebengine-make_first]错误2.

    此致、

    Biswajit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Kemal、
    我已禁用 qtwebengine (-skip qtwebengine)并再次编译。
    它已经编译、解决了任何其他问题。
    感谢你的帮助。

    此致、
    Biswajit
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我很高兴听到这个消息。