天嵌 ARM开发社区

 找回密码
 注册
查看: 1861|回复: 3

蜂鸣器测试程序开发make出现错误

[复制链接]
刘志华 发表于 2012-3-27 12:48:28 | 显示全部楼层 |阅读模式
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/arm-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/arm-qtopia-2.2.0/qtopia/include -o main.o main.cpp
In file included from main.cpp:1:
beep.h:40: error: declaration of 'virtual void Form1::beep_init()'
beep.h:37: error: conflicts with previous declaration 'QPushButton* Form1::beep_init'
beep.h:42: error: declaration of 'virtual void Form1::beep_stop()'
beep.h:34: error: conflicts with previous declaration 'QPushButton* Form1::beep_stop'
main.cpp: In function 'QWidget* create_beep(QWidget*, const char*, uint)':
main.cpp:5: error: expected type-specifier before 'beep'
main.cpp:5: error: cannot convert 'int*' to 'QWidget*' in return
main.cpp:5: error: expected ';' before 'beep'
main.cpp:5: error: 'beep' was not declared in this scope
make: *** [main.o] Error 1
请问大侠们如何解决??
TQ-lkp 发表于 2012-3-27 13:51:02 | 显示全部楼层
你没有编绎arm的qtopia吧,怎么净是这种问题啊?:L
发帖前先搜索下论坛
 楼主| 刘志华 发表于 2012-3-27 15:09:35 | 显示全部楼层
我重新按照手册做了一次,没出现这个错误了!我做完之后执行 /opt/EmbedSky/Qte/test_x86
[root@EmbedSky beep0]# /opt/EmbedSky/Qte/test_x86
the root directory is already !
Using display 0
Can't open framebuffer device /dev/fb0
Transformed driver cannot connect
我只是想在PC机上看看我做的
TQ-lkp 发表于 2012-3-27 16:15:18 | 显示全部楼层
要启动模拟器
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-28 11:23 , Processed in 1.037149 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表