嵌入式开发者社区

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

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:
, i# D+ l8 E$ v) O& x7 b/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'
$ G8 F2 f5 c7 [' R+ N9 t2 ~9 p# Q% S
这个头文件内容如下:: {' ?) f- b3 Q* a0 v5 }2 A
#ifndef QTCONCURRENT_RUNBASE_H
8 Z* U% S( O" F% h. c#define QTCONCURRENT_RUNBASE_H$ \8 t1 M2 z! t. c/ s, X% u

0 a( |3 x" d8 B, @( F#include <QtCore/qglobal.h>$ L& I8 }' c+ X% I* \, d, B
8 O, [9 q6 h4 D2 }
#ifndef QT_NO_CONCURRENT
: _  k9 a4 \8 s; h
) D% a' H) |7 v( d0 V#include <QtCore/qfuture.h>6 `1 s- I3 ?& d7 k; x4 L7 D( S' j
#include <QtCore/qrunnable.h>/ `5 J9 }. Y% Z: J- P
#include <QtCore/qthreadpool.h>% p# r" z7 L2 X- H
" \  D+ j! M- X- |6 g0 w( W& c
QT_BEGIN_HEADER
6 ?1 ~2 v: s( u$ fQT_BEGIN_NAMESPACE
' H2 U7 B. ?( G+ E- \$ y
7 |4 D2 W; e( L( bQT_MODULE(Core)3 q+ Y- e7 h7 j1 t0 x; a

* Y) }/ }  o; y8 y8 d2 l#ifndef qdoc% O/ D% \- D: W) ]2 t3 l* ?" i: b* Q

  ]; s4 `2 |8 E8 Z  Z6 q5 Pnamespace QtConcurrent {
" O& t6 s9 A  U0 H. d1 i) \5 p6 z
template <typename T>- L" y7 B# m. r4 f& W  `5 o  n
struct SelectSpecialization; C0 P$ W7 f. u4 H- M
{
: q% t. L/ c( V( O/ e* p$ f    template <class Normal, class Void>7 X, g- l- w3 J1 f% J) O# G
    struct Type { typedef Normal type; };
. l3 l# n  U& n};/ |  y$ ?) \2 P! }

. r6 e* G& [' e5 V% |. qtemplate <>/ k8 I+ ^# j, L$ Q  d
struct SelectSpecialization<void>! p; W* ~+ [* v. H, A% U
{
# x  W% X( o+ E. I5 f: T    template <class Normal, class Void>& _4 D' l- f2 g
    struct Type { typedef Void type; };
% s  k2 d! I/ X/ R( ]) d2 S5 y};
  I' [; C' G3 ]9 n, E! z& {7 {8 a! W$ u& [4 b# E+ c
template <typename T>( ?6 T4 N; Q' |1 K5 I
class RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable$ @- r: Z/ D1 Y9 ^# t
{
& Q8 |4 y$ ^* Epublic:
: f( V7 x6 Y3 h( o7 M) u. g' t. F    QFuture<T> start()5 x+ n) n1 Y  b; F* {" U% Z( v2 j
    {* D0 j4 [  l3 a" [3 _
        this->setRunnable(this);/ D8 l3 a% P# R7 S
        this->reportStarted();
$ l. k$ K, \% {- @6 g5 l        QFuture<T> future = this->future();- z. t3 X8 P" A$ e* j0 Q
        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);4 }, g. F& \- o8 B
        return future;, C4 `6 N) d! d/ g' W
    }  {( F, S' r. }; x6 Y; ]3 H
, n! C9 ^5 Z% l$ S7 }: m
    void run() {}/ z  |1 M7 k1 _+ W! ^2 a
    virtual void runFunctor() = 0;
) T! t4 L. U7 h1 Y9 Y};
/ w1 i  }; n) `+ W* ~
" U( w  S7 S' s' W  C) L* x6 }template <typename T>
  t9 }9 u8 v; D( E8 @class RunFunctionTask : public RunFunctionTaskBase<T>
' B$ }% C3 G9 J{1 B. g2 j- m: [1 l
public:$ X  j5 ?( H& w; o; s% }
    void run()
9 o/ |: F. r8 E, R8 C3 |6 A    {
2 E" C4 e3 W! {6 G        if (this->isCanceled()) {, J/ R& f2 Q6 l9 h1 {
            this->reportFinished();- w; J/ e5 o; [
            return;7 W0 k( T$ U; ?
        }
) R; y. W; x, O% }& h9 A  i+ Q( p        this->runFunctor();& W+ J  i7 }1 r# P2 N
        this->reportResult(result);" i6 u$ {, z6 i" t! j
        this->reportFinished();/ o( Z' b" u- h2 Y
    }
* R& @6 T: w( b$ X  R5 S7 k& q    T result;$ ~7 V8 {% _+ E
};. s1 T- h4 ?; C5 t# z5 S, P
1 h- V3 z( v4 T4 b; d5 R9 d
template <>5 ^* I) H, w% D. e& A' q6 O
class RunFunctionTask<void> : public RunFunctionTaskBase<void>
# E1 T* i, \2 y$ L! ~2 P{$ u; d7 X( ?+ B
public:9 I9 v4 U8 }  h% l. v
    void run()
6 J- E. ]1 {% n2 J3 P    {' |3 l& q( v% {. c. w& d
        if (this->isCanceled()) {  I2 t7 g* ~! o7 U" s4 t7 q: Y
            this->reportFinished();
& f+ X( e$ g0 g6 b& G' Q            return;0 f& u$ n. w% _2 ?
        }
3 Q5 }( K6 J. a0 y, g) G        this->runFunctor();0 |9 a! ]2 v. T0 S# r
        this->reportFinished();8 X6 d! t, }: N) p1 t; Y, h; D
    }- ~# l* b8 W: R( W4 v( a- p
};/ y& u9 r4 `" m. h' p) e! K

3 `- v" H+ G$ L0 I. A$ Z# m2 t5 O} //namespace QtConcurrent
0 p" `/ g% p% V0 v5 Z7 q
. G: j( v$ U) M( x' a#endif //qdoc& Q, X2 w  k; b5 K$ X, P

  J: F- y- h8 T; aQT_END_NAMESPACE* h/ E1 V9 ]6 O4 r8 e2 H  D8 l' L9 S
QT_END_HEADER6 a, ~+ l' N' o7 L( F) L
1 O" Q; t/ `/ F7 s- O; M! d
#endif // QT_NO_CONCURRENT! T# d9 Q2 `7 o: L9 x/ y8 e" [

2 I. c% Z- E- c. H#endif
, R% r9 g5 ?4 c0 z; _' \" V6 e# u
. V  m' V1 x3 R. ]1 T: c
作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?/ X1 x2 j: @, Y6 C9 e) q0 w





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