嵌入式开发者社区

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

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:6 K2 }0 ?5 h, r7 |
/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'  h  y: O$ I: N

5 o; V0 ?( I, `3 \9 h3 m这个头文件内容如下:
2 o% t+ k6 `: |2 }% C) O+ C#ifndef QTCONCURRENT_RUNBASE_H
( I+ }5 [7 c& A& }#define QTCONCURRENT_RUNBASE_H
% B8 S, z4 I6 @2 V# l
4 G2 L# U2 c8 B' r7 _9 c#include <QtCore/qglobal.h>
$ M3 k: Y# T1 |/ J
  o# ~  F2 h/ d( T/ U4 Z+ [: T/ F#ifndef QT_NO_CONCURRENT, C  X4 L7 @3 w

- u- D% r& U: G+ @# ^#include <QtCore/qfuture.h>
1 e2 P- L3 |) m' R4 o8 r- g#include <QtCore/qrunnable.h>, ^1 U( y6 x* i* o0 l  ]
#include <QtCore/qthreadpool.h>
3 }$ Z8 ~& Q( a+ T+ s* }+ ?5 L! B3 ~( V5 S# G
QT_BEGIN_HEADER2 X, V! n& ?+ S
QT_BEGIN_NAMESPACE
# @/ g; L4 K0 R& E7 H9 b$ A1 |6 K
  `, F" w6 ?( P5 K- E2 ?! ?8 ^QT_MODULE(Core)1 W8 p0 K5 |/ {* a0 u

7 K" S; i6 K3 B* N* X6 k#ifndef qdoc0 G. b5 l6 E& r9 h2 K
/ {" }7 _! U/ E' p4 P) w
namespace QtConcurrent {
. z2 g3 z9 _$ i2 n: E/ N3 K% W( E/ P7 O- K9 p0 B: k, _
template <typename T>0 t0 a7 I, }* o
struct SelectSpecialization
% l' C- I% P- C9 M) o7 b) q7 x{
3 g; G& G2 }7 _. S    template <class Normal, class Void>! |* K8 c5 O, M% P( P
    struct Type { typedef Normal type; };
( x  |( ]7 p9 u$ P};
  y* h6 P! k; D& m% Q6 u
2 V; H/ c+ ~+ A' Q+ N2 R! U+ mtemplate <>
' x) ?8 D, X0 X/ I/ x/ J, Mstruct SelectSpecialization<void>
0 B! \, r* E' v' G{% e- u/ T$ Y5 V; x, a9 y  M
    template <class Normal, class Void>: L8 O5 A5 `  k9 f. q
    struct Type { typedef Void type; };
7 [" d+ D) F# W) |; E  F};
  D/ H5 g7 c; k' i) y9 K( H
/ J! ~) F0 J0 z% M2 p, ftemplate <typename T>/ ]8 C5 S+ h" o' [; L
class RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable( |- ~8 c! \. H0 |) d% x& O0 i
{
+ ^& \1 {8 `3 L' Q- _3 \public:! T8 W% j  R& u
    QFuture<T> start()
  t! v+ l+ P! z( c- D( R    {
5 O8 |& e. U& ]: B: X6 z        this->setRunnable(this);  V+ W4 P8 b3 S. g
        this->reportStarted();+ {, J6 c: n' C  W
        QFuture<T> future = this->future();
& j4 b* n/ h/ S        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);% S7 L6 M# ?! f* p. L
        return future;
8 ?% c; I$ s2 |5 Y8 w, c    }
$ |4 R5 E; g' E& i$ h0 |# i4 r9 \' @/ i! K% }
    void run() {}
, u- t! V/ P/ a0 O+ p- X    virtual void runFunctor() = 0;
6 X+ k) {. P: q9 q- R5 C# H};
9 q5 l1 Z) k* r; s) g5 R5 a+ x8 Z# b8 u6 E' h  e  n, Q. w" J
template <typename T>! j& a: }% Y* M9 E
class RunFunctionTask : public RunFunctionTaskBase<T>
! ^7 |, `! w& B) _6 r  K8 E. R3 e{0 e: W' F9 c( a2 L" @* s* Z
public:0 U8 ^% _' P' D: Y$ S' i/ c3 a; |
    void run()0 P! X- |$ y8 h; J- G+ `
    {7 @* E, |9 u& |$ ]* d& [. `
        if (this->isCanceled()) {
9 N. a# w! n( o/ I            this->reportFinished();
& _) J+ ~3 J- M' `! ]            return;( S, T7 E& b! i( z! r5 s: y4 k2 U
        }' X: [8 |. ~; U1 j  k
        this->runFunctor();
; G' n  R# V9 t. {$ T( z        this->reportResult(result);
2 _% R5 ]. [9 }! n        this->reportFinished();
& e- `2 _' C# R" G+ n7 U    }. ?: X' S- q6 j) n1 K) I/ K
    T result;
: j5 R, O  ^: \. Z2 ^! u3 O};% k6 u) o/ d% u7 `. y

* H$ G, l* Y0 v7 j( n' u8 a4 U  Utemplate <>3 B- \3 ?+ W. w% ]) K, L
class RunFunctionTask<void> : public RunFunctionTaskBase<void>
8 J7 ?5 \/ a$ ^) `( z! w  V2 V{) P) @' {# \1 D8 E: ]# D. D
public:
' [7 F) u; C! R  l    void run()
. \. v$ n9 n. V) E8 F    {3 E$ W1 U# }5 O/ Q1 @% Z8 [2 N
        if (this->isCanceled()) {
' f( P/ @  m- s. w            this->reportFinished();1 [: P6 m2 F/ c, s2 y2 w& P! |
            return;
* P4 z( N* N$ _- ^        }
+ s$ |5 @  t' v' j        this->runFunctor();
) v- q$ w" T% \. f! R        this->reportFinished();- Y& U5 K& g* O3 \
    }
9 I' b' N, E& i$ p6 S% w};
  h- j/ O1 V4 p/ G% i! Y& O6 _5 R
} //namespace QtConcurrent' y6 _  _9 w& H' ]: w; Q
3 d# b+ g) n4 l
#endif //qdoc
# f2 a; @% e3 q& U  K3 Q- ~) e2 X+ _# V% i- r: S# ~, d' m$ o7 G" _
QT_END_NAMESPACE, d+ F+ I6 ^. a, G6 r( G8 H
QT_END_HEADER
9 Y+ x) u! M8 O2 e" ], o$ x1 h9 P9 T5 F+ `# q
#endif // QT_NO_CONCURRENT
+ ~3 j4 q. D9 `( J! _, g  y- |6 E/ b5 H% X$ U( @4 O; j
#endif
! ?, M) U( d; j  e/ P5 Y4 e* n& D  \, U" }, y4 e4 q

作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?
) U& b# F( M8 S! d8 B' _# M# p. `




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