|
大家好
我在qtopia first 程序make时产生如下错误:
make: ***no rule to make target '/opt/EmbedSky/Qte/x86',needed by 'main.o'. stop.
我感觉自己生成的first.cpp文件跟手册里面的不一样,可是手册里面的first.cpp又与天嵌中自带的Qt源码包中的first.cpp又不一样,天嵌源码包中的first.cpp多了一个 image0_data[]数组。请问要怎么解决这个问题啊?
我生成的first.cpp代码如下:
/****************************************************************************
** Form implementation generated from reading ui file 'first.ui'
**
** Created: Tue Jun 15 09:50:55 2010
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "first.h"
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
/*
* Constructs a first which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
first::first( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
//QPixmap image0((const char**)image0_data);
if ( !name )
setName( "first" );
resize( 515, 262 );
setCaption( tr( "MY_First_Pro" ) );
user_b = new QPushButton( this, "user_b" );
user_b->setGeometry( QRect( 100, 10, 131, 31 ) );
user_b->setText( tr( "USER BUTTON" ) );
close = new QPushButton( this, "close" );
close->setGeometry( QRect( 230, 180, 151, 31 ) );
close->setText( tr( "CLOSE" ) );
user_t = new QLabel( this, "user_t" );
user_t->setGeometry( QRect( 70, 100, 161, 61 ) );
QFont user_t_font( user_t->font() );
user_t_font.setFamily( "ar pl ukai cn" );
user_t_font.setPointSize( 18 );
user_t_font.setBold( TRUE );
user_t->setFont( user_t_font );
user_t->setText( tr( "" ) );
// signals and slots connections
connect( user_b, SIGNAL( clicked() ), this, SLOT( user_button() ) );
connect( close, SIGNAL( clicked() ), this, SLOT( close() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
first::~first()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool first::event( QEvent* ev )
{
bool ret = QWidget::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont user_t_font( user_t->font() );
user_t_font.setFamily( "ar pl ukai cn" );
user_t_font.setPointSize( 18 );
user_t_font.setBold( TRUE );
user_t->setFont( user_t_font );
}
return ret;
}
void first::user_button()
{
user_t->setText(tr("Hello,this is the Qt programs,by Ray!!"));
//qWarning( "first::user_button(): Not implemented yet!" );
} |
|