I built qt5-toolchain for ARM arthitecture successfully.But I receive following error while compiling any qt application:
Makefile:545: recipe for target 'moc_mainwindow.o' failed 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: recipe for target 'Demo1' failed
make: c: Command not found
make: [moc_mainwindow.o] Error 127 (ignored)
make: Wl,-O1: Command not found
make: [Demo1] Error 127 (ignored)
How can I solve this problem? Thank for your reply...
-Wl,-O1
is supposed to be an argument to a command running in a make recipe but the variable for the command itself (which comes before that) is missing and so make is seeing-Wl,-O1
as the start of the line, stripping the-
as "ignore errors from this command" (which is why it says(ignored)
there) and then tries to runWl,-O1
as a command (and that obviously doesn't exist). – Apical