how solve this error: g++ :error: unrecognized argument in option '-mtune=cortex-a15.cortex-a7'

how solve this error: g++ :error: unrecognized argument in option '-mtune=cortex-a15.cortex-a7'

我决定按照本指南在 XU4 上编译 Qt5.8: http://freecode.hu/sbcomp/2016/08/15/compiling-qt-5-8-on-odroid-xu4/ 但在第 4 步中,我收到此错误:

make:warning:file '/usr/include/string.h' has modification time 1e+07 s in the future
g++-4.8.real:error:unrecognized argument in option '-mtune=cortex-a15.cortex-a7'
g++-4.8.real:note:valid argumentd to '-mtune=' are: arm1020e ....

请帮我解决这个错误, 谢谢大家。

一小时后,我通过编辑 qmake.config 文件解决了我的问题: 更改该教程所说的这一行: QMAKE_CFLAGS += -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard

对此: QMAKE_CFLAGS += -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15 -mtune=cortex-a7 -mfloat-abi=hard