请教各位大神,qtcreator编译出现这个问题
Makefile:584: recipe for target 'moc_predefs.h' failed
make: c:命令未找到
make: [main.o] Error 127 (ignored)
make: c:命令未找到
make: [mainwindow.o] Error 127 (ignored)
/bin/sh: 1: -dM: not found
make: [moc_predefs.h] Error 127 (ignored)
提示找不到C命令;已经正确配置了交叉编译链;桌面版的可以编译运行
离线
手动修改makefile 把CC和CXX改成交叉编译器,又提示make: Wl,-rpath,/usr/lib:命令未找到;感觉是整个环境都不起作用了
离线
先确认命令行qmake &make工作是否正常?
离线
先确认命令行qmake &make工作是否正常?
也是一样的错误
make: c:命令未找到
Makefile:617: recipe for target 'moc_mainwindow.o' failed
make: [moc_mainwindow.o] Error 127 (ignored)
Wl,-rpath,/usr/lib -o test2 main.o mainwindow.o moc_mainwindow.o -L/home/cos/x3/x3_sdk/out/astar-parrot/compile_dir/target/qt-everywhere-opensource-src-5.10.1/ipkg-install/usr/lib -lQt5Widgets -L/home/cos/x3/x3_sdk/out/astar-parrot/staging_dir/target/lib\\ -L/home/cos/x3/x3_sdk/out/astar-parrot/staging_dir/target/usr/lib -lQt5Gui -lQt5Core -L/home/cos/x3/x3_sdk/out/astar-parrot/staging_dir/target/home/cos/x3/x3_sdk/out/astar-parrot/staging_dir/target/usr/lib -lGLESv2 -lUMP -lpthread
make: Wl,-rpath,/usr/lib:命令未找到
Makefile:223: recipe for target 'test2' failed
make: [test2] Error 127 (ignored)
最近编辑记录 tianjjff (2020-11-01 20:33:00)
离线
原来安装了qt5.12,后面安装了qt5.10,估计是qt512没卸载干净导致的,重新安装虚拟机解决了
离线