Linux Qt编译时出现has modification time int the future的解决方法

Qt编译时出现has modification time int the future的解决方法


从其它电脑拷贝文件到机器上编译时,由于文件时间戳不正确,会导致报has modification time int the future。
1.检查自己电脑的时间是否正确,不正确就去设置下时间。
2.的确不是自己的问题,那就上命令改:
(将AAA换成你的文件夹路径)

find AAA -type f -exec touch {} +
#find AAA -type f 是找递归找这个路径下所有文件

这一条将这个路径下(包括文件夹和多层文件夹内)所有文件时间戳强制改到现在,就没问题了。

发布了35 篇原创文章 · 获赞 86 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/whstudio123/article/details/104746981
今日推荐