linux - 如何解决此错误 : g++ :error: unrecognized argument in option '-mtune=cortex-a15.cortex-a7'

标签 linux qt g++ qt5 odroid

我决定按照本指南在 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

关于linux - 如何解决此错误 : g++ :error: unrecognized argument in option '-mtune=cortex-a15.cortex-a7' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41901768/

相关文章:

c - 以编程方式检测本地 Web 服务器是否已挂起

具有非特权用户的Linux exec

linux - 使用 AWK 同一列中的数字之间的差异

python - Unicode编码错误: 'ascii' codec can't encode character u'\u2029'

c++ - std::array 中的编译时间范围检查

linux - Buildroot - 在每次构建时重新提取 Github 包

c++ - 将 QString 转换为无符号字符数组

c++ - Qt - 这些代码片段是什么意思

c++ - 如何知道 dlclose() 库的进程是否真正完成?

c++ - 简单的 openGL 程序无法通过编译