嵌入式爱好者

查看: 13961|回复: 2

[Linux] OK6410 qtopia2.2.0编译HelloWord出现错误,已经搞了一天了,求大神支招。

[复制链接]

1

主题

3

帖子

7

积分

扫一扫,手机访问本帖
发表于 2015-4-27 18:33:07 | 显示全部楼层 |阅读模式
      系统          : ubuntu 12.04
交叉编译器版本 : 4.3.2

make: *** No rule to make target `clear'.  Stop.
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os  -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\" -DQTOPIA_TRTARGET=\"hello\" -DQT_NO_DEBUG -I/root/yizhi/qtopia-free-2.2.0/qtopia/mkspecs/qws/linux-arm-g++ -I. -I../../yizhi/qtopia-free-2.2.0/qtopia/include -I../../yizhi/qtopia-free-2.2.0/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
main.cpp: In function 'QWidget* create_THelloForm(QWidget*, const char*, uint)':
main.cpp:3: error: expected type-specifier before 'THelloForm'
main.cpp:3: error: cannot convert 'int*' to 'QWidget*' in return
main.cpp:3: error: expected ';' before 'THelloForm'
main.cpp:3: error: 'THelloForm' was not declared in this scope
make: *** [.obj/release-shared/main.o] Error 1

// 以下附上 代码
//--------------------------------------------------------------------
//main.cpp
//--------------------------------------------------------------------
#include “hello.h”
#include  <qtopia/qpeapplication.h>
QTOPIA_ADD_APPLICATION(“hello”,THelloForm)
QTOPIA_MAIN
//--------------------------------------------------------------------
希望广大的朋友们帮帮忙,谢谢!
回复

使用道具 举报

1

主题

3

帖子

7

积分

 楼主| 发表于 2015-4-27 18:55:45 | 显示全部楼层
这是什么情况呢?是不是 qpeapplication 定义的这个"hello"名字的类型不对啊。
点评回复 支持 反对

使用道具 举报

1

主题

3

帖子

7

积分

 楼主| 发表于 2015-4-27 23:46:11 | 显示全部楼层
在线等啊,和help me.
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2025-3-13 16:20

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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