• 6082阅读
  • 3回复

菜鸟问题:qt编程的过程和qtopia的编程有什么不一样 [复制链接]

上一主题 下一主题
离线jinliang516
 
只看楼主 倒序阅读 楼主  发表于: 2006-11-20
我要做一个嵌入式的图形界面,就用的qtopia,但我是新手,在网上找啊找,都只看见QT编程的资料,
请问qt编程的过程和qtopia的编程有什么不一样吗?有专门的qtopia编程的书吗?

还有一个问题:我的机器里好像装系统的时候装了QT,我用rpm -qa | grep qt命令看了一下,结果如下:
qt-3.1.1-6
qtcups-2.0-15
qtopia-free-1.7.0-2

可是我自己装了qt/x11-2.3.2,qt/embedded-2.3.7,qtopia-1.7.0(用rpm包装的)
那个qt-3.1.1-6是系统的吗?那我自己装的了?还有那个qtcups是什么啊?

各位xdjm帮帮忙啊!!!!!!
[ 此贴被XChinux在2006-11-20 16:42重新编辑 ]
离线cavendish

只看该作者 1楼 发表于: 2006-11-20
目前世界上也没有专门针对qtopia的编程书籍
还是建议你多看看trolltech的官方文档

另外可以去http://www.qtopia.org.cn/phpBB2/看看

qtopia就是在qte基础上的
针对嵌入式设备的一个套件
qte应用可以在qtopia上直接跑的
离线jinliang516
只看该作者 2楼 发表于: 2006-11-20
多谢版主了!!!
还有一个问题:我在linux下用eclipse编了一个用c++写的helloworld程序,可是编译的时候出现一些问题:

/tmp/ccbaGRN3.o(.text+0x23): In function `main':
: undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
/tmp/ccbaGRN3.o(.text+0x3b): In function `main':
: undefined reference to `QString::QString[in-charge](char const*)'
/tmp/ccbaGRN3.o(.text+0x51): In function `main':
: undefined reference to `QPushButton::QPushButton[in-charge](QString const&, QWidget*, char const*)'
/tmp/ccbaGRN3.o(.text+0xa4): In function `main':
: undefined reference to `QPushButton::resize(int, int)'
/tmp/ccbaGRN3.o(.text+0xba): In function `main':
: undefined reference to `QApplication::setMainWidget(QWidget*)'
/tmp/ccbaGRN3.o(.text+0xcc): In function `main':
: undefined reference to `QWidget::show()'
/tmp/ccbaGRN3.o(.text+0xdb): In function `main':
: undefined reference to `QApplication::exec()'
/tmp/ccbaGRN3.o(.text+0xf3): In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'
/tmp/ccbaGRN3.o(.text+0x102): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
/tmp/ccbaGRN3.o(.text+0x12e): In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'
/tmp/ccbaGRN3.o(.text+0x151): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x21): In function `QString::~QString [in-charge]()':
: undefined reference to `QString::shared_null'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x29): In function `QString::~QString [in-charge]()':
: undefined reference to `QString::shared_null'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x3a): In function `QString::~QString [in-charge]()':
: undefined reference to `QStringData::deleteSelf()'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

看了半天也没看出个道道来,还请版主达人帮忙看看啊!!多谢多谢!!!
离线cavendish

只看该作者 3楼 发表于: 2006-11-20
初学不建议使用eclipse
因为qt需要moc
qt 2.x/qte 2.x/qtopia 1.7以下建议看tmake
qt 3.x以上/qtopia 2.x以上建议看qmake
快速回复
限100 字节
 
上一个 下一个