天嵌 ARM开发社区

 找回密码
 注册
查看: 1829|回复: 4

qtopia first 程序make时产生错误

[复制链接]
bensent 发表于 2010-6-15 12:17:19 | 显示全部楼层 |阅读模式
大家好
我在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!" );
}
yezhubenyue 发表于 2010-6-16 16:34:33 | 显示全部楼层
我也出错。。那个我什么都没改,用的就是解压下来的fist的课当我MAKE的时候却报错为什么啊???

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
yezhubenyue 发表于 2010-6-16 18:31:58 | 显示全部楼层
饿~~我的找到错误了。原来解压天嵌的apps文件中的first文件中的Makefile要改下。要吧arm—linux——gcc改成gcc   arm-linux—g++要改成g++就行了的。。。。
应该在PC平拍上的不需要交叉编译吧。。。。。
亚瑟王 发表于 2010-6-18 19:18:29 | 显示全部楼层
image0_data[]数组是存放的天嵌科技的logo信息。
编译PC版本的是不需要交叉编译的。
kelvinjie 发表于 2010-9-23 08:22:27 | 显示全部楼层
仔细对比教程会发现有不一样的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-27 23:33 , Processed in 1.035090 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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