初级会员
- 积分
- 143
- 金钱
- 143
- 注册时间
- 2022-4-29
- 在线时间
- 43 小时
|
1金钱
求教:
在正点原子ZYNQ Qt&Opencv开发环境搭建v1.1手册中按照doer张搭建好zynq_kit的编译环境,之后按照第三章运行Ubuntu测试时没有问题,
运行开发板运行测试时,编译报错。
编译结果如下:
23:57:46: 为项目zynq_test_4_2执行步骤 ...
23:57:46: 配置没有改变, 跳过 qmake 步骤。
23:57:46: 正在启动 "/usr/bin/make"
c -pipe --sysroot=/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../zynq_test_4_2 -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5 -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtGui -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../zynq_test_4_2/main.cpp
Makefile:623: recipe for target 'main.o' failed
c -pipe --sysroot=/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../zynq_test_4_2 -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5 -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtGui -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o mainwindow.o ../zynq_test_4_2/mainwindow.cpp
Makefile:627: recipe for target 'mainwindow.o' failed
pipe --sysroot=/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi -g -std=gnu++11 -Wall -W -dM -E -o moc_predefs.h /opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib/qt5/mkspecs/features/data/dummy.cpp
make: c: Command not found
make: [main.o] Error 127 (ignored)
make: c: Command not found
make: [mainwindow.o] Error 127 (ignored)
make: pipe: Command not found
make: [moc_predefs.h] Error 127 (ignored)
Makefile:599: recipe for target 'moc_predefs.h' failed
/opt/petalinux/2018.3/sysroots/x86_64-petalinux-linux/usr/bin/qt5/moc -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -I/home/zynq/qt5/project/zynq_test_4_2 -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5 -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtGui -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtCore -I. ../zynq_test_4_2/mainwindow.h -o moc_mainwindow.cpp
Warning: Failed to resolve include "./moc_predefs.h" for moc file ../zynq_test_4_2/mainwindow.h
c -pipe --sysroot=/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../zynq_test_4_2 -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5 -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtGui -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o moc_mainwindow.o moc_mainwindow.cpp
Makefile:630: recipe for target 'moc_mainwindow.o' failed
sysroot=/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi -o zynq_test_4_2 main.o mainwindow.o moc_mainwindow.o -L/opt/petalinux/2018.3/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi/usr/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread
make: c: Command not found
make: [moc_mainwindow.o] Error 127 (ignored)
/bin/sh: -o: command not found
make: [zynq_test_4_2] Error 127 (ignored)
Makefile:228: recipe for target 'zynq_test_4_2' failed
23:57:46: 进程"/usr/bin/make"正常退出。
23:57:46: Elapsed time: 00:00.
|
|