• 7888阅读
  • 9回复

[提问]mips架构下如何交叉编译QT? [复制链接]

上一主题 下一主题
离线aichibanli
 
只看楼主 倒序阅读 楼主  发表于: 2011-08-01
开发板是mips架框的,要如何进行交叉编译?望给予解答,谢谢了。我的QT下的是qt-everywhere-opensource-src-4.7.3.tar.gz版本的。
离线aichibanli
只看该作者 1楼 发表于: 2011-08-01
./configure -embedded mips -xplatform qws/linux-mips-gcc
只写这句行不行?在网上看还有其它一些参数,不知道都有什么用,现在,在编译,机子太慢不知道要多久,
在线等大侠们回复
离线wxj120bw

只看该作者 2楼 发表于: 2011-08-01
回 1楼(aichibanli) 的帖子
编译结束了没
离线aichibanli
只看该作者 3楼 发表于: 2011-08-02
挂机编了一宿,今早发现有错误,现在还在编译,望求  编过mips交叉环境的大侠出来解答一下。
离线wxj120bw

只看该作者 4楼 发表于: 2011-08-02
回 3楼(aichibanli) 的帖子
没编译过这个平台 不过你可以把错误贴出来 看大家能不能解决
离线aichibanli
只看该作者 5楼 发表于: 2011-08-03
出错信息:

make[1]: *** [.obj/release-shared-emb-mips/qsequentialanimationgroup.o] 错误 1
make[1]: Leaving directory `/opt/qt-4.6.3-mips/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2

不知道如何修改,望各位帮忙下
离线wxj120bw

只看该作者 6楼 发表于: 2011-08-03
回 5楼(aichibanli) 的帖子
贴多些 这个错误信息没贴完整
离线aichibanli
只看该作者 7楼 发表于: 2011-08-04
又编了一次还是不行,还是这个错误,我之前有编译成功过,但是内核有问题,又从新编,可现在总是编不过
mips-linux-g++ -c -pipe -mips32 -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-mips-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-mips -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-mips -o .obj/release-shared-emb-mips/qsequentialanimationgroup.o animation/qsequentialanimationgroup.cpp
In file included from animation/qsequentialanimationgroup.cpp:81:
animation/qsequentialanimationgroup_p.h:74:35: macro "index" requires 2 arguments, but only 1 given
In file included from animation/qsequentialanimationgroup.cpp:81:
animation/qsequentialanimationgroup_p.h: In constructor `QSequentialAnimationGroupPrivate::AnimationIndex::AnimationIndex()':
animation/qsequentialanimationgroup_p.h:74: error: expected `(' before ',' token
make[1]: *** [.obj/release-shared-emb-mips/qsequentialanimationgroup.o] 错误 1
make[1]: Leaving directory `/opt/qt-4.7.3/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2



配置如下,./configure -embedded mips -xplatform qws/linux-mips-g++
我就只写了这些,没写别的
离线aichibanli
只看该作者 8楼 发表于: 2011-08-04

/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights.  These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QSEQUENTIALANIMATIONGROUP_P_H
#define QSEQUENTIALANIMATIONGROUP_P_H
//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists for the convenience
// of QIODevice. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "qsequentialanimationgroup.h"
#include "private/qanimationgroup_p.h"
#ifndef QT_NO_ANIMATION
QT_BEGIN_NAMESPACE
class QSequentialAnimationGroupPrivate : public QAnimationGroupPrivate
{
    Q_DECLARE_PUBLIC(QSequentialAnimationGroup)
public:
    QSequentialAnimationGroupPrivate()
        : currentAnimation(0), currentAnimationIndex(-1), lastLoop(0)
    { }

    struct AnimationIndex
    {
        AnimationIndex() : index(0), timeOffset(0) {}   //这里是74行
        // index points to the animation at timeOffset, skipping 0 duration animations.
        // Note that the index semantic is slightly different depending on the direction.
        int index; // the index of the animation in timeOffset
        int timeOffset; // time offset when the animation at index starts.
    };
    int animationActualTotalDuration(int index) const;
    AnimationIndex indexForCurrentTime() const;
    void setCurrentAnimation(int index, bool intermediate = false);
    void activateCurrentAnimation(bool intermediate = false);
    void animationInsertedAt(int index);
    void animationRemoved(int index, QAbstractAnimation *anim);
    bool atEnd() const;
    QAbstractAnimation *currentAnimation;
    int currentAnimationIndex;
    // this is the actual duration of uncontrolled animations
    // it helps seeking and even going forward
    QList<int> actualDuration;
    void restart();
    int lastLoop;
    // handle time changes
    void rewindForwards(const AnimationIndex &newAnimationIndex);
    void advanceForwards(const AnimationIndex &newAnimationIndex);
    // private slot
    void _q_uncontrolledAnimationFinished();
};
QT_END_NAMESPACE
#endif //QT_NO_ANIMATION
#endif //QSEQUENTIALANIMATIONGROUP_P_H

这是整个qsequentialanimationgroup_p.h

离线wxj120bw

只看该作者 9楼 发表于: 2011-08-05
回 8楼(aichibanli) 的帖子
我发的消息你收到没有 你第一个错误是
In file included from animation/qsequentialanimationgroup.cpp:81:
animation/qsequentialanimationgroup_p.h:74:35: macro "index" requires 2 arguments, but only 1 given
变量index被编译器当场宏。
快速回复
限100 字节
 
上一个 下一个