您尚未登录。

楼主 #1 2020-04-07 13:37:33

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

荔枝派执行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

离线

#2 2020-04-07 13:40:13

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 221
积分: 204

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++

这个可以执行吗?

离线

楼主 #3 2020-04-07 13:42:58

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

ubuntu 说:

/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:~$

离线

#4 2020-04-07 13:51:45

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 221
积分: 204

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

zhang235hai 说:

执行之后出现这个
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++

再试一试这两个。

离线

楼主 #5 2020-04-07 13:54:25

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

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
得到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

离线

#6 2020-04-07 14:06:34

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

用 ln 命令把arm-linux-gnueabihf-g++链接到 arm-linux-gcc

或者删掉前者,把后者拷贝为前者也可以





离线

楼主 #7 2020-04-07 14:30:33

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

晕哥 说:

用 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
错误信息好像没有变

离线

#8 2020-04-07 14:39:03

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

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




离线

楼主 #9 2020-04-07 15:13:48

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

晕哥 说:
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

离线

#10 2020-04-07 15:26:06

有梦的地方
会员
注册时间: 2020-03-17
已发帖子: 284
积分: 284

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

你的电脑有毒,删掉目录重新编译走一个,或者换台电脑。

离线

楼主 #11 2020-04-07 15:49:35

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

有梦的地方 说:

你的电脑有毒,删掉目录重新编译走一个,或者换台电脑。


应该不会有毒吧

离线

楼主 #12 2020-04-08 15:28:58

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点

晕哥 说:
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
死活跑不起来,屏幕没有任何反应

麻烦再指导提示一下吧,谢谢

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn