嵌入式开发者社区

标题: 交叉编译问题,急 [打印本页]

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:
1 u* \& j4 @5 Y: w. V* `/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter', d3 P# m) D: h+ b' r4 D# G

. R: c: L6 o4 B, d2 {这个头文件内容如下:2 M2 o: A8 V1 |3 `* k: _
#ifndef QTCONCURRENT_RUNBASE_H. e* b! u$ @4 z* D
#define QTCONCURRENT_RUNBASE_H+ _# e$ z1 ~/ Y8 S  A
7 f) T" O, z; C, ^, k( e! [8 P
#include <QtCore/qglobal.h>
3 Y1 C8 U$ L9 L1 Y6 Z) v' ~& o
' L" {3 E! o2 \8 j+ N& T/ A#ifndef QT_NO_CONCURRENT  w) E& |7 S$ }& _- N
$ m! W& L( W7 C% w
#include <QtCore/qfuture.h>
2 S# R; u( m4 m* h" i5 @#include <QtCore/qrunnable.h>
* T* w. F0 R% D& u3 c#include <QtCore/qthreadpool.h>
' V1 e0 v7 C6 T; |5 d/ l; ~7 c" w' U7 H* L
QT_BEGIN_HEADER
  M. e: w2 \: rQT_BEGIN_NAMESPACE4 [5 f+ T0 z% {# j' b# b
6 \9 j/ i9 n  G3 T
QT_MODULE(Core)+ C7 w# U1 D" {8 @
/ i/ ^" h- d' T. v
#ifndef qdoc
( p/ [, q: O7 N( l4 u2 f& _  B! S) A4 r" f# ^  j' [1 [8 K
namespace QtConcurrent {' ]0 x. }' u/ U% s- W+ C
7 S7 p& ?! d& Y
template <typename T>
3 F, |9 s* h" y6 T; ?+ g0 I1 Ystruct SelectSpecialization# e' H9 ~7 W4 @, v3 m$ ]4 v1 E
{2 R+ T8 p8 i$ T, M6 s, L- f, r
    template <class Normal, class Void>3 Z0 [3 [9 v' X( L' J/ K
    struct Type { typedef Normal type; };
' a" R$ b* y8 b& m5 e};7 \1 X" m/ O: w% p9 S

3 B- r4 w# K/ x; X2 o4 r. ztemplate <>( i5 \! |! {/ o& u. M2 f
struct SelectSpecialization<void>
: _: h- h2 E; N# z8 p{3 v0 |- P' g" J
    template <class Normal, class Void>
6 L' c& }5 n, P4 M5 }- ?5 g    struct Type { typedef Void type; };
, X5 ^' \0 w5 t};$ b4 ~' C' m: c" d' k
! V9 c+ |( h" z2 T9 e
template <typename T>/ d% r" d$ P$ Q$ ^+ V
class RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable( {# k& G+ T% g8 z; A
{! l) o; N1 y* \  q7 g. F  T
public:1 L  c1 X; s; i5 \" D
    QFuture<T> start()
' w: v5 R/ B# m: @    {
, C7 U% {7 P  L        this->setRunnable(this);4 D+ k% t: S8 a+ n5 W8 Q6 F
        this->reportStarted();" z9 d2 J# D1 r% G+ `) X
        QFuture<T> future = this->future();
: F) H! M# A% U7 {% K9 S        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);
5 u( ^5 N+ b1 m6 k- T/ [) x! _        return future;
; _( s/ d1 W1 D. H    }. N: h! R. l  Y. W
  B# M3 {, d( C5 i& I# |
    void run() {}
% k1 z' M8 D/ H) N" }6 G! r  G5 n    virtual void runFunctor() = 0;
9 ?; Q1 U6 [  ^};
0 ~# P. V6 ^6 d- z" @  @1 R% v( T  e# U. E. b' O6 v
template <typename T>
/ r# V0 D7 \2 ]) t7 z- lclass RunFunctionTask : public RunFunctionTaskBase<T>
+ O6 K. ~8 C/ ~; T( o{' E3 R4 ~+ k$ n, @2 G3 V9 c
public:/ i' B' {" {- U" X5 a" f
    void run(). U# b% A) g# B) K
    {4 g( M0 ~7 Y2 i2 i' n
        if (this->isCanceled()) {
& y) A7 t5 k0 }4 g. I3 Q            this->reportFinished();) t( {+ m; b  V9 G: M1 U
            return;" S( h' C. s4 T4 r2 _5 N6 G
        }# R6 o/ L4 |$ K$ N
        this->runFunctor();
0 G7 O) l) X/ c, H7 l        this->reportResult(result);" l' Q- L0 x2 e" T
        this->reportFinished();
! u+ O6 ~) C7 J- R    }
1 [, h  Z6 J! d; C    T result;& w" a9 O, w# s$ A) @
};, T* ]. c) p% h( w

: a2 _+ R; N# u4 jtemplate <>
4 ]1 z- x) N! H% W7 Y+ x$ Fclass RunFunctionTask<void> : public RunFunctionTaskBase<void>8 E: X5 h' Y+ C: R
{
+ u- Z8 g# ^9 f" q4 }% q: Upublic:
+ J% w0 A) d6 c/ d    void run()
$ N; S/ X# I' O6 w    {
0 U% J0 ~( i* ~+ Z$ g        if (this->isCanceled()) {
! n9 F  U" c+ {" r            this->reportFinished();
% s: B; R9 J9 `# O            return;: S+ `6 g" k$ n2 k" a' W  J' A6 w
        }8 K% Y. y. D; I3 M, M8 v  N' c# y
        this->runFunctor();" q# [2 H2 m( f0 |; f8 g
        this->reportFinished();
/ v* [/ r$ l. \0 q    }
" g* k8 p+ }( Y$ T* k7 J};  S6 T# `; E" r. w
: R2 ]) l7 J/ k  u* {/ K0 b
} //namespace QtConcurrent! t8 _9 i3 L" q6 N
/ s+ X1 I4 B' V! s
#endif //qdoc$ w4 o$ S7 B# Y# ]$ H8 c

' A2 _; H: k) M& w( P+ j. p- bQT_END_NAMESPACE" y' @( T; N2 ?% w
QT_END_HEADER9 L% c! [* O# w" i
  J5 j" e. W; I6 _
#endif // QT_NO_CONCURRENT
8 {; O& B/ n4 ^' L7 x5 d) G5 d
' T3 M9 D" a# Y  Z; h#endif+ W8 x$ G# E6 |% [0 S

: J! w% ~) \: A7 z
作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?3 K. y0 Q" f( T





欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4