我决定通过本指南在XU4上编译Compilie 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 ....
请帮我解决这个错误, 谢谢大家。
答案 0 :(得分:1)
一小时后,我通过编辑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