我为ARM架构成功构建了qt5-toolchain。但是在编译任何qt应用程序时收到以下错误:
Makefile:545:目标'moc_mainwindow.o'的配方失败Wl,-O1 -o Demo1 main.o mainwindow.o moc_mainwindow.o -L / opt / poky / 2.0.1 / sysroots / cortexa7hf-vfp-vfpv4-neon- poky-linux-gnueabi / usr / lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lEGL -lpthread Makefile:199:目标'Demo1'的配方失败
:c:找不到命令
make:[moc_mainwindow.o]错误127(忽略) )
make:Wl,-O1:找不到命令
make:[Demo1]错误127(忽略)
我怎么解决这个问题?感谢您的回覆...
在获得SDK并将其安装到中之后/opt
,您将需要进行修改qtcreator.sh
以添加环境设置。
因此,找到 /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
编辑 /Qt5.5.1/Tools/QtCreator/bin/qtcreator.sh
在Shebang之前添加此行 source /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句