Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"c: Command not found" error

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...

like image 925
overlord Avatar asked Mar 24 '16 14:03

overlord


1 Answers

After you have got the SDK and installed it in /opt, you will need to modify qtcreator.sh to add the environment setup.

so, locate /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

edit /Qt5.5.1/Tools/QtCreator/bin/qtcreator.sh

add this line before the Shebang source /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

like image 183
Charles C. Avatar answered Sep 20 '22 00:09

Charles C.