我尝试使用以下命令构建我的 Qt 应用程序:
qmake -recursive external.pro make
但它失败并出现以下错误:
/bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [sub-bzip2-1-0-5-bzip2-1-0-5-pro-make_first] Error 2
为什么我会收到此错误,以及如何修复它?
最佳答案
当你安装Qt时,请确保你安装了mingw的windows安装程序(例如qt-opensource-windows-x86-mingw482_opengl-5.3.0.exe),并在安装过程中检查它是否检测到你的mingw安装(特别是你的make.exe 二进制文件)。 Qt 需要修补您的二进制文件。
关于c++ - 构建Qt应用程序时出错:/bin/sh: -c: line 1: syntax error: unexpected end of file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25286046/