/ usr / bin / ld:build-debug / obj / gpsitem.o:无法识别文件:文件被截断

时间:2019-10-19 16:26:52

标签: c++ linux qt gcc raspberry-pi

我正在使用QT进行构建/运行,但出现错误:

/usr/bin/ld: build-debug/obj/gpsitem.o: file not recognized: file truncated

/usr/bin/ld: build-debug/obj/gpsitem.o: file not recognized: file truncated
collect2: error: ld returned 1 exit status
make: *** [Makefile:1703: debug/apmplanner2] Error 1
21:34:14: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project apm_planner (kit: Desktop)
When executing step "Make"
21:34:16: Elapsed time: 1:48:02.

有人知道为什么会这样吗?

QT Creator 4.8.2
Based on QT 5.11.3 (GCC 8.3.0, 32 bit)
amhf raspberry pi

更新: 清理构建目录,新错误

/usr/local/Qt-5.11.3/bin/uic: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory
/usr/local/Qt-5.11.3/bin/uic: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory
/usr/local/Qt-5.11.3/bin/uic: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory
make: *** [Makefile:70925: build-debug/ui/ui_mapripform.h] Error 127
make: *** Waiting for unfinished jobs....
make: *** [Makefile:70929: build-debug/ui/ui_MainWindow.h] Error 127
make: *** [Makefile:70933: build-debug/ui/ui_CommSettings.h] Error 127
/usr/local/Qt-5.11.3/bin/uic: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory
make: *** [Makefile:70937: build-debug/ui/ui_SerialSettings.h] Error 127
18:04:19: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project apm_planner (kit: Desktop)
When executing step "Make"
18:04:19: Elapsed time: 00:04.

如何获取libicui18n.so.57?

1 个答案:

答案 0 :(得分:0)

安装libicui57可以解决此问题