QT5.4.1 Poky 1.7.1 编译错误 make: c: Command not found

sinat_34094510 2016-03-22 06:07:15
我使用poky1.7.1 Qt5.4.1 在编译简单程序的时候出现下面错误。
make: c: Command not found
make: [main.o] Error 127 (ignored)
下面是log
Qt新手才开始接触在网上找了一些资料还是没有解决。是否有有人可以帮助一下。
----------------------------------------------------------------------------------------------
10:55:15: Running steps for project test...
10:55:15: Configuration unchanged, skipping qmake step.
10:55:15: Starting: "/usr/bin/make"
c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../test/main.cpp
c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o mainwindow.o ../test/mainwindow.cpp
c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o moc_mainwindow.o moc_mainwindow.cpp
o test main.o mainwindow.o moc_mainwindow.o -L/opt/poky-atmel/1.7.1/sysroots/cortexa5t2hf-vfp-neon-poky-linux-gnueabi/usr/lib -lQt5Widgets -lQt5Gui -lQt5Core -lpthread
make: c: Command not found
make: [main.o] Error 127 (ignored)
make: c: Command not found
make: [mainwindow.o] Error 127 (ignored)
make: c: Command not found
make: [moc_mainwindow.o] Error 127 (ignored)
make: o: Command not found
make: [test] Error 127 (ignored)

10:55:15: The process "/usr/bin/make" exited normally.
10:55:15: Connecting to device...
10:55:18: The remote file system has 37 megabytes of free space, going ahead.
10:55:18: Deploy step finished.
10:55:18: No deployment action necessary. Skipping.
10:55:18: Deploy step finished.
10:55:18: Elapsed time: 00:03.
...全文
1304 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zidingl 2016-03-25
  • 打赏
  • 举报
回复
--- /opt/poky/1.6.2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi 2016-03-25 09:30:02.828659326 +0800 +++ /opt/poky/1.6.2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi---old 2016-03-24 16:49:20.932098841 +0800 @@ -26,20 +26,7 @@ export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types" export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" export CPPFLAGS="" -export KCFLAGS="--sysroot=$SDKTARGETSYSROOT" export OECORE_DISTRO_VERSION="1.6.2" export OECORE_SDK_VERSION="1.6.2" export ARCH=arm export CROSS_COMPILE=arm-poky-linux-gnueabi- - -# Append environment subscripts -if [ -d "$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then - for envfile in $OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do - source $envfile - done -fi -if [ -d "$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then - for envfile in $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do - source $envfile - done -fi

16,199

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧