荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点
错误信息如下
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/zhang/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/sysroot -O2 -O3 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I../../../../mkspecs/devices/linux-buildroot-g++ -o .obj/analogclock.o analogclock.cpp
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
Makefile:1614: recipe for target '.obj/analogclock.o' failed
make: *** [.obj/analogclock.o] Error 2
离线
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++
这个可以执行吗?
离线
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++
这个可以执行吗?
执行之后出现这个
zhang@ubuntu:~$ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
zhang@ubuntu:~$
离线
执行之后出现这个
zhang@ubuntu:~$ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
zhang@ubuntu:~$
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++
再试一试这两个。
离线
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++再试一试这两个。
执行/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc
得到arm-linux-gcc.br_real: fatal error: no input files
compilation terminated.
执行/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++
得到bash: /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++: No such file or directory
离线
用 ln 命令把arm-linux-gnueabihf-g++链接到 arm-linux-gcc
或者删掉前者,把后者拷贝为前者也可以
我执行了
sudo rm /usr/bin/qmake
sudo ln -s /home/zhang/buildroot-2018.08.2/output/build/qt5base-5.11.1/bin/qmake /usr/bin/qmake
在重新生成Makefile
再执行make
zhang@ubuntu:~/buildroot-2018.08.2/output/build/qt5base-5.11.1/examples/widgets/widgets/analogclock$ make
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/zhang/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/sysroot -O2 -O3 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I../../../../mkspecs/devices/linux-buildroot-g++ -o .obj/analogclock.o analogclock.cpp
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
Makefile:1614: recipe for target '.obj/analogclock.o' failed
make: *** [.obj/analogclock.o] Error 2
错误信息好像没有变
离线
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.bak
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc.bak
cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++
cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc
离线
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.bak mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc.bak cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc
太奇怪了,还是报同样的错误
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/zhang/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/sysroot -O2 -O3 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I../../../../mkspecs/devices/linux-buildroot-g++ -o .obj/analogclock.o analogclock.cpp
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
Makefile:1614: recipe for target '.obj/analogclock.o' failed
make: *** [.obj/analogclock.o] Error 2
离线
你的电脑有毒,删掉目录重新编译走一个,或者换台电脑。
离线
你的电脑有毒,删掉目录重新编译走一个,或者换台电脑。
应该不会有毒吧
离线
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.bak mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc.bak cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc
我已经成功的编译出来可以执行程序analogclock,拷贝到TF卡之后顺利启动
# cat /dev/zero > /dev/fb0
# cat /dev/urandom > /dev/fb0
执行以上两条指令会黑屏和出现雪花点
但是执行
./analogclock -platform linuxfb
死活跑不起来,屏幕没有任何反应
麻烦再指导提示一下吧,谢谢
离线